de.smartics.properties.config.transfer.jdbc
Class JdbcPropertySink
java.lang.Object
de.smartics.properties.config.transfer.jdbc.JdbcPropertySink
-
All Implemented Interfaces:
-
de.smartics.properties.api.config.transfer.PropertySink
-
public final class JdbcPropertySink
-
extends
Object
-
implements de.smartics.properties.api.config.transfer.PropertySink
Writes properties to a database via JDBC.
Properties are not stored within a transaction.
Constructor Summary |
JdbcPropertySink(de.smartics.properties.spi.config.ds.PropertiesStore store) Default constructor. |
Method Summary |
void |
clear() |
void |
close() |
void |
write(Iterable<de.smartics.properties.api.config.domain.PropertyProvider> providers) |
void |
write(de.smartics.properties.api.config.domain.PropertyProvider provider) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcPropertySink
public JdbcPropertySink(de.smartics.properties.spi.config.ds.PropertiesStore store)
-
Default constructor.
-
Parameters:
-
store
- the store of the properties.
clear
public void clear()
throws de.smartics.properties.api.config.transfer.TransferException,
de.smartics.properties.spi.config.ds.DataSourceException
-
-
Specified by:
-
clear
in interface
de.smartics.properties.api.config.transfer.PropertySink
-
-
Throws:
-
de.smartics.properties.api.config.transfer.TransferException
-
de.smartics.properties.spi.config.ds.DataSourceException
write
public void write(de.smartics.properties.api.config.domain.PropertyProvider provider)
throws de.smartics.properties.api.config.transfer.TransferException
-
-
Specified by:
-
write
in interface
de.smartics.properties.api.config.transfer.PropertySink
-
-
Throws:
-
de.smartics.properties.api.config.transfer.TransferException
write
public void write(Iterable<de.smartics.properties.api.config.domain.PropertyProvider> providers)
throws de.smartics.properties.api.config.transfer.TransferException
-
-
Specified by:
-
write
in interface
de.smartics.properties.api.config.transfer.PropertySink
-
-
Throws:
-
de.smartics.properties.api.config.transfer.TransferException
close
public void close()
throws de.smartics.properties.api.config.transfer.TransferException
-
This is a no-op.
-
-
Specified by:
-
close
in interface
de.smartics.properties.api.config.transfer.PropertySink
-
-
Throws:
-
de.smartics.properties.api.config.transfer.TransferException
Copyright © 2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.