-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathFrameworkSQLiteProgram.java
More file actions
45 lines (36 loc) · 1.09 KB
/
FrameworkSQLiteProgram.java
File metadata and controls
45 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.jaus.albertogiunta.justintrain_oraritreni.db.sqliteAsset;
import android.arch.persistence.db.SupportSQLiteProgram;
import android.database.sqlite.SQLiteProgram;
/**
* An wrapper around {@link SQLiteProgram} to implement {@link SupportSQLiteProgram} API.
*/
class FrameworkSQLiteProgram implements SupportSQLiteProgram {
private final SQLiteProgram mDelegate;
FrameworkSQLiteProgram(SQLiteProgram delegate) {
mDelegate = delegate;
}
@Override
public void bindNull(int index) {
mDelegate.bindNull(index);
}
@Override
public void bindLong(int index, long value) {
mDelegate.bindLong(index, value);
}
@Override
public void bindDouble(int index, double value) {
mDelegate.bindDouble(index, value);
}
@Override
public void bindString(int index, String value) {
mDelegate.bindString(index, value);
}
@Override
public void bindBlob(int index, byte[] value) {
mDelegate.bindBlob(index, value);
}
@Override
public void clearBindings() {
mDelegate.clearBindings();
}
}