public abstract class BatchWritingMechanism
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
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.
|
BatchWritingMechanism |
clone()
INTERNAL:
The mechanism will be cloned to be set into each accessor.
|
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
|
int |
getMaxBatchSize() |
void |
initialize(AbstractSession session)
INTERNAL:
Allow initialization with the session after login.
|
void |
setAccessor(DatabaseAccessor accessor,
AbstractSession session)
INTERNAL:
Sets the accessor that this mechanism will use
|
void |
setMaxBatchSize(int maxBatchSize) |
public int getMaxBatchSize()
public void setMaxBatchSize(int maxBatchSize)
public void setAccessor(DatabaseAccessor accessor, AbstractSession session)
public abstract void appendCall(AbstractSession session, DatabaseCall call)
public abstract void clear()
public abstract void executeBatchedStatements(AbstractSession session)
public BatchWritingMechanism clone()
clone
in class java.lang.Object
public void initialize(AbstractSession session)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference