android.database.sqlite
Class SQLiteProgram

java.lang.Object
  extended by android.database.sqlite.SQLiteClosable
      extended by android.database.sqlite.SQLiteProgram
Direct Known Subclasses:
SQLiteQuery, SQLiteStatement

public abstract class SQLiteProgram
extends SQLiteClosable


Field Summary
protected  SQLiteDatabase mDatabase
           
protected  int nHandle
           
protected  int nStatement
           
 
Method Summary
 void bindBlob(int index, byte[] value)
           
 void bindDouble(int index, double value)
           
 void bindLong(int index, long value)
           
 void bindNull(int index)
           
 void bindString(int index, java.lang.String value)
           
 void clearBindings()
           
 void close()
           
protected  void compile(java.lang.String sql, boolean forceCompilation)
           
protected  void finalize()
           
 int getUniqueId()
           
protected  void native_bind_blob(int index, byte[] value)
           
protected  void native_bind_double(int index, double value)
           
protected  void native_bind_long(int index, long value)
           
protected  void native_bind_null(int index)
           
protected  void native_bind_string(int index, java.lang.String value)
           
protected  void native_compile(java.lang.String sql)
           
protected  void native_finalize()
           
protected  void onAllReferencesReleased()
           
protected  void onAllReferencesReleasedFromContainer()
           
 
Methods inherited from class android.database.sqlite.SQLiteClosable
acquireReference, releaseReference, releaseReferenceFromContainer
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mDatabase

protected SQLiteDatabase mDatabase

nHandle

protected int nHandle

nStatement

protected int nStatement
Method Detail

onAllReferencesReleased

protected void onAllReferencesReleased()
Specified by:
onAllReferencesReleased in class SQLiteClosable

onAllReferencesReleasedFromContainer

protected void onAllReferencesReleasedFromContainer()
Overrides:
onAllReferencesReleasedFromContainer in class SQLiteClosable

getUniqueId

public final int getUniqueId()

compile

protected void compile(java.lang.String sql,
                       boolean forceCompilation)

bindNull

public void bindNull(int index)

bindLong

public void bindLong(int index,
                     long value)

bindDouble

public void bindDouble(int index,
                       double value)

bindString

public void bindString(int index,
                       java.lang.String value)

bindBlob

public void bindBlob(int index,
                     byte[] value)

clearBindings

public void clearBindings()

close

public void close()

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

native_compile

protected final void native_compile(java.lang.String sql)

native_finalize

protected final void native_finalize()

native_bind_null

protected final void native_bind_null(int index)

native_bind_long

protected final void native_bind_long(int index,
                                      long value)

native_bind_double

protected final void native_bind_double(int index,
                                        double value)

native_bind_string

protected final void native_bind_string(int index,
                                        java.lang.String value)

native_bind_blob

protected final void native_bind_blob(int index,
                                      byte[] value)


Copyright © 2008-2010. All Rights Reserved.