public class PersistenceMetaData
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDBName()
By default, the database name is
"persistence_store". |
static int |
getIsolationLevel(java.sql.Connection connection)
Get the transaction isolation level for SQL database persistence.
|
static java.io.File |
getLocalStorageDirectory()
Get the directory that is used for local persistence.
|
static boolean |
isPersistenceEnabled()
Get whether or not persistence is enabled.
|
public static java.lang.String getDBName()
"persistence_store".
This value can be set with the property com.oracle.iot.client.device.persistence_db_namepublic static java.io.File getLocalStorageDirectory()
com.oracle.iot.client.device.persistence_local_store.public static int getIsolationLevel(java.sql.Connection connection)
java.sql.Connection.TRANSACTION_READ_UNCOMMITTED.
This value can be set with the property com.oracle.iot.client.device.persistence_isolation_level.
The Connection argument is used to ensure the database supports
the configured transaction isolation level.
If the database does not support transactions, this method returns Connection.TRANSACTION_NONE.
connection - the database java.sql.Connectionpublic static boolean isPersistenceEnabled()
true.
This value can be set with the property com.oracle.iot.client.device.persistence_enabledtrue if persistence is enabled.