|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertiesDataSourceManager
Interface to connect to a database to persist properties and to allow the management of the database infrastructure. That is
Method Summary | |
---|---|
void |
createConfigTable() Creates the configuration on the referenced data source. |
void |
dropConfigTable() Drops the configuration table from the referenced data source. |
List<String> |
getConfigurationKeys() Returns the list of distinct data source keys. |
DataSourceProxy |
getDataSourceProxy() Returns a reference to the data source proxy used to connect to the data source. |
String |
getInsertOrUpdateSqlStatementTemplate() Returns the SQL statement to insert or update a value in the table, dependent on if the value is already in the database or not. |
void |
print(PrintStream out) Prints the contents of the data source to the given stream. |
Methods inherited from interface de.smartics.properties.spi.config.ds.PropertiesDataSourceDescriptor |
---|
getConfigColumn, getDataSourceId, getNameColumn, getTable, getValueColumn |
Method Detail |
---|
DataSourceProxy getDataSourceProxy()
void createConfigTable() throws DataSourceException
DataSourceException
- on any problem accessing the data source.
void dropConfigTable() throws DataSourceException
DataSourceException
- on any problem accessing the data source.
List<String> getConfigurationKeys() throws DataSourceException
DataSourceException
- on any problem fetching the keys.
String getInsertOrUpdateSqlStatementTemplate()
void print(PrintStream out) throws NullPointerException, DataSourceException
out
- the stream to write to.
NullPointerException
- if
out
is
null
.
DataSourceException
- on any problem accessing the data source.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |