Package totalcross.sql
Interface Statement
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Subinterfaces:
PreparedStatement
- All Known Implementing Classes:
SQLite4JPreparedStatement,SQLite4JStatement
public interface Statement extends java.lang.AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddBatch(java.lang.String sql)voidcancel()voidclearBatch()voidclearWarnings()voidclose()booleanexecute(java.lang.String sql)int[]executeBatch()ResultSetexecuteQuery(java.lang.String sql)intexecuteUpdate(java.lang.String sql)ConnectiongetConnection()intgetFetchDirection()intgetFetchSize()intgetMaxRows()booleangetMoreResults()intgetQueryTimeout()ResultSetgetResultSet()intgetResultSetConcurrency()intgetResultSetType()intgetUpdateCount()java.sql.SQLWarninggetWarnings()voidsetCursorName(java.lang.String name)voidsetFetchDirection(int direction)voidsetFetchSize(int rows)voidsetMaxRows(int max)voidsetQueryTimeout(int seconds)
-
-
-
Method Detail
-
executeQuery
ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
executeUpdate
int executeUpdate(java.lang.String sql) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
close
void close() throws java.sql.SQLException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.sql.SQLException
-
getMaxRows
int getMaxRows() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setMaxRows
void setMaxRows(int max) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getQueryTimeout
int getQueryTimeout() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setQueryTimeout
void setQueryTimeout(int seconds) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
cancel
void cancel() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getWarnings
java.sql.SQLWarning getWarnings() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
clearWarnings
void clearWarnings() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setCursorName
void setCursorName(java.lang.String name) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
execute
boolean execute(java.lang.String sql) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getResultSet
ResultSet getResultSet() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getUpdateCount
int getUpdateCount() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getMoreResults
boolean getMoreResults() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setFetchDirection
void setFetchDirection(int direction) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getFetchDirection
int getFetchDirection() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setFetchSize
void setFetchSize(int rows) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getFetchSize
int getFetchSize() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getResultSetConcurrency
int getResultSetConcurrency() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getResultSetType
int getResultSetType() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
addBatch
void addBatch(java.lang.String sql) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
clearBatch
void clearBatch() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
executeBatch
int[] executeBatch() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getConnection
Connection getConnection() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-