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.CompiledStatement
SQLException
public String getColumnName(int column) throws SQLException
getColumnName
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public com.j256.ormlite.support.DatabaseResults runQuery(com.j256.ormlite.dao.ObjectCache objectCache) throws SQLException
runQuery
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public int runUpdate() throws SQLException
runUpdate
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public int runExecute() throws SQLException
runExecute
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public void close() throws Exception
close
in interface AutoCloseable
Exception
public void closeQuietly()
closeQuietly
in interface com.j256.ormlite.support.CompiledStatement
public void cancel()
cancel
in interface com.j256.ormlite.support.CompiledStatement
public void setObject(int parameterIndex, Object obj, com.j256.ormlite.field.SqlType sqlType) throws SQLException
setObject
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public void setMaxRows(int max) throws SQLException
setMaxRows
in interface com.j256.ormlite.support.CompiledStatement
SQLException
public void setQueryTimeout(long millis)
setQueryTimeout
in interface com.j256.ormlite.support.CompiledStatement
public String getStatement()
getStatement
in interface com.j256.ormlite.support.CompiledStatement
public android.database.Cursor getCursor() throws SQLException
NOTE: This is not thread safe. Not sure if we need it, but keep that in mind.
SQLException
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.