public abstract class JDBC3Statement extends CoreStatement
batch, batchPos, conn, db, metadata, 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 autokeys) |
boolean |
execute(String sql,
int[] colinds) |
boolean |
execute(String sql,
String[] colnames) |
int[] |
executeBatch() |
ResultSet |
executeQuery(String sql) |
ResultSet |
executeQuery(String sql,
boolean closeStmt) |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int autoKeys) |
int |
executeUpdate(String sql,
int[] colinds) |
int |
executeUpdate(String sql,
String[] cols) |
protected void |
finalize() |
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.
|
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() |
SQLWarning |
getWarnings() |
void |
setCursorName(String name) |
void |
setEscapeProcessing(boolean enable) |
void |
setFetchDirection(int d) |
void |
setFetchSize(int r) |
void |
setMaxFieldSize(int max) |
void |
setMaxRows(int max) |
void |
setQueryTimeout(int seconds) |
protected SQLException |
unused() |
checkOpen, exec, exec, internalCloseprotected JDBC3Statement(SQLiteConnection conn)
public void close()
throws SQLException
SQLExceptionStatement.close()protected void finalize()
throws SQLException
finalize in class ObjectSQLExceptionObject.finalize()public boolean execute(String sql) throws SQLException
SQLExceptionStatement.execute(java.lang.String)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 ResultSet getResultSet() throws SQLException
SQLExceptionStatement.getResultSet()public int getUpdateCount()
throws SQLException
SQLExceptionpublic 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 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 void setMaxRows(int max)
throws SQLException
SQLExceptionStatement.setMaxRows(int)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 d)
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)
throws SQLException
SQLExceptionStatement.setEscapeProcessing(boolean)protected SQLException unused()
public boolean execute(String sql, int[] colinds) throws SQLException
SQLExceptionpublic boolean execute(String sql, String[] colnames) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, int autoKeys) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, int[] colinds) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, String[] cols) throws SQLException
SQLExceptionpublic boolean execute(String sql, int autokeys) throws SQLException
SQLExceptionCopyright © 2015. All rights reserved.