Java Code Examples for android.database.sqlite.SQLiteStatement.bindAllArgsAsStrings()

The following are Jave code examples for showing how to use bindAllArgsAsStrings() of the android.database.sqlite.SQLiteStatement class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: YuiHatano   File: ShadowDatabaseUtils.java   Source Code and License Vote up 4 votes
/**
 * Utility method to run the pre-compiled query and return the value in the
 * first column of the first row.
 */
public static long longForQuery(SQLiteStatement prog, String[] selectionArgs) {
    prog.bindAllArgsAsStrings(selectionArgs);
    return prog.simpleQueryForLong();
}
 
Example 2
Project: YuiHatano   File: ShadowDatabaseUtils.java   Source Code and License Vote up 4 votes
/**
 * Utility method to run the pre-compiled query and return the value in the
 * first column of the first row.
 */
public static String stringForQuery(SQLiteStatement prog, String[] selectionArgs) {
    prog.bindAllArgsAsStrings(selectionArgs);
    return prog.simpleQueryForString();
}
 
Example 3
Project: KBUnitTest   File: ShadowDatabaseUtils.java   Source Code and License Vote up 4 votes
/**
 * Utility method to run the pre-compiled query and return the value in the
 * first column of the first row.
 */
public static long longForQuery(SQLiteStatement prog, String[] selectionArgs) {
    prog.bindAllArgsAsStrings(selectionArgs);
    return prog.simpleQueryForLong();
}
 
Example 4
Project: KBUnitTest   File: ShadowDatabaseUtils.java   Source Code and License Vote up 4 votes
/**
 * Utility method to run the pre-compiled query and return the value in the
 * first column of the first row.
 */
public static String stringForQuery(SQLiteStatement prog, String[] selectionArgs) {
    prog.bindAllArgsAsStrings(selectionArgs);
    return prog.simpleQueryForString();
}
 
Example 5
Project: YuiHatano   File: ShadowDatabaseUtils.java   Source Code and License Vote up 2 votes
/**
 * Utility method to run the pre-compiled query and return the blob value in the
 * first column of the first row.
 *
 * @return A read-only file descriptor for a copy of the blob value.
 */
public static ParcelFileDescriptor blobFileDescriptorForQuery(SQLiteStatement prog,
                                                              String[] selectionArgs) {
    prog.bindAllArgsAsStrings(selectionArgs);
    return prog.simpleQueryForBlobFileDescriptor();
}
 
Example 6
Project: KBUnitTest   File: ShadowDatabaseUtils.java   Source Code and License Vote up 2 votes
/**
 * Utility method to run the pre-compiled query and return the blob value in the
 * first column of the first row.
 *
 * @return A read-only file descriptor for a copy of the blob value.
 */
public static ParcelFileDescriptor blobFileDescriptorForQuery(SQLiteStatement prog,
                                                              String[] selectionArgs) {
    prog.bindAllArgsAsStrings(selectionArgs);
    return prog.simpleQueryForBlobFileDescriptor();
}