public class BatchingPreparedStatementManagerImpl extends PreparedStatementManagerImpl
_conn, _dict, _exceptions, _log, _store| Constructor and Description |
|---|
BatchingPreparedStatementManagerImpl(JDBCStore store,
Connection conn,
int batchLimit)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBatch(PreparedStatement ps,
RowImpl row,
int count) |
protected void |
batchOrExecuteRow(RowImpl row) |
protected int[] |
executeBatch(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.
|
List<RowImpl> |
getBatchedRows() |
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, Connection conn, int batchLimit)
protected void flushAndUpdate(RowImpl row) throws SQLException
flushAndUpdate in class PreparedStatementManagerImplSQLExceptionprotected void batchOrExecuteRow(RowImpl row) throws SQLException
SQLExceptionprotected void flushBatch()
throws SQLException
SQLExceptionpublic boolean isBatchDisabled()
public void setBatchDisabled(boolean disableBatch)
public int getBatchLimit()
public void setBatchLimit(int batchLimit)
public String getBatchedSql()
protected void addBatch(PreparedStatement ps, RowImpl row, int count) throws SQLException
SQLExceptionprotected int[] executeBatch(PreparedStatement ps) throws SQLException
SQLExceptionCopyright © 2006–2022 Apache Software Foundation. All rights reserved.