Package totalcross.sql.sqlite4j
Class SQLite4JPreparedStatement
- java.lang.Object
-
- totalcross.sql.sqlite4j.SQLite4JStatement
-
- totalcross.sql.sqlite4j.SQLite4JPreparedStatement
-
- All Implemented Interfaces:
java.lang.AutoCloseable,PreparedStatement,Statement
public class SQLite4JPreparedStatement extends SQLite4JStatement implements PreparedStatement
-
-
Constructor Summary
Constructors Constructor Description SQLite4JPreparedStatement(java.sql.PreparedStatement ps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBatch()voidclearParameters()booleanexecute()ResultSetexecuteQuery()intexecuteUpdate()ResultSetMetaDatagetMetaData()voidsetBigDecimal(int parameterIndex, BigDecimal x)voidsetBoolean(int parameterIndex, boolean x)voidsetByte(int parameterIndex, byte x)voidsetBytes(int parameterIndex, byte[] x)voidsetDate(int parameterIndex, Date x)voidsetDouble(int parameterIndex, double x)voidsetInt(int parameterIndex, int x)voidsetLong(int parameterIndex, long x)voidsetNull(int parameterIndex, int sqlType)voidsetNull(int paramIndex, int sqlType, java.lang.String typeName)voidsetObject(int parameterIndex, java.lang.Object x)voidsetObject(int parameterIndex, java.lang.Object x, int targetSqlType)voidsetObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scale)voidsetShort(int parameterIndex, short x)voidsetString(int parameterIndex, java.lang.String x)voidsetTime(int parameterIndex, Time x)voidsetTimestamp(int parameterIndex, Timestamp x)-
Methods inherited from class totalcross.sql.sqlite4j.SQLite4JStatement
addBatch, cancel, clearBatch, clearWarnings, close, execute, executeBatch, executeQuery, executeUpdate, getConnection, getFetchDirection, getFetchSize, getMaxRows, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetType, getUpdateCount, getWarnings, setCursorName, setFetchDirection, setFetchSize, setMaxRows, setQueryTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface totalcross.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, execute, executeBatch, executeQuery, executeUpdate, getConnection, getFetchDirection, getFetchSize, getMaxRows, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetType, getUpdateCount, getWarnings, setCursorName, setFetchDirection, setFetchSize, setMaxRows, setQueryTimeout
-
-
-
-
Method Detail
-
executeQuery
public ResultSet executeQuery() throws java.sql.SQLException
- Specified by:
executeQueryin interfacePreparedStatement- Throws:
java.sql.SQLException
-
executeUpdate
public int executeUpdate() throws java.sql.SQLException- Specified by:
executeUpdatein interfacePreparedStatement- Throws:
java.sql.SQLException
-
setNull
public void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setBoolean
public void setBoolean(int parameterIndex, boolean x) throws java.sql.SQLException- Specified by:
setBooleanin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setByte
public void setByte(int parameterIndex, byte x) throws java.sql.SQLException- Specified by:
setBytein interfacePreparedStatement- Throws:
java.sql.SQLException
-
setShort
public void setShort(int parameterIndex, short x) throws java.sql.SQLException- Specified by:
setShortin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setInt
public void setInt(int parameterIndex, int x) throws java.sql.SQLException- Specified by:
setIntin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setLong
public void setLong(int parameterIndex, long x) throws java.sql.SQLException- Specified by:
setLongin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setDouble
public void setDouble(int parameterIndex, double x) throws java.sql.SQLException- Specified by:
setDoublein interfacePreparedStatement- Throws:
java.sql.SQLException
-
setBigDecimal
public void setBigDecimal(int parameterIndex, BigDecimal x) throws java.sql.SQLException- Specified by:
setBigDecimalin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setString
public void setString(int parameterIndex, java.lang.String x) throws java.sql.SQLException- Specified by:
setStringin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setBytes
public void setBytes(int parameterIndex, byte[] x) throws java.sql.SQLException- Specified by:
setBytesin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setDate
public void setDate(int parameterIndex, Date x) throws java.sql.SQLException- Specified by:
setDatein interfacePreparedStatement- Throws:
java.sql.SQLException
-
setTime
public void setTime(int parameterIndex, Time x) throws java.sql.SQLException- Specified by:
setTimein interfacePreparedStatement- Throws:
java.sql.SQLException
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp x) throws java.sql.SQLException- Specified by:
setTimestampin interfacePreparedStatement- Throws:
java.sql.SQLException
-
clearParameters
public void clearParameters() throws java.sql.SQLException- Specified by:
clearParametersin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setObject
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scale) throws java.sql.SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setObject
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType) throws java.sql.SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
java.sql.SQLException
-
setObject
public void setObject(int parameterIndex, java.lang.Object x) throws java.sql.SQLException- Specified by:
setObjectin interfacePreparedStatement- Throws:
java.sql.SQLException
-
execute
public boolean execute() throws java.sql.SQLException- Specified by:
executein interfacePreparedStatement- Throws:
java.sql.SQLException
-
addBatch
public void addBatch() throws java.sql.SQLException- Specified by:
addBatchin interfacePreparedStatement- Throws:
java.sql.SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws java.sql.SQLException
- Specified by:
getMetaDatain interfacePreparedStatement- Throws:
java.sql.SQLException
-
setNull
public void setNull(int paramIndex, int sqlType, java.lang.String typeName) throws java.sql.SQLException- Specified by:
setNullin interfacePreparedStatement- Throws:
java.sql.SQLException
-
-