Package org.sqlite.jdbc3
Class JDBC3Statement
java.lang.Object
org.sqlite.core.CoreStatement
org.sqlite.jdbc3.JDBC3Statement
- All Implemented Interfaces:
Codes
- Direct Known Subclasses:
JDBC4Statement
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.sqlite.core.CoreStatement
batch, batchPos, conn, pointer, resultsWaiting, rs, sqlFields inherited from interface org.sqlite.core.Codes
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancel()voidvoidvoidclose()booleanbooleanbooleanbooleanint[]long[]longexecuteLargeUpdate(String sql) longexecuteLargeUpdate(String sql, int autoGeneratedKeys) longexecuteLargeUpdate(String sql, int[] colinds) longexecuteLargeUpdate(String sql, String[] cols) executeQuery(String sql) executeQuery(String sql, boolean closeStmt) intexecuteUpdate(String sql) intexecuteUpdate(String sql, int autoGeneratedKeys) intexecuteUpdate(String sql, int[] colinds) intexecuteUpdate(String sql, String[] cols) intintlonglongThis function has a complex behaviour best understood by carefully reading the JavaDoc for getMoreResults() and considering the test StatementTest.execute().intintbooleanSQLite does not support multiple results from execute().booleangetMoreResults(int current) intintintintintThis function has a complex behaviour best understood by carefully reading the JavaDoc for getMoreResults() and considering the test StatementTest.execute().voidsetCursorName(String name) voidsetEscapeProcessing(boolean enable) voidsetFetchDirection(int direction) voidsetFetchSize(int r) voidsetLargeMaxRows(long max) voidsetMaxFieldSize(int max) voidsetMaxRows(int max) voidsetQueryTimeout(int seconds) protected SQLExceptionprotected <T> TwithConnectionTimeout(JDBC3Statement.SQLCallable<T> callable) Methods inherited from class org.sqlite.core.CoreStatement
checkIndex, checkOpen, clearGeneratedKeys, exec, exec, getConnectionConfig, getDatabase, getGeneratedKeys, internalClose, notifyFirstStatementExecuted, updateGeneratedKeys
-
Field Details
-
updateCount
protected long updateCount -
exhaustedResults
protected boolean exhaustedResults
-
-
Constructor Details
-
JDBC3Statement
-
-
Method Details
-
close
- Throws:
SQLException- See Also:
-
execute
- Throws:
SQLException- See Also:
-
execute
- Throws:
SQLException- See Also:
-
executeQuery
- Specified by:
executeQueryin classCoreStatement- Parameters:
closeStmt- Whether to close this statement when the resultset is closed.- Throws:
SQLException- See Also:
-
executeQuery
- Throws:
SQLException- See Also:
-
executeUpdate
- Throws:
SQLException- See Also:
-
executeUpdate
- Throws:
SQLException- See Also:
-
executeLargeUpdate
- Throws:
SQLException- See Also:
-
executeLargeUpdate
- Throws:
SQLException- See Also:
-
getResultSet
- Throws:
SQLException- See Also:
-
getUpdateCount
This function has a complex behaviour best understood by carefully reading the JavaDoc for getMoreResults() and considering the test StatementTest.execute().- Throws:
SQLException- See Also:
-
getLargeUpdateCount
This function has a complex behaviour best understood by carefully reading the JavaDoc for getMoreResults() and considering the test StatementTest.execute().- Throws:
SQLException- See Also:
-
addBatch
- Throws:
SQLException- See Also:
-
clearBatch
- Throws:
SQLException- See Also:
-
executeBatch
- Throws:
SQLException- See Also:
-
executeLargeBatch
- Throws:
SQLException- See Also:
-
setCursorName
-
getWarnings
- Throws:
SQLException- See Also:
-
clearWarnings
- Throws:
SQLException- See Also:
-
getConnection
- Throws:
SQLException- See Also:
-
cancel
- Throws:
SQLException- See Also:
-
getQueryTimeout
- Throws:
SQLException- See Also:
-
setQueryTimeout
- Throws:
SQLException- See Also:
-
getMaxRows
- Throws:
SQLException- See Also:
-
getLargeMaxRows
- Throws:
SQLException- See Also:
-
setMaxRows
- Throws:
SQLException- See Also:
-
setLargeMaxRows
- Throws:
SQLException- See Also:
-
getMaxFieldSize
- Throws:
SQLException- See Also:
-
setMaxFieldSize
- Throws:
SQLException- See Also:
-
getFetchSize
- Throws:
SQLException- See Also:
-
setFetchSize
- Throws:
SQLException- See Also:
-
getFetchDirection
- Throws:
SQLException- See Also:
-
setFetchDirection
- Throws:
SQLException- See Also:
-
getMoreResults
SQLite does not support multiple results from execute().- Throws:
SQLException- See Also:
-
getMoreResults
- Throws:
SQLException- See Also:
-
getResultSetConcurrency
- Throws:
SQLException- See Also:
-
getResultSetHoldability
- Throws:
SQLException- See Also:
-
getResultSetType
- Throws:
SQLException- See Also:
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable) - See Also:
-
unsupported
-
execute
- Throws:
SQLException
-
execute
- Throws:
SQLException
-
executeUpdate
- Throws:
SQLException
-
executeUpdate
- Throws:
SQLException
-
executeLargeUpdate
- Throws:
SQLException
-
executeLargeUpdate
- Throws:
SQLException
-
withConnectionTimeout
- Throws:
SQLException
-