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

java.lang.Object
  extended by de.smartics.properties.config.transfer.jdbc.Factory
All Implemented Interfaces:
PropertySinkFactory< JdbcPropertySink>

public final class Factory
     
     
extends Object
implements PropertySinkFactory< JdbcPropertySink>

Creates instances of JdbcPropertySink.


Constructor Summary
Factory()
          Default constructor.
 
Method Summary
 JdbcPropertySink create()
          Creates an instance of PropertySink.
 String getDatabaseId()
          Returns the database identifier to select the datasource proxy for a database product.
 String getJdbcUrl()
          Returns the JDBC URL to the database.
 String getPassword()
          Returns the password to authenticate against the database.
 String getUser()
          Returns the user to authenticate against the database.
 boolean isCreateTable()
          Returns the flag that signals to create properties table (true ) or not ( false).
 boolean isDropTable()
          Returns the flag that signals to drop properties table (true) or not ( false).
 void setCreateTable(boolean createTable)
          Sets the flag that signals to create properties table (true) or not ( false).
 void setDatabaseId(String databaseId)
          Sets the database identifier to select the datasource proxy for a database product.
 void setDropTable(boolean dropTable)
          Sets the flag that signals to drop properties table (true) or not ( false).
 void setJdbcUrl(String jdbcUrl)
          Sets the JDBC URL to the database.
 void setPassword(String password)
          Sets the password to authenticate against the database.
 void setUser(String user)
          Sets the user to authenticate against the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Factory

public Factory()
Default constructor.

Method Detail

getDatabaseId

public String getDatabaseId()
Returns the database identifier to select the datasource proxy for a database product.

Returns:
the database identifier to select the datasource proxy for a database product.

setDatabaseId

public void setDatabaseId(String databaseId)
Sets the database identifier to select the datasource proxy for a database product.

Parameters:
databaseId - the database identifier to select the datasource proxy for a database product.

getJdbcUrl

public String getJdbcUrl()
Returns the JDBC URL to the database.

Returns:
the JDBC URL to the database.

setJdbcUrl

public void setJdbcUrl(String jdbcUrl)
Sets the JDBC URL to the database.

Parameters:
jdbcUrl - the JDBC URL to the database.

getUser

public String getUser()
Returns the user to authenticate against the database.

Returns:
the user to authenticate against the database.

setUser

public void setUser(String user)
Sets the user to authenticate against the database.

Parameters:
user - the user to authenticate against the database.

getPassword

public String getPassword()
Returns the password to authenticate against the database.

Returns:
the password to authenticate against the database.

setPassword

public void setPassword(String password)
Sets the password to authenticate against the database.

Parameters:
password - the password to authenticate against the database.

isDropTable

public boolean isDropTable()
Returns the flag that signals to drop properties table ( true) or not ( false).

Returns:
the flag that signals to drop properties table ( true) or not ( false).

setDropTable

public void setDropTable(boolean dropTable)
Sets the flag that signals to drop properties table ( true) or not ( false).

Parameters:
dropTable - the flag that signals to drop properties table ( true) or not ( false).

isCreateTable

public boolean isCreateTable()
Returns the flag that signals to create properties table ( true ) or not ( false).

Returns:
the flag that signals to create properties table ( true ) or not ( false).

setCreateTable

public void setCreateTable(boolean createTable)
Sets the flag that signals to create properties table ( true) or not ( false).

Parameters:
createTable - the flag that signals to create properties table ( true) or not ( false).

create

public JdbcPropertySink create()
Description copied from interface: PropertySinkFactory
Creates an instance of PropertySink.

Specified by:
create in interface PropertySinkFactory<JdbcPropertySink>
Returns:
an instance of PropertySink.


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