Package totalcross.sql
Interface PreparedStatement
-
- All Superinterfaces:
java.lang.AutoCloseable,Statement
- All Known Implementing Classes:
SQLite4JPreparedStatement
public interface PreparedStatement extends Statement
-
-
Method Summary
All Methods Instance Methods Abstract 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 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
ResultSet executeQuery() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
executeUpdate
int executeUpdate() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setNull
void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setBoolean
void setBoolean(int parameterIndex, boolean x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setByte
void setByte(int parameterIndex, byte x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setShort
void setShort(int parameterIndex, short x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setInt
void setInt(int parameterIndex, int x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setLong
void setLong(int parameterIndex, long x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setDouble
void setDouble(int parameterIndex, double x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setBigDecimal
void setBigDecimal(int parameterIndex, BigDecimal x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setString
void setString(int parameterIndex, java.lang.String x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setBytes
void setBytes(int parameterIndex, byte[] x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setDate
void setDate(int parameterIndex, Date x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setTime
void setTime(int parameterIndex, Time x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setTimestamp
void setTimestamp(int parameterIndex, Timestamp x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
clearParameters
void clearParameters() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setObject
void setObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scale) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setObject
void setObject(int parameterIndex, java.lang.Object x, int targetSqlType) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setObject
void setObject(int parameterIndex, java.lang.Object x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
execute
boolean execute() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
addBatch
void addBatch() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getMetaData
ResultSetMetaData getMetaData() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
setNull
void setNull(int paramIndex, int sqlType, java.lang.String typeName) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-