| 构造器 | 说明 |
|---|---|
Builder() |
Default constructor of the
Builder instance. |
Builder(OrmConfig ormConfig) |
A constructor used to create a
Builder instance with the specified OrmConfig object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
OrmConfig |
build() |
Creates an
OrmConfig instance using this builder with specified configurations. |
OrmConfig.Builder |
setAlias(String alias) |
Sets the alias for the
OrmConfig object. |
OrmConfig.Builder |
setDatabaseFileSecurityLevel(DatabaseFileSecurityLevel databaseFileSecurityLevel) |
Sets a specified security level for the database file.
|
OrmConfig.Builder |
setDatabaseFileType(DatabaseFileType databaseFileType) |
Sets the database file type for the
OrmConfig object. |
OrmConfig.Builder |
setEncryptKey(byte[] encryptKey) |
Sets the encryption key for the
OrmConfig object. |
OrmConfig.Builder |
setName(String name) |
Sets the file name for the
OrmConfig object. |
public OrmConfig.Builder setAlias(String alias)
OrmConfig object.alias - Indicates the alias to set.Builder instance.public OrmConfig.Builder setName(String name)
OrmConfig object.name - Indicates the file name to set.Builder instance.public OrmConfig.Builder setEncryptKey(byte[] encryptKey)
OrmConfig object.encryptKey - Indicates the encryption key to set.Builder instance.public OrmConfig.Builder setDatabaseFileType(DatabaseFileType databaseFileType)
OrmConfig object.databaseFileType - Indicates the database file type to set, as enumerated in DatabaseFileType.Builder instance.public OrmConfig.Builder setDatabaseFileSecurityLevel(DatabaseFileSecurityLevel databaseFileSecurityLevel)
databaseFileSecurityLevel - Indicates the security level to set.Builder instance for creating an OrmConfig object with the specified
security level.DatabaseFileSecurityLevel