public abstract class CorePreparedStatement extends JDBC4Statement
JDBC3Statement.SQLCallable<T>
Modifier and Type | Field and Description |
---|---|
protected int |
batchQueryCount |
protected int |
columnCount |
protected int |
paramCount |
batch, batchPos, conn, pointer, resultsWaiting, rs, sql
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
SQLITE_ABORT, SQLITE_AUTH, SQLITE_BLOB, SQLITE_BUSY, SQLITE_CANTOPEN, SQLITE_CONSTRAINT, SQLITE_CORRUPT, SQLITE_DONE, SQLITE_EMPTY, SQLITE_ERROR, SQLITE_FLOAT, SQLITE_FULL, SQLITE_INTEGER, SQLITE_INTERNAL, SQLITE_INTERRUPT, SQLITE_IOERR, SQLITE_LOCKED, SQLITE_MISMATCH, SQLITE_MISUSE, SQLITE_NOLFS, SQLITE_NOMEM, SQLITE_NOTFOUND, SQLITE_NULL, SQLITE_OK, SQLITE_PERM, SQLITE_PROTOCOL, SQLITE_READONLY, SQLITE_ROW, SQLITE_SCHEMA, SQLITE_TEXT, SQLITE_TOOBIG
Modifier | Constructor and Description |
---|---|
protected |
CorePreparedStatement(SQLiteConnection conn,
String sql)
Constructs a prepared statement on a provided connection.
|
Modifier and Type | Method and Description |
---|---|
protected void |
batch(int pos,
Object value)
Assigns the object value to the element at the specific position of array batch.
|
void |
clearBatch() |
int[] |
executeBatch() |
long[] |
executeLargeBatch() |
long |
getLargeUpdateCount()
This function has a complex behaviour best understood by carefully reading the JavaDoc for
getMoreResults() and considering the test StatementTest.execute().
|
int |
getUpdateCount()
This function has a complex behaviour best understood by carefully reading the JavaDoc for
getMoreResults() and considering the test StatementTest.execute().
|
protected void |
setDateByMilliseconds(int pos,
Long value,
Calendar calendar)
Store the date in the user's preferred format (text, int, or real)
|
close, closeOnCompletion, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setPoolable, unwrap
addBatch, cancel, clearWarnings, execute, execute, execute, execute, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setQueryTimeout, unsupported, withConnectionTimeout
checkOpen, exec, exec, getConnectionConfig, getDatabase, internalClose, notifyFirstStatementExecuted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBatch, cancel, clearWarnings, execute, execute, execute, execute, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setQueryTimeout
protected int columnCount
protected int paramCount
protected int batchQueryCount
protected CorePreparedStatement(SQLiteConnection conn, String sql) throws SQLException
conn
- Connection on which to create the prepared statement.sql
- The SQL script to prepare.SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
executeBatch
in class JDBC3Statement
SQLException
JDBC3Statement.executeBatch()
public long[] executeLargeBatch() throws SQLException
executeLargeBatch
in interface Statement
executeLargeBatch
in class JDBC3Statement
SQLException
JDBC3Statement.executeLargeBatch()
public void clearBatch() throws SQLException
clearBatch
in interface Statement
clearBatch
in class JDBC3Statement
SQLException
()
public int getUpdateCount() throws SQLException
JDBC3Statement
getUpdateCount
in interface Statement
getUpdateCount
in class JDBC3Statement
SQLException
JDBC3Statement.getUpdateCount()
public long getLargeUpdateCount() throws SQLException
JDBC3Statement
getLargeUpdateCount
in interface Statement
getLargeUpdateCount
in class JDBC3Statement
SQLException
JDBC3Statement.getLargeUpdateCount()
protected void batch(int pos, Object value) throws SQLException
pos
- value
- SQLException
protected void setDateByMilliseconds(int pos, Long value, Calendar calendar) throws SQLException
SQLException
Copyright © 2022. All rights reserved.