db.execSQL("pragma case_sensitive_like=ON;");
return db;
}
+ @SuppressWarnings("unused")
static public int getIntOption(String name, int default_value) {
String s = getOption(name, String.valueOf(default_value));
try {
return default_value;
}
}
+ @SuppressWarnings("unused")
static public long getLongOption(String name, long default_value) {
String s = getOption(name, String.valueOf(default_value));
try {
DbOpQueue.add("insert or replace into options(profile, name, value) values(?, ?, ?);",
new String[]{NO_PROFILE, name, value});
}
+ @SuppressWarnings("unused")
static public void setLongOption(String name, long value) {
setOption(name, String.valueOf(value));
}
while (matches.moveToNext()) {
String match = matches.getString(0);
int order = matches.getInt(1);
- debug("autocompletion", String.format("match: %s |%d", match, order));
+ debug("autocompletion",
+ String.format(Locale.ENGLISH, "match: %s |%d", match, order));
c.newRow().add(i++).add(match);
}
}
private final Application mContext;
- public MobileLedgerDatabase(Application context) {
+ MobileLedgerDatabase(Application context) {
super(context, DB_NAME, null, LATEST_REVISION);
debug("db", "creating helper instance");
mContext = context;