Package org.copperengine.core.persistent
Interface WorkflowPersistencePlugin
-
- All Known Implementing Classes:
DefaultWorkflowPersistencePlugin
public interface WorkflowPersistencePlugin
Interface for plugging in additional persistence feature intoOracleDialect
andAbstractSqlDialect
.
-
-
Field Summary
Fields Modifier and Type Field Description static WorkflowPersistencePlugin
NULL_PLUGIN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onWorkflowsDeleted(java.sql.Connection con, java.lang.Iterable<? extends PersistentWorkflow<?>> workflows)
Implementations have to callPersistentWorkflow.onDelete(PersistenceContext)
for every workflow passed.void
onWorkflowsLoaded(java.sql.Connection con, java.lang.Iterable<? extends PersistentWorkflow<?>> workflows)
Implementations have to callPersistentWorkflow.onLoad(PersistenceContext)
for every workflow passed.void
onWorkflowsSaved(java.sql.Connection con, java.lang.Iterable<? extends PersistentWorkflow<?>> workflows)
Implementations have to callPersistentWorkflow.onLoad(PersistenceContext)
for every workflow passed.
-
-
-
Field Detail
-
NULL_PLUGIN
static final WorkflowPersistencePlugin NULL_PLUGIN
-
-
Method Detail
-
onWorkflowsLoaded
void onWorkflowsLoaded(java.sql.Connection con, java.lang.Iterable<? extends PersistentWorkflow<?>> workflows) throws java.sql.SQLException
Implementations have to callPersistentWorkflow.onLoad(PersistenceContext)
for every workflow passed.- Parameters:
con
- The database connection the load operation is bound to.workflows
- The workflows that are being loaded- Throws:
java.sql.SQLException
- Implementations may pass SQL Exception to be handled by the database dialect
-
onWorkflowsSaved
void onWorkflowsSaved(java.sql.Connection con, java.lang.Iterable<? extends PersistentWorkflow<?>> workflows) throws java.sql.SQLException
Implementations have to callPersistentWorkflow.onLoad(PersistenceContext)
for every workflow passed.- Parameters:
con
- The database connection the load operation is bound to.workflows
- The workflows that are being loaded- Throws:
java.sql.SQLException
- Implementations may pass SQL Exception to be handled by the database dialect
-
onWorkflowsDeleted
void onWorkflowsDeleted(java.sql.Connection con, java.lang.Iterable<? extends PersistentWorkflow<?>> workflows) throws java.sql.SQLException
Implementations have to callPersistentWorkflow.onDelete(PersistenceContext)
for every workflow passed.- Parameters:
con
- The database connection the load operation is bound to.workflows
- list of workflows specified by any Iterable.- Throws:
java.sql.SQLException
- Implementations may pass SQL Exception to be handled by the database dialect
-
-