- 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
public abstract class JDBC3PreparedStatement extends CorePreparedStatement
-
-
Field Summary
-
Fields inherited from class org.sqlite.core.CorePreparedStatement
batchQueryCount, columnCount, paramCount
-
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
Constructors Modifier Constructor Description protectedJDBC3PreparedStatement(SQLiteConnection conn, String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBatch()voidaddBatch(String sql)voidclearParameters()booleanexecute()booleanexecute(String sql)ResultSetexecuteQuery()ResultSetexecuteQuery(String sql)intexecuteUpdate()intexecuteUpdate(String sql)ResultSetMetaDatagetMetaData()StringgetParameterClassName(int param)intgetParameterCount()ParameterMetaDatagetParameterMetaData()intgetParameterMode(int pos)intgetParameterType(int pos)StringgetParameterTypeName(int pos)intgetPrecision(int pos)intgetScale(int pos)StatementgetStatement()intisNullable(int pos)booleanisSigned(int pos)voidsetArray(int i, Array x)voidsetAsciiStream(int pos, InputStream istream, int length)voidsetBigDecimal(int pos, BigDecimal value)voidsetBinaryStream(int pos, InputStream istream, int length)voidsetBlob(int i, Blob x)voidsetBoolean(int pos, boolean value)voidsetByte(int pos, byte value)voidsetBytes(int pos, byte[] value)voidsetCharacterStream(int pos, Reader reader, int length)voidsetClob(int i, Clob x)voidsetDate(int pos, Date x)voidsetDate(int pos, Date x, Calendar cal)voidsetDouble(int pos, double value)voidsetFloat(int pos, float value)voidsetInt(int pos, int value)voidsetLong(int pos, long value)voidsetNull(int pos, int u1)voidsetNull(int pos, int u1, String u2)voidsetObject(int pos, Object value)voidsetObject(int p, Object v, int t)voidsetObject(int p, Object v, int t, int s)voidsetRef(int i, Ref x)voidsetShort(int pos, short value)voidsetString(int pos, String value)voidsetTime(int pos, Time x)voidsetTime(int pos, Time x, Calendar cal)voidsetTimestamp(int pos, Timestamp x)voidsetTimestamp(int pos, Timestamp x, Calendar cal)voidsetUnicodeStream(int pos, InputStream istream, int length)voidsetURL(int pos, URL x)protected SQLExceptionunused()-
Methods inherited from class org.sqlite.core.CorePreparedStatement
batch, clearBatch, executeBatch, getUpdateCount, 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, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
-
Methods inherited from class org.sqlite.core.CoreStatement
checkOpen, exec, exec, getConnectionConfig, getDatbase, internalClose
-
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, execute, execute, execute, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setQueryTimeout
-
-
-
-
Constructor Detail
-
JDBC3PreparedStatement
protected JDBC3PreparedStatement(SQLiteConnection conn, String sql) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
clearParameters
public void clearParameters() throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.clearParameters()
-
execute
public boolean execute() throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.execute()
-
executeQuery
public ResultSet executeQuery() throws SQLException
- Throws:
SQLException- See Also:
PreparedStatement.executeQuery()
-
executeUpdate
public int executeUpdate() throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.executeUpdate()
-
addBatch
public void addBatch() throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.addBatch()
-
getParameterMetaData
public ParameterMetaData getParameterMetaData()
- See Also:
PreparedStatement.getParameterMetaData()
-
getParameterCount
public int getParameterCount() throws SQLException- Throws:
SQLException- See Also:
ParameterMetaData.getParameterCount()
-
getParameterClassName
public String getParameterClassName(int param) throws SQLException
- Throws:
SQLException- See Also:
ParameterMetaData.getParameterClassName(int)
-
getParameterTypeName
public String getParameterTypeName(int pos)
-
getParameterType
public int getParameterType(int pos)
- See Also:
ParameterMetaData.getParameterType(int)
-
getParameterMode
public int getParameterMode(int pos)
- See Also:
ParameterMetaData.getParameterMode(int)
-
getPrecision
public int getPrecision(int pos)
- See Also:
ParameterMetaData.getPrecision(int)
-
getScale
public int getScale(int pos)
- See Also:
ParameterMetaData.getScale(int)
-
isNullable
public int isNullable(int pos)
- See Also:
ParameterMetaData.isNullable(int)
-
isSigned
public boolean isSigned(int pos)
- See Also:
ParameterMetaData.isSigned(int)
-
getStatement
public Statement getStatement()
- Returns:
-
setBigDecimal
public void setBigDecimal(int pos, BigDecimal value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setBigDecimal(int, java.math.BigDecimal)
-
setBinaryStream
public void setBinaryStream(int pos, InputStream istream, int length) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setBinaryStream(int, java.io.InputStream, int)
-
setAsciiStream
public void setAsciiStream(int pos, InputStream istream, int length) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setAsciiStream(int, java.io.InputStream, int)
-
setUnicodeStream
public void setUnicodeStream(int pos, InputStream istream, int length) throws SQLException
-
setBoolean
public void setBoolean(int pos, boolean value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setBoolean(int, boolean)
-
setByte
public void setByte(int pos, byte value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setByte(int, byte)
-
setBytes
public void setBytes(int pos, byte[] value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setBytes(int, byte[])
-
setDouble
public void setDouble(int pos, double value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setDouble(int, double)
-
setFloat
public void setFloat(int pos, float value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setFloat(int, float)
-
setInt
public void setInt(int pos, int value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setInt(int, int)
-
setLong
public void setLong(int pos, long value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setLong(int, long)
-
setNull
public void setNull(int pos, int u1) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setNull(int, int)
-
setNull
public void setNull(int pos, int u1, String u2) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setNull(int, int, java.lang.String)
-
setObject
public void setObject(int pos, Object value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setObject(int, java.lang.Object)
-
setObject
public void setObject(int p, Object v, int t) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setObject(int, java.lang.Object, int)
-
setObject
public void setObject(int p, Object v, int t, int s) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setObject(int, java.lang.Object, int, int)
-
setShort
public void setShort(int pos, short value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setShort(int, short)
-
setString
public void setString(int pos, String value) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setString(int, java.lang.String)
-
setCharacterStream
public void setCharacterStream(int pos, Reader reader, int length) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setCharacterStream(int, java.io.Reader, int)
-
setDate
public void setDate(int pos, Date x) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setDate(int, java.sql.Date)
-
setDate
public void setDate(int pos, Date x, Calendar cal) throws SQLException
-
setTime
public void setTime(int pos, Time x) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setTime(int, java.sql.Time)
-
setTime
public void setTime(int pos, Time x, Calendar cal) throws SQLException
-
setTimestamp
public void setTimestamp(int pos, Timestamp x) throws SQLException- Throws:
SQLException- See Also:
PreparedStatement.setTimestamp(int, java.sql.Timestamp)
-
setTimestamp
public void setTimestamp(int pos, Timestamp x, Calendar cal) throws SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
- Throws:
SQLException- See Also:
PreparedStatement.getMetaData()
-
unused
protected SQLException unused()
- Overrides:
unusedin classJDBC3Statement
-
setArray
public void setArray(int i, Array x) throws SQLException- Throws:
SQLException
-
setBlob
public void setBlob(int i, Blob x) throws SQLException- Throws:
SQLException
-
setClob
public void setClob(int i, Clob x) throws SQLException- Throws:
SQLException
-
setRef
public void setRef(int i, Ref x) throws SQLException- Throws:
SQLException
-
setURL
public void setURL(int pos, URL x) throws SQLException- Throws:
SQLException
-
execute
public boolean execute(String sql) throws SQLException
- Specified by:
executein interfaceStatement- Overrides:
executein classJDBC3Statement- Throws:
SQLException- See Also:
CoreStatement.exec(java.lang.String)
-
executeUpdate
public int executeUpdate(String sql) throws SQLException
- Specified by:
executeUpdatein interfaceStatement- Overrides:
executeUpdatein classJDBC3Statement- Throws:
SQLException- See Also:
CoreStatement.exec(java.lang.String)
-
executeQuery
public ResultSet executeQuery(String sql) throws SQLException
- Specified by:
executeQueryin interfaceStatement- Overrides:
executeQueryin classJDBC3Statement- Throws:
SQLException- See Also:
CoreStatement.exec(String)
-
addBatch
public void addBatch(String sql) throws SQLException
- Specified by:
addBatchin interfaceStatement- Overrides:
addBatchin classJDBC3Statement- Throws:
SQLException- See Also:
Statement.addBatch(java.lang.String)
-
-