Package org.sqlite.jdbc3
Class JDBC3PreparedStatement
java.lang.Object
org.sqlite.core.CoreStatement
org.sqlite.jdbc3.JDBC3Statement
org.sqlite.jdbc4.JDBC4Statement
org.sqlite.core.CorePreparedStatement
org.sqlite.jdbc3.JDBC3PreparedStatement
- All Implemented Interfaces:
AutoCloseable
,Statement
,Wrapper
,Codes
- Direct Known Subclasses:
JDBC4PreparedStatement
-
Nested Class Summary
Nested classes/interfaces inherited from class org.sqlite.jdbc3.JDBC3Statement
JDBC3Statement.SQLCallable<T>
-
Field Summary
Fields inherited from class org.sqlite.core.CorePreparedStatement
batchQueryCount, columnCount, paramCount
Fields inherited from class org.sqlite.jdbc3.JDBC3Statement
exhaustedResults, updateCount
Fields 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
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JDBC3PreparedStatement
(SQLiteConnection conn, String sql) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBatch()
void
void
boolean
execute()
boolean
boolean
boolean
boolean
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) int
int
executeUpdate
(String sql) int
executeUpdate
(String sql, int autoGeneratedKeys) int
executeUpdate
(String sql, int[] colinds) int
executeUpdate
(String sql, String[] cols) getParameterClassName
(int param) int
int
getParameterMode
(int pos) int
getParameterType
(int pos) getParameterTypeName
(int pos) int
getPrecision
(int pos) int
getScale
(int pos) protected SQLException
invalid()
int
isNullable
(int pos) boolean
isSigned
(int pos) void
void
setAsciiStream
(int pos, InputStream istream, int length) void
setBigDecimal
(int pos, BigDecimal value) void
setBinaryStream
(int pos, InputStream istream, int length) void
void
setBoolean
(int pos, boolean value) void
setByte
(int pos, byte value) void
setBytes
(int pos, byte[] value) void
setCharacterStream
(int pos, Reader reader, int length) void
void
void
void
setDouble
(int pos, double value) void
setFloat
(int pos, float value) void
setInt
(int pos, int value) void
setLong
(int pos, long value) void
setNull
(int pos, int u1) void
void
void
void
void
void
setShort
(int pos, short value) void
void
void
void
setTimestamp
(int pos, Timestamp x) void
setTimestamp
(int pos, Timestamp x, Calendar cal) void
setUnicodeStream
(int pos, InputStream istream, int length) void
protected SQLException
Methods inherited from class org.sqlite.core.CorePreparedStatement
batch, clearBatch, executeBatch, executeLargeBatch, setDateByMilliseconds
Methods inherited from class org.sqlite.jdbc4.JDBC4Statement
close, closeOnCompletion, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setPoolable, unwrap
Methods inherited from class org.sqlite.jdbc3.JDBC3Statement
cancel, clearWarnings, executeQuery, getConnection, getFetchDirection, getFetchSize, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setQueryTimeout, withConnectionTimeout
Methods inherited from class org.sqlite.core.CoreStatement
checkIndex, checkOpen, clearGeneratedKeys, exec, exec, getConnectionConfig, getDatabase, getGeneratedKeys, internalClose, notifyFirstStatementExecuted, updateGeneratedKeys
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.Statement
cancel, clearWarnings, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setQueryTimeout
-
Constructor Details
-
JDBC3PreparedStatement
- Throws:
SQLException
-
-
Method Details
-
clearParameters
- Throws:
SQLException
- See Also:
-
execute
- Throws:
SQLException
- See Also:
-
executeQuery
- Throws:
SQLException
- See Also:
-
executeUpdate
- Throws:
SQLException
- See Also:
-
executeLargeUpdate
- Throws:
SQLException
- See Also:
-
addBatch
- Throws:
SQLException
- See Also:
-
getParameterMetaData
- See Also:
-
getParameterCount
- Throws:
SQLException
- See Also:
-
getParameterClassName
- Throws:
SQLException
- See Also:
-
getParameterTypeName
- Throws:
SQLException
- See Also:
-
getParameterType
- Throws:
SQLException
- See Also:
-
getParameterMode
public int getParameterMode(int pos) - See Also:
-
getPrecision
public int getPrecision(int pos) - See Also:
-
getScale
public int getScale(int pos) - See Also:
-
isNullable
public int isNullable(int pos) - See Also:
-
isSigned
public boolean isSigned(int pos) - See Also:
-
getStatement
- Returns:
-
setBigDecimal
- Throws:
SQLException
- See Also:
-
setBinaryStream
- Throws:
SQLException
- See Also:
-
setAsciiStream
- Throws:
SQLException
- See Also:
-
setUnicodeStream
-
setBoolean
- Throws:
SQLException
- See Also:
-
setByte
- Throws:
SQLException
- See Also:
-
setBytes
- Throws:
SQLException
- See Also:
-
setDouble
- Throws:
SQLException
- See Also:
-
setFloat
- Throws:
SQLException
- See Also:
-
setInt
- Throws:
SQLException
- See Also:
-
setLong
- Throws:
SQLException
- See Also:
-
setNull
- Throws:
SQLException
- See Also:
-
setNull
- Throws:
SQLException
- See Also:
-
setObject
- Throws:
SQLException
- See Also:
-
setObject
- Throws:
SQLException
- See Also:
-
setObject
- Throws:
SQLException
- See Also:
-
setShort
- Throws:
SQLException
- See Also:
-
setString
- Throws:
SQLException
- See Also:
-
setCharacterStream
- Throws:
SQLException
- See Also:
-
setDate
- Throws:
SQLException
- See Also:
-
setDate
-
setTime
- Throws:
SQLException
- See Also:
-
setTime
-
setTimestamp
- Throws:
SQLException
- See Also:
-
setTimestamp
-
getMetaData
- Throws:
SQLException
- See Also:
-
unsupported
- Overrides:
unsupported
in classJDBC3Statement
-
invalid
-
setArray
- Throws:
SQLException
-
setBlob
- Throws:
SQLException
-
setClob
- Throws:
SQLException
-
setRef
- Throws:
SQLException
-
setURL
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classJDBC3Statement
- Throws:
SQLException
- See Also:
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classJDBC3Statement
- Throws:
SQLException
- See Also:
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classJDBC3Statement
- Throws:
SQLException
-
execute
- Specified by:
execute
in interfaceStatement
- Overrides:
execute
in classJDBC3Statement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classJDBC3Statement
- Throws:
SQLException
- See Also:
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classJDBC3Statement
- Throws:
SQLException
- See Also:
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classJDBC3Statement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Overrides:
executeUpdate
in classJDBC3Statement
- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdate
in interfaceStatement
- Overrides:
executeLargeUpdate
in classJDBC3Statement
- Throws:
SQLException
- See Also:
-
executeLargeUpdate
- Specified by:
executeLargeUpdate
in interfaceStatement
- Overrides:
executeLargeUpdate
in classJDBC3Statement
- Throws:
SQLException
- See Also:
-
executeLargeUpdate
- Specified by:
executeLargeUpdate
in interfaceStatement
- Overrides:
executeLargeUpdate
in classJDBC3Statement
- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdate
in interfaceStatement
- Overrides:
executeLargeUpdate
in classJDBC3Statement
- Throws:
SQLException
-
executeQuery
- Specified by:
executeQuery
in interfaceStatement
- Overrides:
executeQuery
in classJDBC3Statement
- Throws:
SQLException
- See Also:
-
addBatch
- Specified by:
addBatch
in interfaceStatement
- Overrides:
addBatch
in classJDBC3Statement
- Throws:
SQLException
- See Also:
-