de.smartics.properties.config.transfer.jdbc
Class JdbcPropertySink

Package class diagram package JdbcPropertySink
java.lang.Object
  extended by 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()
           This is a no-op.
 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
 

Constructor Detail

JdbcPropertySink

public JdbcPropertySink(de.smartics.properties.spi.config.ds.PropertiesStore store)
Default constructor.

Parameters:
store - the store of the properties.
Method Detail

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.