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, sql
Fields 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 TypeMethodDescriptionvoid
void
cancel()
void
void
void
close()
boolean
boolean
boolean
boolean
int[]
long[]
long
executeLargeUpdate
(String sql) long
executeLargeUpdate
(String sql, int autoGeneratedKeys) long
executeLargeUpdate
(String sql, int[] colinds) long
executeLargeUpdate
(String sql, String[] cols) executeQuery
(String sql) 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) int
int
long
long
This function has a complex behaviour best understood by carefully reading the JavaDoc for getMoreResults() and considering the test StatementTest.execute().int
int
boolean
SQLite does not support multiple results from execute().boolean
getMoreResults
(int current) int
int
int
int
int
This function has a complex behaviour best understood by carefully reading the JavaDoc for getMoreResults() and considering the test StatementTest.execute().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
protected <T> T
withConnectionTimeout
(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:
executeQuery
in 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
-