de.smartics.properties.spi.config.ds
Interface PropertiesDataSourceAccessor

Package class diagram package PropertiesDataSourceAccessor
All Superinterfaces:
Serializable
All Known Implementing Classes:
PropertiesStore

public interface PropertiesDataSourceAccessor
     
     
extends Serializable

Interface to access property information from a data source.


Method Summary
 void deleteProperty(String name)
          Deletes the property from the store.
 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.
 

Method Detail

getProperty

Property getProperty(String name)
                     throws IllegalArgumentException,
                            DataSourceException
Reads the property with the given name from the data source.

Parameters:
name - the name of the property to fetch.
Returns:
the property or null, if no such property is stored in the data source.
Throws:
IllegalArgumentException - if name is blank;
DataSourceException - on any problem accessing the data source.

setProperty

void setProperty(String name,
                 String value)
                 throws IllegalArgumentException,
                        DataSourceException
Sets the property to the given name and value.

Parameters:
name - the name of the property to set.
value - the value of the property.
Throws:
IllegalArgumentException - if name is blank;
DataSourceException - on any problem accessing the data source.

deleteProperty

void deleteProperty(String name)
                    throws IllegalArgumentException,
                           DataSourceException
Deletes the property from the store.

Parameters:
name - the name of the property to delete.
Throws:
IllegalArgumentException - if name is blank;
DataSourceException - on any problem accessing the data source.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.