Module org.datanucleus.store.rdbms
Interface BatchingFlushProcess
-
- All Superinterfaces:
org.datanucleus.flush.FlushProcess
public interface BatchingFlushProcess extends org.datanucleus.flush.FlushProcessA marker interface for defining a custom flush process for RDMS that goes beyond what can be controlled by standard flush mechanisms. Interface enables custom ways of specifying when insert-, update- and delete-requests can be batched. It all enables more batching (and thereby better performance) tailored to a given implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbatchInDeleteRequest(boolean optimisticChecks, org.datanucleus.ExecutionContext ec)Decide whether batching should be enabled for this kind of DeleteRequestbooleanbatchInInsertRequest(boolean hasIdentityColumn, StatementMappingIndex[] externalFKStmtMappings, org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.ExecutionContext ec)Decide whether batching should be enabled for this kind of InsertRequestbooleanbatchInUpdateRequest(boolean optimisticChecks, org.datanucleus.ExecutionContext ec)Decide whether batching should be enabled for this kind of UpdateRequest
-
-
-
Method Detail
-
batchInInsertRequest
boolean batchInInsertRequest(boolean hasIdentityColumn, StatementMappingIndex[] externalFKStmtMappings, org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.ExecutionContext ec)Decide whether batching should be enabled for this kind of InsertRequest- Parameters:
hasIdentityColumn- see InsertRequest for detailsexternalFKStmtMappings- see InsertRequest for detailscmd- Class meta data object for InsertRequestec- execution context- Returns:
- whether batching should be enabled for this kind of InsertRequest
-
batchInUpdateRequest
boolean batchInUpdateRequest(boolean optimisticChecks, org.datanucleus.ExecutionContext ec)Decide whether batching should be enabled for this kind of UpdateRequest- Parameters:
optimisticChecks- whether optimistic locking is enabled for object being updatedec- execution context- Returns:
- whether batching should be enabled for this kind of UpdateRequest
-
batchInDeleteRequest
boolean batchInDeleteRequest(boolean optimisticChecks, org.datanucleus.ExecutionContext ec)Decide whether batching should be enabled for this kind of DeleteRequest- Parameters:
optimisticChecks- whether optimistic locking is enabled for object being deletedec- execution context- Returns:
- whether batching should be enabled for this kind of DeleteRequest
-
-