Modifier and Type | Class and Description |
---|---|
class |
DbSqlSession.BulkDeleteOperation
Use this
DbSqlSession.DeleteOperation to execute a dedicated delete statement. |
class |
DbSqlSession.BulkUpdateOperation |
static class |
DbSqlSession.CachedObject |
static interface |
DbSqlSession.DeleteOperation |
class |
DbSqlSession.DeletePersistentObjectOperation
A
DbSqlSession.DeleteOperation used when the persistent object has been fetched already. |
Modifier and Type | Field and Description |
---|---|
protected List<DbSqlSession.BulkUpdateOperation> |
bulkUpdates |
protected Map<Class<?>,Map<String,DbSqlSession.CachedObject>> |
cachedObjects |
protected String |
connectionMetadataDefaultCatalog |
protected String |
connectionMetadataDefaultSchema |
protected DbSqlSessionFactory |
dbSqlSessionFactory |
protected List<DbSqlSession.DeleteOperation> |
deleteOperations |
protected List<DeserializedObject> |
deserializedObjects |
protected List<PersistentObject> |
insertedObjects |
static String[] |
JDBC_METADATA_TABLE_TYPES |
protected org.apache.ibatis.session.SqlSession |
sqlSession |
protected List<PersistentObject> |
updatedObjects |
Constructor and Description |
---|
DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory) |
DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory,
Connection connection,
String catalog,
String schema) |
protected org.apache.ibatis.session.SqlSession sqlSession
protected DbSqlSessionFactory dbSqlSessionFactory
protected List<PersistentObject> insertedObjects
protected List<PersistentObject> updatedObjects
protected Map<Class<?>,Map<String,DbSqlSession.CachedObject>> cachedObjects
protected List<DbSqlSession.BulkUpdateOperation> bulkUpdates
protected List<DbSqlSession.DeleteOperation> deleteOperations
protected List<DeserializedObject> deserializedObjects
protected String connectionMetadataDefaultCatalog
protected String connectionMetadataDefaultSchema
public static String[] JDBC_METADATA_TABLE_TYPES
public DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory)
public DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, Connection connection, String catalog, String schema)
public void insert(PersistentObject persistentObject)
public void update(PersistentObject persistentObject)
public void delete(PersistentObject persistentObject)
public List selectList(String statement, ListQueryParameterObject parameter, Page page)
public List selectList(String statement, Object parameter, int firstResult, int maxResults)
public List selectList(String statement, ListQueryParameterObject parameter)
public List selectListWithRawParameter(String statement, Object parameter, int firstResult, int maxResults)
public <T extends PersistentObject> T selectById(Class<T> entityClass, String id)
protected DbSqlSession.CachedObject cachePut(PersistentObject persistentObject, boolean storeState)
protected PersistentObject cacheFilter(PersistentObject persistentObject)
public void addDeserializedObject(Object deserializedObject, byte[] serializedBytes, VariableInstanceEntity variableInstanceEntity)
protected void removeUnnecessaryOperations()
protected PersistentObject findInsertedObject(Class<?> persistenceObjectClass, String persistentObjectId)
protected void flushDeserializedObjects()
public List<PersistentObject> getUpdatedObjects()
public boolean isUpdated(PersistentObject persistentObject)
protected boolean isPersistentObjectDeleted(PersistentObject persistentObject)
public <T extends PersistentObject> List<T> pruneDeletedEntities(List<T> listToPrune)
protected void flushInserts()
protected void flushUpdates(List<PersistentObject> updatedObjects)
protected void flushBulkUpdates()
protected void flushDeletes()
public void commit()
public void rollback()
protected String toString(PersistentObject persistentObject)
public void dbSchemaCheckVersion()
public void dbCreateHistoryLevel()
public void checkHistoryLevel()
protected String addMissingComponent(String missingComponents, String component)
protected String getDbVersion()
public void dbSchemaCreate()
protected void dbSchemaCreateIdentity()
protected void dbSchemaCreateHistory()
protected void dbSchemaCreateEngine()
public void dbSchemaDrop()
public void dbSchemaPrune()
public void executeMandatorySchemaResource(String operation, String component)
public String dbSchemaUpdate()
public boolean isEngineTablePresent()
public boolean isHistoryTablePresent()
public boolean isIdentityTablePresent()
public boolean isTablePresent(String tableName)
public String getResourceForDbOperation(String directory, String operation, String component)
public void executeSchemaResource(String operation, String component, String resourceName, boolean isOptional)
public void executeSchemaResource(String schemaFileResourceName)
protected String readNextTrimmedLine(BufferedReader reader) throws IOException
IOException
protected boolean isMissingTablesException(Exception e)
public void performSchemaOperationsProcessEngineBuild()
public void performSchemaOperationsProcessEngineClose()
public DeploymentQueryImpl createDeploymentQuery()
public ProcessDefinitionQueryImpl createProcessDefinitionQuery()
public ProcessInstanceQueryImpl createProcessInstanceQuery()
public ExecutionQueryImpl createExecutionQuery()
public TaskQueryImpl createTaskQuery()
public JobQueryImpl createJobQuery()
public HistoricProcessInstanceQueryImpl createHistoricProcessInstanceQuery()
public HistoricActivityInstanceQueryImpl createHistoricActivityInstanceQuery()
public HistoricTaskInstanceQueryImpl createHistoricTaskInstanceQuery()
public HistoricDetailQueryImpl createHistoricDetailQuery()
public HistoricVariableInstanceQueryImpl createHistoricVariableInstanceQuery()
public UserQueryImpl createUserQuery()
public GroupQueryImpl createGroupQuery()
public org.apache.ibatis.session.SqlSession getSqlSession()
public DbSqlSessionFactory getDbSqlSessionFactory()
Copyright © 2015. All rights reserved.