public class OrmConfig extends Object
OrmConfig stores the alias, name, and encryption key of the ORM database.
SystemCapability.Data#DATA_APPDATAMGR| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
OrmConfig.Builder |
Represents a builder for
OrmConfig objects. |
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
MAX_ENCRYPT_KEY_SIZE |
The max size of encrypt key.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getAlias() |
Obtains the alias in this
OrmConfig object. |
DatabaseFileSecurityLevel |
getDatabaseFileSecurityLevel() |
Obtains the security level of the database file.
|
DatabaseFileType |
getDatabaseFileType() |
Obtains the database file type in this
OrmConfig object. |
byte[] |
getEncryptKey() |
Obtains the encryption key in this
OrmConfig object. |
String |
getName() |
Obtains the name in this
OrmConfig object. |
public static final int MAX_ENCRYPT_KEY_SIZE
public String getAlias()
OrmConfig object.OrmConfig object.public String getName()
OrmConfig object.OrmConfig object.public byte[] getEncryptKey()
OrmConfig object.OrmConfig object.public DatabaseFileType getDatabaseFileType()
OrmConfig object.OrmConfig object,
as enumerated in DatabaseFileType.public DatabaseFileSecurityLevel getDatabaseFileSecurityLevel()
DatabaseFileSecurityLevel