public class DatabaseOptions
extends java.lang.Object
| Constructor and Description |
|---|
DatabaseOptions() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getEncryptionKey()
Get the encryption key.
|
java.lang.String |
getStorageType()
Get the storage type.
|
boolean |
isCreate()
Get Create option value.
|
boolean |
isReadOnly()
Get ReadOnly option value
|
void |
setCreate(boolean create)
Set Create option.
|
void |
setEncryptionKey(java.lang.Object encryptionKey)
Set a key to encrypt the database with.
|
void |
setReadOnly(boolean readOnly)
Set ReadOnly option.
|
void |
setStorageType(java.lang.String storageType)
Set the underlying storage engine to use.
|
public void setCreate(boolean create)
public boolean isCreate()
public void setReadOnly(boolean readOnly)
public boolean isReadOnly()
public void setStorageType(java.lang.String storageType)
Set the underlying storage engine to use. Legal values are @"SQLite", @"ForestDB", or nil.
public java.lang.String getStorageType()
public void setEncryptionKey(java.lang.Object encryptionKey)
Set a key to encrypt the database with. If the database does not exist and is being created, it will use this key, and the same key must be given every time it's opened.
public java.lang.Object getEncryptionKey()