public abstract class JDBC3Statement extends CoreStatement
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
JDBC3Statement.SQLCallable<T> |
batch, batchPos, conn, pointer, resultsWaiting, rs, sqlSQLITE_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 |
JDBC3Statement(SQLiteConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(String sql) |
void |
cancel() |
void |
clearBatch() |
void |
clearWarnings() |
void |
close() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String sql,
int[] colinds) |
boolean |
execute(String sql,
String[] colnames) |
int[] |
executeBatch() |
long[] |
executeLargeBatch() |
long |
executeLargeUpdate(String sql) |
long |
executeLargeUpdate(String sql,
int autoGeneratedKeys) |
long |
executeLargeUpdate(String sql,
int[] colinds) |
long |
executeLargeUpdate(String sql,
String[] cols) |
ResultSet |
executeQuery(String sql) |
ResultSet |
executeQuery(String sql,
boolean closeStmt) |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String sql,
int[] colinds) |
int |
executeUpdate(String sql,
String[] cols) |
Connection |
getConnection() |
int |
getFetchDirection() |
int |
getFetchSize() |
ResultSet |
getGeneratedKeys()
As SQLite's last_insert_rowid() function is DB-specific not statement specific, this function
introduces a race condition if the same connection is used by two threads and both insert.
|
long |
getLargeMaxRows() |
long |
getLargeUpdateCount()
This function has a complex behaviour best understood by carefully reading the JavaDoc for
getMoreResults() and considering the test StatementTest.execute().
|
int |
getMaxFieldSize() |
int |
getMaxRows() |
boolean |
getMoreResults()
SQLite does not support multiple results from execute().
|
boolean |
getMoreResults(int c) |
int |
getQueryTimeout() |
ResultSet |
getResultSet() |
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
int |
getUpdateCount()
This function has a complex behaviour best understood by carefully reading the JavaDoc for
getMoreResults() and considering the test StatementTest.execute().
|
SQLWarning |
getWarnings() |
void |
setCursorName(String name) |
void |
setEscapeProcessing(boolean enable) |
void |
setFetchDirection(int direction) |
void |
setFetchSize(int r) |
void |
setLargeMaxRows(long max) |
void |
setMaxFieldSize(int max) |
void |
setMaxRows(int max) |
void |
setQueryTimeout(int seconds) |
protected SQLException |
unsupported() |
protected <T> T |
withConnectionTimeout(JDBC3Statement.SQLCallable<T> callable) |
checkOpen, exec, exec, getConnectionConfig, getDatabase, internalClose, notifyFirstStatementExecutedprotected JDBC3Statement(SQLiteConnection conn)
public void close()
throws SQLException
SQLExceptionStatement.close()public boolean execute(String sql) throws SQLException
SQLExceptionStatement.execute(java.lang.String)public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionStatement.execute(java.lang.String, int)public ResultSet executeQuery(String sql, boolean closeStmt) throws SQLException
executeQuery in class CoreStatementcloseStmt - Whether to close this statement when the resultset is closed.SQLExceptionStatement.executeQuery(java.lang.String)public ResultSet executeQuery(String sql) throws SQLException
SQLExceptionStatement.executeQuery(java.lang.String)public int executeUpdate(String sql) throws SQLException
SQLExceptionStatement.executeUpdate(java.lang.String)public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionStatement.executeUpdate(java.lang.String, int)public long executeLargeUpdate(String sql) throws SQLException
SQLExceptionStatement.executeLargeUpdate(java.lang.String)public long executeLargeUpdate(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionStatement.executeLargeUpdate(java.lang.String, int)public ResultSet getResultSet() throws SQLException
SQLExceptionStatement.getResultSet()public int getUpdateCount()
throws SQLException
SQLExceptionStatement.getUpdateCount()public long getLargeUpdateCount()
throws SQLException
SQLExceptionStatement.getLargeUpdateCount()public void addBatch(String sql) throws SQLException
SQLExceptionStatement.addBatch(java.lang.String)public void clearBatch()
throws SQLException
SQLExceptionStatement.clearBatch()public int[] executeBatch()
throws SQLException
SQLExceptionStatement.executeBatch()public long[] executeLargeBatch()
throws SQLException
SQLExceptionStatement.executeLargeBatch()public void setCursorName(String name)
public SQLWarning getWarnings() throws SQLException
SQLExceptionStatement.getWarnings()public void clearWarnings()
throws SQLException
SQLExceptionStatement.clearWarnings()public Connection getConnection() throws SQLException
SQLExceptionStatement.getConnection()public void cancel()
throws SQLException
SQLExceptionStatement.cancel()public int getQueryTimeout()
throws SQLException
SQLExceptionStatement.getQueryTimeout()public void setQueryTimeout(int seconds)
throws SQLException
SQLExceptionStatement.setQueryTimeout(int)public int getMaxRows()
throws SQLException
SQLExceptionStatement.getMaxRows()public long getLargeMaxRows()
throws SQLException
SQLExceptionStatement.getLargeMaxRows()public void setMaxRows(int max)
throws SQLException
SQLExceptionStatement.setMaxRows(int)public void setLargeMaxRows(long max)
throws SQLException
SQLExceptionStatement.setLargeMaxRows(long)public int getMaxFieldSize()
throws SQLException
SQLExceptionStatement.getMaxFieldSize()public void setMaxFieldSize(int max)
throws SQLException
SQLExceptionStatement.setMaxFieldSize(int)public int getFetchSize()
throws SQLException
SQLExceptionStatement.getFetchSize()public void setFetchSize(int r)
throws SQLException
SQLExceptionStatement.setFetchSize(int)public int getFetchDirection()
throws SQLException
SQLExceptionStatement.getFetchDirection()public void setFetchDirection(int direction)
throws SQLException
SQLExceptionStatement.setFetchDirection(int)public ResultSet getGeneratedKeys() throws SQLException
SQLExceptionStatement.getGeneratedKeys()public boolean getMoreResults()
throws SQLException
SQLExceptionStatement.getMoreResults()public boolean getMoreResults(int c)
throws SQLException
SQLExceptionStatement.getMoreResults(int)public int getResultSetConcurrency()
throws SQLException
SQLExceptionStatement.getResultSetConcurrency()public int getResultSetHoldability()
throws SQLException
SQLExceptionStatement.getResultSetHoldability()public int getResultSetType()
throws SQLException
SQLExceptionStatement.getResultSetType()public void setEscapeProcessing(boolean enable)
Statement.setEscapeProcessing(boolean)protected SQLException unsupported()
public boolean execute(String sql, int[] colinds) throws SQLException
SQLExceptionpublic boolean execute(String sql, String[] colnames) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, int[] colinds) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, String[] cols) throws SQLException
SQLExceptionpublic long executeLargeUpdate(String sql, int[] colinds) throws SQLException
SQLExceptionpublic long executeLargeUpdate(String sql, String[] cols) throws SQLException
SQLExceptionprotected <T> T withConnectionTimeout(JDBC3Statement.SQLCallable<T> callable) throws SQLException
SQLExceptionCopyright © 2022. All rights reserved.