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, setObjectId
public BatchingPreparedStatementManagerImpl(JDBCStore store, Connection conn, int batchLimit)
protected void flushAndUpdate(RowImpl row) throws SQLException
flushAndUpdate
in class PreparedStatementManagerImpl
SQLException
protected void batchOrExecuteRow(RowImpl row) throws SQLException
SQLException
protected void flushBatch() throws SQLException
SQLException
public 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
SQLException
protected int[] executeBatch(PreparedStatement ps) throws SQLException
SQLException
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.