public interface PropertyStore
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empty current property store.
|
<T> void |
createProperty(Property<T> value)
Create new property within store.
|
void |
createSchema()
Initialize target database with expected schema if needed.
|
void |
deleteProperty(String name)
Delete current property.
|
boolean |
existProperty(String name)
Check existence of target property.
|
void |
importProperties(Collection<Property<?>> properties)
Import a set of properties.
|
boolean |
isEmpty()
Tell if a store is empty
|
Set<String> |
listPropertyNames()
List all property names.
|
Map<String,Property<?>> |
readAllProperties()
Retrieve all properties from store.
|
Property<?> |
readProperty(String name)
Read property value.
|
Property<?> |
readProperty(String name,
Property<?> defaultValue)
Read property value and if not found return the default value
|
<T> void |
updateProperty(Property<T> fixedValue)
Update existing property.
|
void |
updateProperty(String name,
String newValue)
Update existing property.
|
boolean existProperty(String name)
name - target name<T> void createProperty(Property<T> value)
value - target valueProperty<?> readProperty(String name)
name - target property nameProperty<?> readProperty(String name, Property<?> defaultValue)
name - target property namevoid updateProperty(String name, String newValue)
name - target namenewValue - new value<T> void updateProperty(Property<T> fixedValue)
name - target namenewValue - new valuevoid deleteProperty(String name)
name - target nameMap<String,Property<?>> readAllProperties()
boolean isEmpty()
void clear()
void importProperties(Collection<Property<?>> properties)
properties - a set of propertiesvoid createSchema()
Copyright © 2013–2017 FF4J. All rights reserved.