public interface BatchUpdate extends ParameterProvider<BatchUpdate,PreparedStatement>
| Modifier and Type | Method and Description |
|---|---|
int |
count()
Executes the query and return the sum of the amount of rows modified by each batch.
|
int[] |
counts()
Executes the query and return the amount of rows modified by this query.
|
long |
largeCount()
Executes the query and return the sum of the amount of rows modified by each batch.
|
long[] |
largeCounts()
Executes the query and return the amount of rows modified by this query as a long.
|
BatchUpdate |
next()
Ends the current batch of parameters.
|
BatchUpdate |
next(String sql)
Ends the current batch of parameters.
|
prepare, set, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setURL, withclose, execute, getStatementBatchUpdate next()
Calling this method before providing data will generally cause an exception.
Not calling this method after your last batch of parameters will cause them to be ignored.
PreparedStatement.addBatch()BatchUpdate next(String sql)
Calling this method before providing data will generally cause an exception.
Not calling this method after your last batch of parameters will cause them to be ignored.
PreparedStatement.addBatch()int[] counts()
Statement.executeBatch()long[] largeCounts()
Statement.executeLargeBatch()int count()
Statement.executeBatch()long largeCount()
Statement.executeLargeBatch()Copyright © 2019. All rights reserved.