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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndroidCompiledStatement
public AndroidCompiledStatement(String sql,
android.database.sqlite.SQLiteDatabase db,
com.j256.ormlite.stmt.StatementBuilder.StatementType type)
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()
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
getGeneratedKeys
public com.j256.ormlite.support.DatabaseResults getGeneratedKeys()
throws SQLException
- Specified by:
getGeneratedKeys
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
setNull
public void setNull(int parameterIndex,
com.j256.ormlite.field.SqlType sqlType)
throws SQLException
- Specified by:
setNull
in interface com.j256.ormlite.support.CompiledStatement
- Throws:
SQLException
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
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
Copyright © 2011. All Rights Reserved.