Class DbSqlSession
java.lang.Object
org.camunda.bpm.engine.impl.db.AbstractPersistenceSession
org.camunda.bpm.engine.impl.db.sql.DbSqlSession
- All Implemented Interfaces:
- PersistenceSession,- Session
- Direct Known Subclasses:
- BatchDbSqlSession,- SimpleDbSqlSession
- Author:
- Tom Baeyens, Joram Barrez, Daniel Meyer, Sebastian Menski, Roman Smirnov
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected DbSqlSessionFactorystatic final String[]protected static final EnginePersistenceLoggerstatic final String[]protected org.apache.ibatis.session.SqlSessionFields inherited from class org.camunda.bpm.engine.impl.db.AbstractPersistenceSessionlisteners
- 
Constructor SummaryConstructorsConstructorDescriptionDbSqlSession(DbSqlSessionFactory dbSqlSessionFactory) DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, Connection connection, String catalog, String schema) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringaddSqlStatementPiece(String sqlStatement, String line) protected voidbulkDeletePerformed(DbBulkOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) protected voidbulkOperationPerformed(DbBulkOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) protected voidbulkUpdatePerformed(DbBulkOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) voidclose()voidcommit()protected voidconfigureFailedDbEntityOperation(DbEntityOperation operation, org.apache.ibatis.exceptions.PersistenceException failure) voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidentityDeletePerformed(DbEntityOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) protected voidentityInsertPerformed(DbEntityOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) protected voidentityUpdatePerformed(DbEntityOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) protected intexecuteDelete(String deleteStatement, Object parameter) protected voidexecuteInsertEntity(String insertStatement, Object parameter) voidexecuteMandatorySchemaResource(String operation, String component) intexecuteNonEmptyUpdateStmt(String updateStmt, Object parameter) voidexecuteSchemaResource(String schemaFileResourceName) voidexecuteSchemaResource(String operation, String component, String resourceName, boolean isOptional) protected abstract voidexecuteSelectForUpdate(String statement, Object parameter) executeSelectList(String statement, Object parameter) intexecuteUpdate(String updateStatement, Object parameter) voidflush()List<org.apache.ibatis.executor.BatchResult>voidprotected StringgetResourceForDbOperation(String directory, String operation, String component) org.apache.ibatis.session.SqlSessionprotected String[]protected voidinsertEntity(DbEntityOperation operation) booleanbooleanprotected booleanisConcurrentModificationException(DbOperation failedOperation, org.apache.ibatis.exceptions.PersistenceException cause) booleanbooleanbooleanbooleanbooleanprotected booleanbooleanisTablePresent(String tableName) voidprependDatabaseTablePrefix(String tableName) protected StringreadNextTrimmedLine(BufferedReader reader) voidrollback()<T extends DbEntity>
 TselectById(Class<T> type, String id) List<?>selectList(String statement, Object parameter) intMethods inherited from class org.camunda.bpm.engine.impl.db.AbstractPersistenceSessionaddEntityLoadListener, dbSchemaCreate, dbSchemaDrop, dbSchemaPrune, dbSchemaUpdate, deleteBulk, deleteEntity, executeDbOperation, fireEntityLoaded, updateBulk, updateEntityMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.impl.db.PersistenceSessionexecuteDbOperations
- 
Field Details- 
LOG
- 
JDBC_METADATA_TABLE_TYPES
- 
PG_JDBC_METADATA_TABLE_TYPES
- 
sqlSessionprotected org.apache.ibatis.session.SqlSession sqlSession
- 
dbSqlSessionFactory
- 
connectionMetadataDefaultCatalog
- 
connectionMetadataDefaultSchema
 
- 
- 
Constructor Details- 
DbSqlSession
- 
DbSqlSessionpublic DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, Connection connection, String catalog, String schema) 
 
- 
- 
Method Details- 
selectList
- 
executeSelectList
- 
selectById
- 
selectOne
- 
lock
- 
executeSelectForUpdate
- 
entityUpdatePerformedprotected void entityUpdatePerformed(DbEntityOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) 
- 
bulkUpdatePerformedprotected void bulkUpdatePerformed(DbBulkOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) 
- 
bulkDeletePerformedprotected void bulkDeletePerformed(DbBulkOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) 
- 
bulkOperationPerformedprotected void bulkOperationPerformed(DbBulkOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) 
- 
entityDeletePerformedprotected void entityDeletePerformed(DbEntityOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) 
- 
configureFailedDbEntityOperationprotected void configureFailedDbEntityOperation(DbEntityOperation operation, org.apache.ibatis.exceptions.PersistenceException failure) 
- 
isConcurrentModificationExceptionprotected boolean isConcurrentModificationException(DbOperation failedOperation, org.apache.ibatis.exceptions.PersistenceException cause) 
- 
insertEntity- Specified by:
- insertEntityin class- AbstractPersistenceSession
 
- 
executeInsertEntity
- 
entityInsertPerformedprotected void entityInsertPerformed(DbEntityOperation operation, int rowsAffected, org.apache.ibatis.exceptions.PersistenceException failure) 
- 
executeDelete
- 
executeUpdate
- 
update
- 
executeNonEmptyUpdateStmt
- 
flushpublic void flush()
- 
flushOperationspublic void flushOperations()
- 
flushBatchOperations
- 
closepublic void close()
- 
commitpublic void commit()
- 
rollbackpublic void rollback()
- 
dbSchemaCheckVersionpublic void dbSchemaCheckVersion()
- 
getDbVersion- Specified by:
- getDbVersionin class- AbstractPersistenceSession
 
- 
dbSchemaCreateIdentityprotected void dbSchemaCreateIdentity()- Specified by:
- dbSchemaCreateIdentityin class- AbstractPersistenceSession
 
- 
dbSchemaCreateHistoryprotected void dbSchemaCreateHistory()- Specified by:
- dbSchemaCreateHistoryin class- AbstractPersistenceSession
 
- 
dbSchemaCreateEngineprotected void dbSchemaCreateEngine()- Specified by:
- dbSchemaCreateEnginein class- AbstractPersistenceSession
 
- 
dbSchemaCreateCmmnprotected void dbSchemaCreateCmmn()- Specified by:
- dbSchemaCreateCmmnin class- AbstractPersistenceSession
 
- 
dbSchemaCreateCmmnHistoryprotected void dbSchemaCreateCmmnHistory()- Specified by:
- dbSchemaCreateCmmnHistoryin class- AbstractPersistenceSession
 
- 
dbSchemaCreateDmnprotected void dbSchemaCreateDmn()- Specified by:
- dbSchemaCreateDmnin class- AbstractPersistenceSession
 
- 
dbSchemaCreateDmnHistoryprotected void dbSchemaCreateDmnHistory()- Specified by:
- dbSchemaCreateDmnHistoryin class- AbstractPersistenceSession
 
- 
dbSchemaDropIdentityprotected void dbSchemaDropIdentity()- Specified by:
- dbSchemaDropIdentityin class- AbstractPersistenceSession
 
- 
dbSchemaDropHistoryprotected void dbSchemaDropHistory()- Specified by:
- dbSchemaDropHistoryin class- AbstractPersistenceSession
 
- 
dbSchemaDropEngineprotected void dbSchemaDropEngine()- Specified by:
- dbSchemaDropEnginein class- AbstractPersistenceSession
 
- 
dbSchemaDropCmmnprotected void dbSchemaDropCmmn()- Specified by:
- dbSchemaDropCmmnin class- AbstractPersistenceSession
 
- 
dbSchemaDropCmmnHistoryprotected void dbSchemaDropCmmnHistory()- Specified by:
- dbSchemaDropCmmnHistoryin class- AbstractPersistenceSession
 
- 
dbSchemaDropDmnprotected void dbSchemaDropDmn()- Specified by:
- dbSchemaDropDmnin class- AbstractPersistenceSession
 
- 
dbSchemaDropDmnHistoryprotected void dbSchemaDropDmnHistory()- Specified by:
- dbSchemaDropDmnHistoryin class- AbstractPersistenceSession
 
- 
executeMandatorySchemaResource
- 
isEngineTablePresentpublic boolean isEngineTablePresent()- Specified by:
- isEngineTablePresentin class- AbstractPersistenceSession
 
- 
isHistoryTablePresentpublic boolean isHistoryTablePresent()- Specified by:
- isHistoryTablePresentin class- AbstractPersistenceSession
 
- 
isIdentityTablePresentpublic boolean isIdentityTablePresent()- Specified by:
- isIdentityTablePresentin class- AbstractPersistenceSession
 
- 
isCmmnTablePresentpublic boolean isCmmnTablePresent()- Specified by:
- isCmmnTablePresentin class- AbstractPersistenceSession
 
- 
isCmmnHistoryTablePresentpublic boolean isCmmnHistoryTablePresent()- Specified by:
- isCmmnHistoryTablePresentin class- AbstractPersistenceSession
 
- 
isDmnTablePresentpublic boolean isDmnTablePresent()- Specified by:
- isDmnTablePresentin class- AbstractPersistenceSession
 
- 
isDmnHistoryTablePresentpublic boolean isDmnHistoryTablePresent()- Specified by:
- isDmnHistoryTablePresentin class- AbstractPersistenceSession
 
- 
isTablePresent
- 
getTableNamesPresent- Specified by:
- getTableNamesPresentin interface- PersistenceSession
- Overrides:
- getTableNamesPresentin class- AbstractPersistenceSession
 
- 
getTablesPresentInOracleDatabase- Throws:
- SQLException
 
- 
prependDatabaseTablePrefix
- 
getResourceForDbOperation
- 
executeSchemaResource
- 
executeSchemaResource
- 
addSqlStatementPiece
- 
readNextTrimmedLine- Throws:
- IOException
 
- 
isMissingTablesException
- 
getTableTypes
- 
getSqlSessionpublic org.apache.ibatis.session.SqlSession getSqlSession()
- 
getDbSqlSessionFactory
 
-