public class PropertyStoreAuditProxy extends Object implements PropertyStore
| Constructor and Description |
|---|
PropertyStoreAuditProxy(FF4j pFF4j,
PropertyStore pTarget)
Only constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empty current property store.
|
<T> void |
createProperty(Property<T> prop)
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.
|
PropertyStore |
getTarget()
Getter accessor for attribute 'target'.
|
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> prop)
Update existing property.
|
void |
updateProperty(String name,
String newValue)
Update existing property.
|
public PropertyStoreAuditProxy(FF4j pFF4j, PropertyStore pTarget)
pTarget - public <T> void createProperty(Property<T> prop)
createProperty in interface PropertyStoreprop - target valuepublic void updateProperty(String name, String newValue)
updateProperty in interface PropertyStorename - target namenewValue - new valuepublic <T> void updateProperty(Property<T> prop)
updateProperty in interface PropertyStorepublic void deleteProperty(String name)
deleteProperty in interface PropertyStorename - target namepublic boolean existProperty(String name)
existProperty in interface PropertyStorename - target namepublic Property<?> readProperty(String name)
readProperty in interface PropertyStorename - target property namepublic Property<?> readProperty(String name, Property<?> defaultValue)
readProperty in interface PropertyStorename - target property namepublic Map<String,Property<?>> readAllProperties()
readAllProperties in interface PropertyStorepublic Set<String> listPropertyNames()
listPropertyNames in interface PropertyStorepublic boolean isEmpty()
isEmpty in interface PropertyStorepublic void clear()
clear in interface PropertyStorepublic void importProperties(Collection<Property<?>> properties)
importProperties in interface PropertyStoreproperties - a set of propertiespublic void createSchema()
createSchema in interface PropertyStorepublic PropertyStore getTarget()
Copyright © 2013–2017 FF4J. All rights reserved.