public class ParameterizedSQLBatchWritingMechanism extends BatchWritingMechanism
In the future EclipseLink may be modified to control the order of statements passed to the accessor. This would prevent checking the last executed statement to ensure that they match.
Constructor and Description |
---|
ParameterizedSQLBatchWritingMechanism(DatabaseAccessor databaseAccessor) |
Modifier and Type | Method and Description |
---|---|
void |
appendCall(AbstractSession session,
DatabaseCall dbCall)
INTERNAL:
This method is called by the DatabaseAccessor to add this statement to the list of statements
being batched.
|
void |
clear()
INTERNAL:
This method is used to clear the batched statements without the need to execute the statements first
This is used in the case of rollback.
|
void |
executeBatchedStatements(AbstractSession session)
INTERNAL:
This method is used by the DatabaseAccessor to clear the batched statements in the
case that a non batchable statement is being executed
|
setAccessor
public ParameterizedSQLBatchWritingMechanism(DatabaseAccessor databaseAccessor)
public void appendCall(AbstractSession session, DatabaseCall dbCall)
appendCall
in class BatchWritingMechanism
public void clear()
clear
in class BatchWritingMechanism
public void executeBatchedStatements(AbstractSession session)
executeBatchedStatements
in class BatchWritingMechanism
EclipseLink 2.4.2, "build v20130514-5956486" API Reference