de.smartics.properties.impl.config.ds.hsql
Class AbstractHSqlDataSourceProxy

Package class diagram package AbstractHSqlDataSourceProxy
java.lang.Object
  extended by de.smartics.properties.impl.config.ds.hsql.AbstractHSqlDataSourceProxy
All Implemented Interfaces:
DataSourceProxy, Serializable
Direct Known Subclasses:
HSqlDataSourceProxy, HSqlJndiDataSourceProxy

public abstract class AbstractHSqlDataSourceProxy
     
     
extends Object
implements DataSourceProxy

Data source proxy to create HSQL data sources.

See Also:
Serialized Form

Constructor Summary
protected AbstractHSqlDataSourceProxy()
          Default constructor.
 
Method Summary
 String getCreateTableSqlTemplate()
          Provides an SQL template to create the configuration table.
 String getInsertOrUpdateSqlTemplate()
          Provides an SQL template to insert or update a value in the configuration table.
 void setInsertOrUpdate(PreparedStatement statement, String config, String name, String value)
          Sets the parameters to the given statement to insert or update a property in the configuration table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.smartics.properties.spi.config.ds.DataSourceProxy
getDataSource, getDataSourceId
 

Constructor Detail

AbstractHSqlDataSourceProxy

protected AbstractHSqlDataSourceProxy()
Default constructor.

Method Detail

getCreateTableSqlTemplate

public final String getCreateTableSqlTemplate()
Description copied from interface: DataSourceProxy
Provides an SQL template to create the configuration table.

Specified by:
getCreateTableSqlTemplate in interface DataSourceProxy
Returns:
the SQL template to create the configuration table.

getInsertOrUpdateSqlTemplate

public final String getInsertOrUpdateSqlTemplate()
Description copied from interface: DataSourceProxy
Provides an SQL template to insert or update a value in the configuration table.

Specified by:
getInsertOrUpdateSqlTemplate in interface DataSourceProxy
Returns:
the SQL template to insert or update a value in the configuration table.

setInsertOrUpdate

public final void setInsertOrUpdate(PreparedStatement statement,
                                    String config,
                                    String name,
                                    String value)
                             throws SQLException
Description copied from interface: DataSourceProxy
Sets the parameters to the given statement to insert or update a property in the configuration table.

The statement ist provided by DataSourceProxy.getInsertOrUpdateSqlTemplate().

Specified by:
setInsertOrUpdate in interface DataSourceProxy
Parameters:
statement - the statement to set the values.
config - the configuration key.
name - the property key.
value - the property value.
Throws:
SQLException - on any problem configuring the given statement.


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