public static final class DatabaseFileConfig.Builder extends Object
DatabaseFileConfig objects.| 构造器 | 说明 |
|---|---|
Builder() |
Default constructor of the
Builder instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
DatabaseFileConfig |
build() |
Creates a
DatabaseFileConfig object using a Builder instance with the specified
configurations. |
DatabaseFileConfig.Builder |
setDatabaseFileSecurityLevel(DatabaseFileSecurityLevel databaseFileSecurityLevel) |
Sets a specified security level for the database file.
|
DatabaseFileConfig.Builder |
setDatabaseFileType(DatabaseFileType databaseFileType) |
Sets the database file type for the
DatabaseFileConfig object. |
DatabaseFileConfig.Builder |
setEncrypted(boolean isEncrypted) |
Sets whether to encrypt the database file in the
DatabaseFileConfig object. |
DatabaseFileConfig.Builder |
setName(String name) |
Sets the database name for the
DatabaseFileConfig object. |
public DatabaseFileConfig.Builder setName(String name)
DatabaseFileConfig object.name - Indicates the database name to set.Builder instance for creating a DatabaseFileConfig object with the
specified database name.public DatabaseFileConfig.Builder setEncrypted(boolean isEncrypted)
DatabaseFileConfig object.isEncrypted - Specifies whether to encrypt the database file. The value true means to encrypt
the database file, and false means the opposite.Builder instance for creating a DatabaseFileConfig object with the
specified setting.public DatabaseFileConfig.Builder setDatabaseFileType(DatabaseFileType databaseFileType)
DatabaseFileConfig object.databaseFileType - Indicates the database file type to set, as enumerated in DatabaseFileType.Builder instance for creating a DatabaseFileConfig object with the
specified database file type.public DatabaseFileConfig.Builder setDatabaseFileSecurityLevel(DatabaseFileSecurityLevel databaseFileSecurityLevel)
databaseFileSecurityLevel - Indicates the security level to set.Builder instance for creating a DatabaseFileConfig object with the
specified security level.DatabaseFileSecurityLevelpublic DatabaseFileConfig build()
DatabaseFileConfig object using a Builder instance with the specified
configurations.DatabaseFileConfig object.