public class DBFactory
extends java.lang.Object
| Constructor and Description |
|---|
DBFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DB |
open(android.content.Context ctx,
Kryo... kryo)
Return the Database with the default name
DEFAULT_DBNAME, if it doesn't exist create it |
static DB |
open(android.content.Context ctx,
java.lang.String dbName,
Kryo... kryo)
Return the Database with the given name, if it doesn't exist create it
|
static DB |
open(java.lang.String folder,
Kryo... kryo)
Return the Database with the given folder and default name, if it doesn't exist create it
|
static DB |
open(java.lang.String folder,
java.lang.String dbName,
Kryo... kryo)
Return the Database with the given folder and name, if it doesn't exist create it
|
public static DB open(java.lang.String folder, java.lang.String dbName, Kryo... kryo) throws SnappydbException
folder - the folder of the db file will be storeddbName - database file namekryo - optional custom instance of com.esotericsoftware.kryo.Kryo serializerDBSnappydbExceptionpublic static DB open(java.lang.String folder, Kryo... kryo) throws SnappydbException
folder - the folder of the db file will be storedkryo - optional custom instance of com.esotericsoftware.kryo.Kryo serializerDBSnappydbExceptionpublic static DB open(android.content.Context ctx, java.lang.String dbName, Kryo... kryo) throws SnappydbException
ctx - contextdbName - database file namekryo - optional custom instance of com.esotericsoftware.kryo.Kryo serializerDBSnappydbExceptionpublic static DB open(android.content.Context ctx, Kryo... kryo) throws SnappydbException
DEFAULT_DBNAME, if it doesn't exist create itctx - contextkryo - optional custom instance of com.esotericsoftware.kryo.Kryo serializerDBSnappydbException