public abstract class SQLiteProgram extends SQLiteClosable
This class is not thread-safe.
Modifier and Type | Method and Description |
---|---|
void |
bindAllArgsAsStrings(String[] bindArgs)
Given an array of String bindArgs, this method binds all of them in one single call.
|
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,
String value)
Bind a String value to this statement.
|
void |
clearBindings()
Clears all existing bindings.
|
protected int |
getConnectionFlags() |
protected SQLiteSession |
getSession() |
int |
getUniqueId()
Deprecated.
This method is deprecated and must not be used.
|
protected void |
onAllReferencesReleased()
Called when the last reference to the object was released by
a call to
SQLiteClosable.releaseReference() or SQLiteClosable.close() . |
protected void |
onCorruption() |
acquireReference, close, onAllReferencesReleasedFromContainer, releaseReference, releaseReferenceFromContainer
protected final SQLiteSession getSession()
protected final int getConnectionFlags()
protected final void onCorruption()
@Deprecated public final int getUniqueId()
public 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.
addToBindArgsindex
- 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, String value)
clearBindings()
is called.index
- The 1-based index to the parameter to bindvalue
- The value to bind, must not be nullpublic void bindBlob(int index, byte[] value)
clearBindings()
is called.index
- The 1-based index to the parameter to bindvalue
- The value to bind, must not be nullpublic void clearBindings()
public void bindAllArgsAsStrings(String[] bindArgs)
bindArgs
- the String array of bind args, none of which must be null.protected void onAllReferencesReleased()
SQLiteClosable
SQLiteClosable.releaseReference()
or SQLiteClosable.close()
.onAllReferencesReleased
in class SQLiteClosable