Methods Summary |
---|
private void | bind(int index, java.lang.Object value)
if (index < 1 || index > mNumParameters) {
throw new IllegalArgumentException("Cannot bind argument at index "
+ index + " because the index is out of range. "
+ "The statement has " + mNumParameters + " parameters.");
}
mBindArgs[index - 1] = value;
|
public void | bindAllArgsAsStrings(java.lang.String[] bindArgs)Given an array of String bindArgs, this method binds all of them in one single call.
if (bindArgs != null) {
for (int i = bindArgs.length; i != 0; i--) {
bindString(i, bindArgs[i - 1]);
}
}
|
public void | bindBlob(int index, byte[] value)Bind a byte array value to this statement. The value remains bound until
{@link #clearBindings} is called.
if (value == null) {
throw new IllegalArgumentException("the bind value at index " + index + " is null");
}
bind(index, value);
|
public void | bindDouble(int index, double value)Bind a double value to this statement. The value remains bound until
{@link #clearBindings} is called.
bind(index, value);
|
public void | bindLong(int index, long value)Bind a long value to this statement. The value remains bound until
{@link #clearBindings} is called.
addToBindArgs
bind(index, value);
|
public void | bindNull(int index)Bind a NULL value to this statement. The value remains bound until
{@link #clearBindings} is called.
bind(index, null);
|
public void | bindString(int index, java.lang.String value)Bind a String value to this statement. The value remains bound until
{@link #clearBindings} is called.
if (value == null) {
throw new IllegalArgumentException("the bind value at index " + index + " is null");
}
bind(index, value);
|
public void | clearBindings()Clears all existing bindings. Unset bindings are treated as NULL.
if (mBindArgs != null) {
Arrays.fill(mBindArgs, null);
}
|
final java.lang.Object[] | getBindArgs()
return mBindArgs;
|
final java.lang.String[] | getColumnNames()
return mColumnNames;
|
protected final int | getConnectionFlags()
return mDatabase.getThreadDefaultConnectionFlags(mReadOnly);
|
final SQLiteDatabase | getDatabase()
return mDatabase;
|
protected final SQLiteSession | getSession()
return mDatabase.getThreadSession();
|
final java.lang.String | getSql()
return mSql;
|
public final int | getUniqueId()Unimplemented.
return -1;
|
protected void | onAllReferencesReleased()
clearBindings();
|
protected final void | onCorruption()
mDatabase.onCorruption();
|