public class AndroidCompiledStatement extends Object implements com.j256.ormlite.support.CompiledStatement
| Constructor and Description | 
|---|
| AndroidCompiledStatement(String sql,
                        android.database.sqlite.SQLiteDatabase db,
                        com.j256.ormlite.stmt.StatementBuilder.StatementType type,
                        boolean cancelQueriesEnabled,
                        boolean cacheStore) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cancel() | 
| void | close() | 
| void | closeQuietly() | 
| int | getColumnCount() | 
| String | getColumnName(int column) | 
| android.database.Cursor | getCursor()This is mostly an internal class but is exposed for those people who need access to the Cursor itself. | 
| String | getStatement() | 
| int | runExecute() | 
| com.j256.ormlite.support.DatabaseResults | runQuery(com.j256.ormlite.dao.ObjectCache objectCache) | 
| int | runUpdate() | 
| void | setMaxRows(int max) | 
| void | setObject(int parameterIndex,
         Object obj,
         com.j256.ormlite.field.SqlType sqlType) | 
| void | setQueryTimeout(long millis) | 
| String | toString() | 
public AndroidCompiledStatement(String sql, android.database.sqlite.SQLiteDatabase db, com.j256.ormlite.stmt.StatementBuilder.StatementType type, boolean cancelQueriesEnabled, boolean cacheStore)
public int getColumnCount()
                   throws SQLException
getColumnCount in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic String getColumnName(int column) throws SQLException
getColumnName in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic com.j256.ormlite.support.DatabaseResults runQuery(com.j256.ormlite.dao.ObjectCache objectCache)
                                                  throws SQLException
runQuery in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic int runUpdate()
              throws SQLException
runUpdate in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic int runExecute()
               throws SQLException
runExecute in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic void close()
           throws Exception
close in interface AutoCloseableExceptionpublic void closeQuietly()
closeQuietly in interface com.j256.ormlite.support.CompiledStatementpublic void cancel()
cancel in interface com.j256.ormlite.support.CompiledStatementpublic void setObject(int parameterIndex,
                      Object obj,
                      com.j256.ormlite.field.SqlType sqlType)
               throws SQLException
setObject in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic void setMaxRows(int max)
                throws SQLException
setMaxRows in interface com.j256.ormlite.support.CompiledStatementSQLExceptionpublic void setQueryTimeout(long millis)
setQueryTimeout in interface com.j256.ormlite.support.CompiledStatementpublic String getStatement()
getStatement in interface com.j256.ormlite.support.CompiledStatementpublic android.database.Cursor getCursor()
                                  throws SQLException
NOTE: This is not thread safe. Not sure if we need it, but keep that in mind.
SQLExceptionThis documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.