Package totalcross.sql.sqlite4j
Class SQLite4JStatement
- java.lang.Object
-
- totalcross.sql.sqlite4j.SQLite4JStatement
-
- All Implemented Interfaces:
java.lang.AutoCloseable,Statement
- Direct Known Subclasses:
SQLite4JPreparedStatement
public class SQLite4JStatement extends java.lang.Object implements Statement
-
-
Constructor Summary
Constructors Constructor Description SQLite4JStatement(java.sql.Statement stat)
-
Method Summary
All Methods Instance Methods Concrete 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
public ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
- Specified by:
executeQueryin interfaceStatement- Throws:
java.sql.SQLException
-
executeUpdate
public int executeUpdate(java.lang.String sql) throws java.sql.SQLException- Specified by:
executeUpdatein interfaceStatement- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLException
-
getMaxRows
public int getMaxRows() throws java.sql.SQLException- Specified by:
getMaxRowsin interfaceStatement- Throws:
java.sql.SQLException
-
setMaxRows
public void setMaxRows(int max) throws java.sql.SQLException- Specified by:
setMaxRowsin interfaceStatement- Throws:
java.sql.SQLException
-
getQueryTimeout
public int getQueryTimeout() throws java.sql.SQLException- Specified by:
getQueryTimeoutin interfaceStatement- Throws:
java.sql.SQLException
-
setQueryTimeout
public void setQueryTimeout(int seconds) throws java.sql.SQLException- Specified by:
setQueryTimeoutin interfaceStatement- Throws:
java.sql.SQLException
-
cancel
public void cancel() throws java.sql.SQLException
-
getWarnings
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException- Specified by:
getWarningsin interfaceStatement- Throws:
java.sql.SQLException
-
clearWarnings
public void clearWarnings() throws java.sql.SQLException- Specified by:
clearWarningsin interfaceStatement- Throws:
java.sql.SQLException
-
setCursorName
public void setCursorName(java.lang.String name) throws java.sql.SQLException- Specified by:
setCursorNamein interfaceStatement- Throws:
java.sql.SQLException
-
execute
public boolean execute(java.lang.String sql) throws java.sql.SQLException
-
getResultSet
public ResultSet getResultSet() throws java.sql.SQLException
- Specified by:
getResultSetin interfaceStatement- Throws:
java.sql.SQLException
-
getUpdateCount
public int getUpdateCount() throws java.sql.SQLException- Specified by:
getUpdateCountin interfaceStatement- Throws:
java.sql.SQLException
-
getMoreResults
public boolean getMoreResults() throws java.sql.SQLException- Specified by:
getMoreResultsin interfaceStatement- Throws:
java.sql.SQLException
-
setFetchDirection
public void setFetchDirection(int direction) throws java.sql.SQLException- Specified by:
setFetchDirectionin interfaceStatement- Throws:
java.sql.SQLException
-
getFetchDirection
public int getFetchDirection() throws java.sql.SQLException- Specified by:
getFetchDirectionin interfaceStatement- Throws:
java.sql.SQLException
-
setFetchSize
public void setFetchSize(int rows) throws java.sql.SQLException- Specified by:
setFetchSizein interfaceStatement- Throws:
java.sql.SQLException
-
getFetchSize
public int getFetchSize() throws java.sql.SQLException- Specified by:
getFetchSizein interfaceStatement- Throws:
java.sql.SQLException
-
getResultSetConcurrency
public int getResultSetConcurrency() throws java.sql.SQLException- Specified by:
getResultSetConcurrencyin interfaceStatement- Throws:
java.sql.SQLException
-
getResultSetType
public int getResultSetType() throws java.sql.SQLException- Specified by:
getResultSetTypein interfaceStatement- Throws:
java.sql.SQLException
-
addBatch
public void addBatch(java.lang.String sql) throws java.sql.SQLException
-
clearBatch
public void clearBatch() throws java.sql.SQLException- Specified by:
clearBatchin interfaceStatement- Throws:
java.sql.SQLException
-
executeBatch
public int[] executeBatch() throws java.sql.SQLException- Specified by:
executeBatchin interfaceStatement- Throws:
java.sql.SQLException
-
getConnection
public Connection getConnection() throws java.sql.SQLException
- Specified by:
getConnectionin interfaceStatement- Throws:
java.sql.SQLException
-
-