Java Code Examples for androidx.sqlite.db.SupportSQLiteProgram

The following examples show how to use androidx.sqlite.db.SupportSQLiteProgram. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: FairEmail   Source File: RoomSQLiteQuery.java    License: GNU General Public License v3.0 6 votes vote down vote up
@Override
public void bindTo(SupportSQLiteProgram program) {
    for (int index = 1; index <= mArgCount; index++) {
        switch (mBindingTypes[index]) {
            case NULL:
                program.bindNull(index);
                break;
            case LONG:
                program.bindLong(index, mLongBindings[index]);
                break;
            case DOUBLE:
                program.bindDouble(index, mDoubleBindings[index]);
                break;
            case STRING:
                program.bindString(index, mStringBindings[index]);
                break;
            case BLOB:
                program.bindBlob(index, mBlobBindings[index]);
                break;
        }
    }
}