public final class DatabaseConfiguration extends Object
| Constructor and Description |
|---|
DatabaseConfiguration()
Constructs a new DatabaseConfiguration with default values.
|
DatabaseConfiguration(File directory,
Object encryptionKey,
ConflictResolver conflictResolver) |
| Modifier and Type | Method and Description |
|---|---|
ConflictResolver |
getConflictResolver() |
File |
getDirectory()
Returns the path to the directory to store the database in.
|
Object |
getEncryptionKey()
Returns a key to encrypt the database with.
|
void |
setConflictResolver(ConflictResolver conflictResolver) |
void |
setDirectory(File directory)
Set the path to the directory to store the database in.
|
void |
setEncryptionKey(Object encryptionKey)
Set a key to encrypt the database with.
|
public DatabaseConfiguration()
public DatabaseConfiguration(File directory, Object encryptionKey, ConflictResolver conflictResolver)
public File getDirectory()
public void setDirectory(File directory)
directory - the directorypublic Object getEncryptionKey()
public void setEncryptionKey(Object encryptionKey)
encryptionKey - the keypublic ConflictResolver getConflictResolver()
public void setConflictResolver(ConflictResolver conflictResolver)