public class BatchingPreparedStatementManagerImpl extends PreparedStatementManagerImpl
_conn, _dict, _exceptions, _log, _store| Constructor and Description |
|---|
BatchingPreparedStatementManagerImpl(JDBCStore store,
java.sql.Connection conn,
int batchLimit)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBatch(java.sql.PreparedStatement ps,
RowImpl row,
int count) |
protected void |
batchOrExecuteRow(RowImpl row) |
protected int[] |
executeBatch(java.sql.PreparedStatement ps) |
protected void |
flushAndUpdate(RowImpl row)
Flush the given row immediately or deferred the flush in batch.
|
protected void |
flushBatch()
flush all cached up statements to be executed as a single or batched
prepared statements.
|
java.util.List<RowImpl> |
getBatchedRows() |
java.lang.String |
getBatchedSql() |
int |
getBatchLimit() |
boolean |
isBatchDisabled() |
void |
setBatchDisabled(boolean disableBatch) |
void |
setBatchLimit(int batchLimit) |
executeUpdate, flush, flush, flushInternal, getAutoAssignColNames, getAutoAssignColumns, getExceptions, getGeneratedKeys, getGeneratedKeys, logSQLWarnings, logSQLWarnings, populateAutoAssignCols, populateAutoAssignCols, prepareStatement, prepareStatement, setObjectId, setObjectIdpublic BatchingPreparedStatementManagerImpl(JDBCStore store, java.sql.Connection conn, int batchLimit)
protected void flushAndUpdate(RowImpl row) throws java.sql.SQLException
flushAndUpdate in class PreparedStatementManagerImpljava.sql.SQLExceptionprotected void batchOrExecuteRow(RowImpl row) throws java.sql.SQLException
java.sql.SQLExceptionprotected void flushBatch()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isBatchDisabled()
public void setBatchDisabled(boolean disableBatch)
public int getBatchLimit()
public void setBatchLimit(int batchLimit)
public java.util.List<RowImpl> getBatchedRows()
public java.lang.String getBatchedSql()
protected void addBatch(java.sql.PreparedStatement ps,
RowImpl row,
int count)
throws java.sql.SQLException
java.sql.SQLExceptionprotected int[] executeBatch(java.sql.PreparedStatement ps)
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.