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, paramCountFields inherited from class org.sqlite.jdbc3.JDBC3Statement
exhaustedResults, updateCountFields 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_TOOBIGFields 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
ConstructorsModifierConstructorDescriptionprotectedJDBC3PreparedStatement(SQLiteConnection conn, String sql) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatch()voidvoidbooleanexecute()booleanbooleanbooleanbooleanlonglongexecuteLargeUpdate(String sql) longexecuteLargeUpdate(String sql, int autoGeneratedKeys) longexecuteLargeUpdate(String sql, int[] colinds) longexecuteLargeUpdate(String sql, String[] cols) executeQuery(String sql) intintexecuteUpdate(String sql) intexecuteUpdate(String sql, int autoGeneratedKeys) intexecuteUpdate(String sql, int[] colinds) intexecuteUpdate(String sql, String[] cols) getParameterClassName(int param) intintgetParameterMode(int pos) intgetParameterType(int pos) getParameterTypeName(int pos) intgetPrecision(int pos) intgetScale(int pos) protected SQLExceptioninvalid()intisNullable(int pos) booleanisSigned(int pos) voidvoidsetAsciiStream(int pos, InputStream istream, int length) voidsetBigDecimal(int pos, BigDecimal value) voidsetBinaryStream(int pos, InputStream istream, int length) voidvoidsetBoolean(int pos, boolean value) voidsetByte(int pos, byte value) voidsetBytes(int pos, byte[] value) voidsetCharacterStream(int pos, Reader reader, int length) voidvoidvoidvoidsetDouble(int pos, double value) voidsetFloat(int pos, float value) voidsetInt(int pos, int value) voidsetLong(int pos, long value) voidsetNull(int pos, int u1) voidvoidvoidvoidvoidvoidsetShort(int pos, short value) voidvoidvoidvoidsetTimestamp(int pos, Timestamp x) voidsetTimestamp(int pos, Timestamp x, Calendar cal) voidsetUnicodeStream(int pos, InputStream istream, int length) voidprotected SQLExceptionMethods inherited from class org.sqlite.core.CorePreparedStatement
batch, clearBatch, executeBatch, executeLargeBatch, setDateByMillisecondsMethods inherited from class org.sqlite.jdbc4.JDBC4Statement
close, closeOnCompletion, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setPoolable, unwrapMethods 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, withConnectionTimeoutMethods inherited from class org.sqlite.core.CoreStatement
checkIndex, checkOpen, clearGeneratedKeys, exec, exec, getConnectionConfig, getDatabase, getGeneratedKeys, internalClose, notifyFirstStatementExecuted, updateGeneratedKeysMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
unsupportedin classJDBC3Statement
-
invalid
-
setArray
- Throws:
SQLException
-
setBlob
- Throws:
SQLException
-
setClob
- Throws:
SQLException
-
setRef
- Throws:
SQLException
-
setURL
- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classJDBC3Statement- Throws:
SQLException- See Also:
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classJDBC3Statement- Throws:
SQLException- See Also:
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classJDBC3Statement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Overrides:
executein classJDBC3Statement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classJDBC3Statement- Throws:
SQLException- See Also:
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classJDBC3Statement- Throws:
SQLException- See Also:
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classJDBC3Statement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classJDBC3Statement- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Overrides:
executeLargeUpdatein classJDBC3Statement- Throws:
SQLException- See Also:
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Overrides:
executeLargeUpdatein classJDBC3Statement- Throws:
SQLException- See Also:
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Overrides:
executeLargeUpdatein classJDBC3Statement- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfaceStatement- Overrides:
executeLargeUpdatein classJDBC3Statement- Throws:
SQLException
-
executeQuery
- Specified by:
executeQueryin interfaceStatement- Overrides:
executeQueryin classJDBC3Statement- Throws:
SQLException- See Also:
-
addBatch
- Specified by:
addBatchin interfaceStatement- Overrides:
addBatchin classJDBC3Statement- Throws:
SQLException- See Also:
-