public abstract class BatchWritingMechanism
extends java.lang.Object
There are currently two types of the Mechanism implemented, one to handle the tradition dynamic SQL batching and another to handle Parameterized SQL. Depending on what is passed to these mechanisms they may decide to switch the current one out to the alternative type.
In bug# 214910 this interface was switched to an abstract class
Constructor and Description |
---|
BatchWritingMechanism() |
Modifier and Type | Method and Description |
---|---|
abstract void |
appendCall(AbstractSession session,
DatabaseCall call)
INTERNAL:
This method is called by the DatabaseAccessor to add this statement to the list of statements
being batched.
|
abstract 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.
|
abstract 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 execute
|
void |
setAccessor(DatabaseAccessor accessor)
INTERNAL:
Sets the accessor that this mechanism will use
|
public void setAccessor(DatabaseAccessor accessor)
public abstract void appendCall(AbstractSession session, DatabaseCall call)
public abstract void clear()
public abstract void executeBatchedStatements(AbstractSession session)
EclipseLink 2.4.2, "build v20130514-5956486" API Reference