public interface ConfigStorageAPI
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clear properties cache.
|
java.util.Map<java.lang.String,java.lang.String> |
getDbProperties()
Loads all properties stored in the database.
|
java.lang.String |
getDbProperty(java.lang.String name)
Loads a property from the database.
|
void |
setDbProperty(java.lang.String name,
java.lang.String value)
Saves a property into the database.
|
static final java.lang.String NAME
java.util.Map<java.lang.String,java.lang.String> getDbProperties()
@Nullable java.lang.String getDbProperty(java.lang.String name)
name - property namevoid setDbProperty(java.lang.String name,
@Nullable
java.lang.String value)
If an active transaction exists, it will be used without creating a new one. This allows you to include saving properties into your business logic. If you want to separate the property saving, just start a new transaction prior to calling this method.
name - property namevalue - property valuevoid clearCache()