public abstract class SQLiteProgram extends SQLiteClosable
Modifier and Type | Field and Description |
---|---|
protected SQLiteDatabase |
mDatabase
Deprecated.
do not use this
|
protected int |
nHandle
Deprecated.
do not use this
|
protected int |
nStatement
Deprecated.
do not use this
|
Modifier and Type | Method and Description |
---|---|
void |
bindBlob(int index,
byte[] value)
Bind a byte array value to this statement.
|
void |
bindDouble(int index,
double value)
Bind a double value to this statement.
|
void |
bindLong(int index,
long value)
Bind a long value to this statement.
|
void |
bindNull(int index)
Bind a NULL value to this statement.
|
void |
bindString(int index,
java.lang.String value)
Bind a String value to this statement.
|
void |
clearBindings()
Clears all existing bindings.
|
void |
close()
Release this program's resources, making it invalid.
|
protected void |
compile(java.lang.String sql,
boolean forceCompilation)
Deprecated.
This method is deprecated and must not be used.
|
int |
getUniqueId()
Returns a unique identifier for this program.
|
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)
Deprecated.
This method is deprecated and must not be used.
Compiles SQL into a SQLite program.
The database lock must be held when calling this method. |
protected void |
native_finalize()
Deprecated.
This method is deprecated and must not be used.
|
protected void |
onAllReferencesReleased() |
protected void |
onAllReferencesReleasedFromContainer() |
acquireReference, releaseReference, releaseReferenceFromContainer
@Deprecated protected SQLiteDatabase mDatabase
@Deprecated protected int nHandle
@Deprecated protected int nStatement
protected void onAllReferencesReleased()
onAllReferencesReleased
in class SQLiteClosable
protected void onAllReferencesReleasedFromContainer()
onAllReferencesReleasedFromContainer
in class SQLiteClosable
public final int getUniqueId()
@Deprecated protected void compile(java.lang.String sql, boolean forceCompilation)
sql
- the SQL string to compileforceCompilation
- forces the SQL to be recompiled in the event that there is an
existing compiled SQL program already aroundpublic void bindNull(int index)
clearBindings()
is called.index
- The 1-based index to the parameter to bind null topublic void bindLong(int index, long value)
clearBindings()
is called.index
- The 1-based index to the parameter to bindvalue
- The value to bindpublic void bindDouble(int index, double value)
clearBindings()
is called.index
- The 1-based index to the parameter to bindvalue
- The value to bindpublic void bindString(int index, java.lang.String value)
clearBindings()
is called.index
- The 1-based index to the parameter to bindvalue
- The value to bindpublic void bindBlob(int index, byte[] value)
clearBindings()
is called.index
- The 1-based index to the parameter to bindvalue
- The value to bindpublic void clearBindings()
public void close()
@Deprecated protected final void native_compile(java.lang.String sql)
The database lock must be held when calling this method.
sql
- The SQL to compile.@Deprecated protected final void native_finalize()
protected final void native_bind_null(int index)
protected final void native_bind_long(int index, long value)
protected final void native_bind_double(int index, double value)
protected final void native_bind_string(int index, java.lang.String value)
protected final void native_bind_blob(int index, byte[] value)