public class DbSqlSession extends AbstractPersistenceSession
Modifier and Type | Field and Description |
---|---|
protected String |
connectionMetadataDefaultCatalog |
protected String |
connectionMetadataDefaultSchema |
protected DbSqlSessionFactory |
dbSqlSessionFactory |
static String[] |
JDBC_METADATA_TABLE_TYPES |
protected static EnginePersistenceLogger |
LOG |
protected org.apache.ibatis.session.SqlSession |
sqlSession |
listeners
Constructor and Description |
---|
DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory) |
DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory,
Connection connection,
String catalog,
String schema) |
addEntityLoadListener, dbSchemaCreate, dbSchemaDrop, dbSchemaPrune, dbSchemaUpdate, executeDbOperation, fireEntityLoaded
protected static final EnginePersistenceLogger LOG
protected org.apache.ibatis.session.SqlSession sqlSession
protected DbSqlSessionFactory dbSqlSessionFactory
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)
protected void insertEntity(DbEntityOperation operation)
insertEntity
in class AbstractPersistenceSession
protected void entityInserted(DbEntity entity)
protected void deleteEntity(DbEntityOperation operation)
deleteEntity
in class AbstractPersistenceSession
protected void entityDeleted(DbEntity entity)
protected void deleteBulk(DbBulkOperation operation)
deleteBulk
in class AbstractPersistenceSession
protected void updateEntity(DbEntityOperation operation)
updateEntity
in class AbstractPersistenceSession
protected void entityUpdated(DbEntity entity)
protected void updateBulk(DbBulkOperation operation)
updateBulk
in class AbstractPersistenceSession
public void flush()
public void close()
public void commit()
public void rollback()
public void dbSchemaCheckVersion()
protected String getDbVersion()
getDbVersion
in class AbstractPersistenceSession
protected void dbSchemaCreateIdentity()
dbSchemaCreateIdentity
in class AbstractPersistenceSession
protected void dbSchemaCreateHistory()
dbSchemaCreateHistory
in class AbstractPersistenceSession
protected void dbSchemaCreateEngine()
dbSchemaCreateEngine
in class AbstractPersistenceSession
protected void dbSchemaCreateCmmn()
dbSchemaCreateCmmn
in class AbstractPersistenceSession
protected void dbSchemaCreateCmmnHistory()
dbSchemaCreateCmmnHistory
in class AbstractPersistenceSession
protected void dbSchemaCreateDmn()
dbSchemaCreateDmn
in class AbstractPersistenceSession
protected void dbSchemaCreateDmnHistory()
dbSchemaCreateDmnHistory
in class AbstractPersistenceSession
protected void dbSchemaDropIdentity()
dbSchemaDropIdentity
in class AbstractPersistenceSession
protected void dbSchemaDropHistory()
dbSchemaDropHistory
in class AbstractPersistenceSession
protected void dbSchemaDropEngine()
dbSchemaDropEngine
in class AbstractPersistenceSession
protected void dbSchemaDropCmmn()
dbSchemaDropCmmn
in class AbstractPersistenceSession
protected void dbSchemaDropCmmnHistory()
dbSchemaDropCmmnHistory
in class AbstractPersistenceSession
protected void dbSchemaDropDmn()
dbSchemaDropDmn
in class AbstractPersistenceSession
protected void dbSchemaDropDmnHistory()
dbSchemaDropDmnHistory
in class AbstractPersistenceSession
public void executeMandatorySchemaResource(String operation, String component)
public boolean isEngineTablePresent()
isEngineTablePresent
in class AbstractPersistenceSession
public boolean isHistoryTablePresent()
isHistoryTablePresent
in class AbstractPersistenceSession
public boolean isIdentityTablePresent()
isIdentityTablePresent
in class AbstractPersistenceSession
public boolean isCmmnTablePresent()
isCmmnTablePresent
in class AbstractPersistenceSession
public boolean isCmmnHistoryTablePresent()
isCmmnHistoryTablePresent
in class AbstractPersistenceSession
public boolean isDmnTablePresent()
isDmnTablePresent
in class AbstractPersistenceSession
public boolean isDmnHistoryTablePresent()
isDmnHistoryTablePresent
in class AbstractPersistenceSession
public boolean isTablePresent(String tableName)
public List<String> getTableNamesPresent()
getTableNamesPresent
in interface PersistenceSession
getTableNamesPresent
in class AbstractPersistenceSession
protected List<String> getTablesPresentInOracleDatabase() throws SQLException
SQLException
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 org.apache.ibatis.session.SqlSession getSqlSession()
public DbSqlSessionFactory getDbSqlSessionFactory()
Copyright © 2018. All rights reserved.