Add wrapper class for async storage

Reviewed By: wsanville

Differential Revision: D3654554

fbshipit-source-id: bc21da4b5c46228136cc80592f84206d2deb541e
This commit is contained in:
Jennifer Wang 2016-08-18 10:29:34 -07:00 committed by Facebook Github Bot 1
parent 805d06087b
commit 4b6af5fa63
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ import static com.facebook.react.modules.storage.ReactDatabaseSupplier.VALUE_COL
/**
* Helper for database operations.
*/
/* package */ class AsyncLocalStorageUtil {
public class AsyncLocalStorageUtil {
/**
* Build the String required for an SQL select statement:
@ -60,7 +60,7 @@ import static com.facebook.react.modules.storage.ReactDatabaseSupplier.VALUE_COL
/**
* Returns the value of the given key, or null if not found.
*/
/* package */ static @Nullable String getItemImpl(SQLiteDatabase db, String key) {
public static @Nullable String getItemImpl(SQLiteDatabase db, String key) {
String[] columns = {VALUE_COLUMN};
String[] selectionArgs = {key};

View File

@ -112,7 +112,7 @@ public class ReactDatabaseSupplier extends SQLiteOpenHelper {
/**
* Create and/or open the database.
*/
/* package */ synchronized SQLiteDatabase get() {
public synchronized SQLiteDatabase get() {
ensureDatabase();
return mDb;
}