|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.config.transfer.jdbc.JdbcPropertySink
public final class JdbcPropertySink
Writes properties to a database via JDBC.
Properties are not stored within a transaction.
Constructor Summary | |
---|---|
JdbcPropertySink(PropertiesStore store) Default constructor. |
Method Summary | |
---|---|
void |
clear() Removes all information from the sink. |
void |
close() Closes the sink. |
void |
write(Iterable<PropertyProvider> providers) Writes the property definitions provided by the given providers. |
void |
write(PropertyProvider provider) Writes the property definitions provided by the given provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcPropertySink(PropertiesStore store)
store
- the store of the properties.
Method Detail |
---|
public void clear() throws TransferException, DataSourceException
PropertySink
clear
in interface
PropertySink
TransferException
- on any problem clearing the sink.
DataSourceException
public void write(PropertyProvider provider) throws TransferException
PropertySink
It is assumed that the writing is transactional. If it is not, the implementation should document that it isn't.
write
in interface
PropertySink
provider
- the provider of property definitions.
TransferException
- on any problem writing the definitions to this sink.
public void write(Iterable<PropertyProvider> providers) throws TransferException
PropertySink
It is assumed that the writing is transactional. If it is not, the implementation should document that it isn't.
write
in interface
PropertySink
providers
- the list of providers to add their property definitions.
TransferException
- on any problem writing property definitions to this sink.
public void close() throws TransferException
This is a no-op.
close
in interface
PropertySink
TransferException
- on any problem closing the sink.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |