|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.ds.AbstractDataSourceDescriptor de.smartics.properties.spi.config.ds.DefaultDataSourceManager de.smartics.properties.spi.config.ds.PropertiesStore
public final class PropertiesStore
Provides access to properties in a data source.
Nested Class Summary | |
---|---|
static class |
PropertiesStore.Builder The builder of manager instances. |
Field Summary |
---|
Fields inherited from class de.smartics.properties.spi.config.ds.DefaultDataSourceManager |
---|
dropTable, ignoreTableCreationProblems |
Constructor Summary | |
---|---|
protected |
PropertiesStore(PropertiesStore.Builder builder) Default constructor. |
Method Summary | |
---|---|
boolean |
containsKey(String name) Checks if a property with the given name is stored. |
void |
deleteProperty(String name) Deletes the property from the store. |
PropertyCollection |
getCollection() The collection of all properties stored. |
Property |
getProperty(String name) Reads the property with the given name from the data source. |
void |
setProperty(String name, String value) Sets the property to the given name and value. |
Methods inherited from class de.smartics.properties.spi.config.ds.DefaultDataSourceManager |
---|
createConfigTable, dropConfigTable, getDataSourceId, getDataSourceProxy, print |
Methods inherited from class de.smartics.properties.spi.config.ds.AbstractDataSourceDescriptor |
---|
getNameColumn, getTable, getValueColumn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.smartics.properties.spi.config.ds.PropertiesDataSourceDescriptor |
---|
getNameColumn, getTable, getValueColumn |
Constructor Detail |
---|
protected PropertiesStore(PropertiesStore.Builder builder)
builder
- the builder of manager instance.
Method Detail |
---|
public Property getProperty(String name) throws IllegalArgumentException, DataSourceException
PropertiesDataSourceAccessor
getProperty
in interface
PropertiesDataSourceAccessor
name
- the name of the property to fetch.
null
, if no such property is stored in the data source.
IllegalArgumentException
- if
name
is blank;
DataSourceException
- on any problem accessing the data source.
public void setProperty(String name, String value) throws IllegalArgumentException, DataSourceException
PropertiesDataSourceAccessor
setProperty
in interface
PropertiesDataSourceAccessor
name
- the name of the property to set.
value
- the value of the property.
IllegalArgumentException
- if
name
is blank;
DataSourceException
- on any problem accessing the data source.
public void deleteProperty(String name) throws IllegalArgumentException, DataSourceException
PropertiesDataSourceAccessor
deleteProperty
in interface
PropertiesDataSourceAccessor
name
- the name of the property to delete.
IllegalArgumentException
- if
name
is blank;
DataSourceException
- on any problem accessing the data source.
public PropertyCollection getCollection()
public boolean containsKey(String name) throws IllegalArgumentException
name
is stored.
name
- the name of the property to check if it is stored.
true
if there is a property with that name and a non-
null
value,
false
otherwise.
IllegalArgumentException
- if
name
is blank.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |