com.j256.ormlite.android
Class AndroidCompiledStatement
java.lang.Object
com.j256.ormlite.android.AndroidCompiledStatement
- All Implemented Interfaces:
- com.j256.ormlite.support.CompiledStatement
public class AndroidCompiledStatement
- extends Object
- implements com.j256.ormlite.support.CompiledStatement
Android implementation of the compiled statement.
- Author:
- kevingalligan, graywatson
|
Constructor Summary |
AndroidCompiledStatement(String sql,
android.database.sqlite.SQLiteDatabase db,
com.j256.ormlite.stmt.StatementBuilder.StatementType type,
boolean cancelQueriesEnabled)
|
AndroidCompiledStatement
public AndroidCompiledStatement(String sql,
android.database.sqlite.SQLiteDatabase db,
com.j256.ormlite.stmt.StatementBuilder.StatementType type,
boolean cancelQueriesEnabled)
getColumnCount
public int getColumnCount()
throws SQLException
- Specified by:
getColumnCount in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
getColumnName
public String getColumnName(int column)
throws SQLException
- Specified by:
getColumnName in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
runQuery
public com.j256.ormlite.support.DatabaseResults runQuery(com.j256.ormlite.dao.ObjectCache objectCache)
throws SQLException
- Specified by:
runQuery in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
runUpdate
public int runUpdate()
throws SQLException
- Specified by:
runUpdate in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
runExecute
public int runExecute()
throws SQLException
- Specified by:
runExecute in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
close
public void close()
throws SQLException
- Specified by:
close in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
closeQuietly
public void closeQuietly()
- Specified by:
closeQuietly in interface com.j256.ormlite.support.CompiledStatement
cancel
public void cancel()
- Specified by:
cancel in interface com.j256.ormlite.support.CompiledStatement
setObject
public void setObject(int parameterIndex,
Object obj,
com.j256.ormlite.field.SqlType sqlType)
throws SQLException
- Specified by:
setObject in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
setMaxRows
public void setMaxRows(int max)
throws SQLException
- Specified by:
setMaxRows in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
setQueryTimeout
public void setQueryTimeout(long millis)
- Specified by:
setQueryTimeout in interface com.j256.ormlite.support.CompiledStatement
getCursor
public android.database.Cursor getCursor()
throws SQLException
- This is mostly an internal class but is exposed for those people who need access to the Cursor itself.
NOTE: This is not thread safe. Not sure if we need it, but keep that in mind.
- Throws:
SQLException
toString
public String toString()
- Overrides:
toString in class Object
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.