Package org.camunda.bpm.engine.impl.db
Class AbstractPersistenceSession
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.AbstractPersistenceSession
-
- All Implemented Interfaces:
PersistenceSession
,Session
- Direct Known Subclasses:
DbSqlSession
public abstract class AbstractPersistenceSession extends Object implements PersistenceSession
- Author:
- Sebastian Menski
-
-
Field Summary
Fields Modifier and Type Field Description protected List<EntityLoadListener>
listeners
protected static EnginePersistenceLogger
LOG
-
Constructor Summary
Constructors Constructor Description AbstractPersistenceSession()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addEntityLoadListener(EntityLoadListener listener)
void
dbSchemaCreate()
protected abstract void
dbSchemaCreateCmmn()
protected abstract void
dbSchemaCreateCmmnHistory()
protected abstract void
dbSchemaCreateDmn()
protected abstract void
dbSchemaCreateDmnHistory()
protected abstract void
dbSchemaCreateEngine()
protected abstract void
dbSchemaCreateHistory()
protected abstract void
dbSchemaCreateIdentity()
void
dbSchemaDrop()
protected abstract void
dbSchemaDropCmmn()
protected abstract void
dbSchemaDropCmmnHistory()
protected abstract void
dbSchemaDropDmn()
protected abstract void
dbSchemaDropDmnHistory()
protected abstract void
dbSchemaDropEngine()
protected abstract void
dbSchemaDropHistory()
protected abstract void
dbSchemaDropIdentity()
void
dbSchemaPrune()
void
dbSchemaUpdate()
protected abstract void
deleteBulk(DbBulkOperation operation)
protected abstract void
deleteEntity(DbEntityOperation operation)
void
executeDbOperation(DbOperation operation)
protected void
fireEntityLoaded(Object result)
protected abstract String
getDbVersion()
List<String>
getTableNamesPresent()
protected abstract void
insertEntity(DbEntityOperation operation)
abstract boolean
isCmmnHistoryTablePresent()
abstract boolean
isCmmnTablePresent()
abstract boolean
isDmnHistoryTablePresent()
abstract boolean
isDmnTablePresent()
abstract boolean
isEngineTablePresent()
abstract boolean
isHistoryTablePresent()
abstract boolean
isIdentityTablePresent()
protected abstract void
updateBulk(DbBulkOperation operation)
protected abstract void
updateEntity(DbEntityOperation operation)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.db.PersistenceSession
commit, dbSchemaCheckVersion, executeDbOperations, executeNonEmptyUpdateStmt, flushOperations, lock, rollback, selectById, selectList, selectOne
-
-
-
-
Field Detail
-
LOG
protected static final EnginePersistenceLogger LOG
-
listeners
protected List<EntityLoadListener> listeners
-
-
Method Detail
-
executeDbOperation
public void executeDbOperation(DbOperation operation)
-
insertEntity
protected abstract void insertEntity(DbEntityOperation operation)
-
deleteEntity
protected abstract void deleteEntity(DbEntityOperation operation)
-
deleteBulk
protected abstract void deleteBulk(DbBulkOperation operation)
-
updateEntity
protected abstract void updateEntity(DbEntityOperation operation)
-
updateBulk
protected abstract void updateBulk(DbBulkOperation operation)
-
getDbVersion
protected abstract String getDbVersion()
-
dbSchemaCreate
public void dbSchemaCreate()
- Specified by:
dbSchemaCreate
in interfacePersistenceSession
-
dbSchemaCreateIdentity
protected abstract void dbSchemaCreateIdentity()
-
dbSchemaCreateHistory
protected abstract void dbSchemaCreateHistory()
-
dbSchemaCreateEngine
protected abstract void dbSchemaCreateEngine()
-
dbSchemaCreateCmmn
protected abstract void dbSchemaCreateCmmn()
-
dbSchemaCreateCmmnHistory
protected abstract void dbSchemaCreateCmmnHistory()
-
dbSchemaCreateDmn
protected abstract void dbSchemaCreateDmn()
-
dbSchemaCreateDmnHistory
protected abstract void dbSchemaCreateDmnHistory()
-
dbSchemaDrop
public void dbSchemaDrop()
- Specified by:
dbSchemaDrop
in interfacePersistenceSession
-
dbSchemaDropIdentity
protected abstract void dbSchemaDropIdentity()
-
dbSchemaDropHistory
protected abstract void dbSchemaDropHistory()
-
dbSchemaDropEngine
protected abstract void dbSchemaDropEngine()
-
dbSchemaDropCmmn
protected abstract void dbSchemaDropCmmn()
-
dbSchemaDropCmmnHistory
protected abstract void dbSchemaDropCmmnHistory()
-
dbSchemaDropDmn
protected abstract void dbSchemaDropDmn()
-
dbSchemaDropDmnHistory
protected abstract void dbSchemaDropDmnHistory()
-
dbSchemaPrune
public void dbSchemaPrune()
- Specified by:
dbSchemaPrune
in interfacePersistenceSession
-
isEngineTablePresent
public abstract boolean isEngineTablePresent()
-
isHistoryTablePresent
public abstract boolean isHistoryTablePresent()
-
isIdentityTablePresent
public abstract boolean isIdentityTablePresent()
-
isCmmnTablePresent
public abstract boolean isCmmnTablePresent()
-
isCmmnHistoryTablePresent
public abstract boolean isCmmnHistoryTablePresent()
-
isDmnTablePresent
public abstract boolean isDmnTablePresent()
-
isDmnHistoryTablePresent
public abstract boolean isDmnHistoryTablePresent()
-
dbSchemaUpdate
public void dbSchemaUpdate()
- Specified by:
dbSchemaUpdate
in interfacePersistenceSession
-
getTableNamesPresent
public List<String> getTableNamesPresent()
- Specified by:
getTableNamesPresent
in interfacePersistenceSession
-
addEntityLoadListener
public void addEntityLoadListener(EntityLoadListener listener)
- Specified by:
addEntityLoadListener
in interfacePersistenceSession
-
fireEntityLoaded
protected void fireEntityLoaded(Object result)
-
-