Class ProfilingDbSqlSession
- java.lang.Object
-
- org.activiti.engine.impl.db.DbSqlSession
-
- org.activiti.engine.test.profiler.ProfilingDbSqlSession
-
- All Implemented Interfaces:
Session
public class ProfilingDbSqlSession extends DbSqlSession
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutionResultcommandExecutionResult-
Fields inherited from class org.activiti.engine.impl.db.DbSqlSession
ACTIVITI_VERSIONS, bulkDeleteOperations, connectionMetadataDefaultCatalog, connectionMetadataDefaultSchema, dbSqlSessionFactory, deletedObjects, entityCache, insertedObjects, JDBC_METADATA_TABLE_TYPES, LAST_V5_VERSION, sqlSession, updatedObjects
-
-
Constructor Summary
Constructors Constructor Description ProfilingDbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, EntityCache entityCache)ProfilingDbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, EntityCache entityCache, java.sql.Connection connection, java.lang.String catalog, java.lang.String schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()voidflush()protected voidflushBulkDeletes(java.lang.Class<? extends Entity> entityClass)protected voidflushBulkInsert(java.util.Collection<Entity> entities, java.lang.Class<? extends Entity> clazz)protected voidflushDeleteEntities(java.lang.Class<? extends Entity> entityClass, java.util.Collection<Entity> entitiesToDelete)protected voidflushRegularInsert(Entity entity, java.lang.Class<? extends Entity> clazz)protected voidflushUpdates()CommandExecutionResultgetCurrentCommandExecution()<T extends Entity>
TselectById(java.lang.Class<T> entityClass, java.lang.String id, boolean useCache)java.util.ListselectListWithRawParameter(java.lang.String statement, java.lang.Object parameter, int firstResult, int maxResults, boolean useCache)java.util.ListselectListWithRawParameterWithoutFilter(java.lang.String statement, java.lang.Object parameter, int firstResult, int maxResults)java.lang.ObjectselectOne(java.lang.String statement, java.lang.Object parameter)-
Methods inherited from class org.activiti.engine.impl.db.DbSqlSession
addMissingComponent, addSqlStatementPiece, cacheLoadOrStore, cacheLoadOrStore, close, collectChildExecutionsForInsertion, createDeploymentQuery, createExecutionQuery, createHistoricActivityInstanceQuery, createHistoricDetailQuery, createHistoricProcessInstanceQuery, createHistoricTaskInstanceQuery, createHistoricVariableInstanceQuery, createJobQuery, createModelQueryImpl, createProcessDefinitionQuery, createProcessInstanceQuery, createTaskQuery, dbSchemaCheckVersion, dbSchemaCreate, dbSchemaCreateEngine, dbSchemaCreateHistory, dbSchemaDrop, dbSchemaPrune, dbSchemaUpdate, dbSchemaUpgrade, debugFlush, delete, delete, determineUpdatedObjects, executeMandatorySchemaResource, executeSchemaResource, findMatchingVersionIndex, flushDeletes, flushInsertEntities, flushInserts, getCustomMapper, getDbSqlSessionFactory, getDbVersion, getResourceForDbOperation, getSqlSession, incrementRevision, insert, isEngineTablePresent, isEntityInserted, isEntityToBeDeleted, isHistoryTablePresent, isMissingTablesException, isMysql, isOracle, isTablePresent, orderExecutionEntities, performSchemaOperationsProcessEngineBuild, performSchemaOperationsProcessEngineClose, prependDatabaseTablePrefix, readNextTrimmedLine, removeUnnecessaryOperations, rollback, selectById, selectList, selectList, selectList, selectList, selectList, selectList, selectList, selectList, selectList, selectList, selectList, selectListWithRawParameter, update, update, updateDdlForMySqlVersionLowerThan56
-
-
-
-
Field Detail
-
commandExecutionResult
protected CommandExecutionResult commandExecutionResult
-
-
Constructor Detail
-
ProfilingDbSqlSession
public ProfilingDbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, EntityCache entityCache)
-
ProfilingDbSqlSession
public ProfilingDbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, EntityCache entityCache, java.sql.Connection connection, java.lang.String catalog, java.lang.String schema)
-
-
Method Detail
-
flush
public void flush()
- Specified by:
flushin interfaceSession- Overrides:
flushin classDbSqlSession
-
commit
public void commit()
- Overrides:
commitin classDbSqlSession
-
selectOne
public java.lang.Object selectOne(java.lang.String statement, java.lang.Object parameter)- Overrides:
selectOnein classDbSqlSession
-
selectById
public <T extends Entity> T selectById(java.lang.Class<T> entityClass, java.lang.String id, boolean useCache)
- Overrides:
selectByIdin classDbSqlSession
-
selectListWithRawParameter
public java.util.List selectListWithRawParameter(java.lang.String statement, java.lang.Object parameter, int firstResult, int maxResults, boolean useCache)- Overrides:
selectListWithRawParameterin classDbSqlSession
-
selectListWithRawParameterWithoutFilter
public java.util.List selectListWithRawParameterWithoutFilter(java.lang.String statement, java.lang.Object parameter, int firstResult, int maxResults)- Overrides:
selectListWithRawParameterWithoutFilterin classDbSqlSession
-
flushRegularInsert
protected void flushRegularInsert(Entity entity, java.lang.Class<? extends Entity> clazz)
- Overrides:
flushRegularInsertin classDbSqlSession
-
flushBulkInsert
protected void flushBulkInsert(java.util.Collection<Entity> entities, java.lang.Class<? extends Entity> clazz)
- Overrides:
flushBulkInsertin classDbSqlSession
-
flushUpdates
protected void flushUpdates()
- Overrides:
flushUpdatesin classDbSqlSession
-
flushDeleteEntities
protected void flushDeleteEntities(java.lang.Class<? extends Entity> entityClass, java.util.Collection<Entity> entitiesToDelete)
- Overrides:
flushDeleteEntitiesin classDbSqlSession
-
flushBulkDeletes
protected void flushBulkDeletes(java.lang.Class<? extends Entity> entityClass)
- Overrides:
flushBulkDeletesin classDbSqlSession
-
getCurrentCommandExecution
public CommandExecutionResult getCurrentCommandExecution()
-
-