org.openstreetmap.osmosis.core.database
Class DatabaseTaskManagerFactory

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory
      extended by org.openstreetmap.osmosis.core.database.DatabaseTaskManagerFactory
Direct Known Subclasses:
ApidbChangeReaderFactory, ApidbChangeWriterFactory, ApidbCurrentReaderFactory, ApidbFileReplicatorFactory, ApidbReaderFactory, ApidbTestReaderFactory, ApidbTruncatorFactory, ApidbWriterFactory, MysqlChangeReaderFactory, MysqlChangeWriterFactory, MySqlCurrentReaderFactory, MysqlReaderFactory, MysqlTruncatorFactory, MysqlWriterFactory, PostgreSqlChangeWriterFactory, PostgreSqlChangeWriterFactory, PostgreSqlDatasetReaderFactory, PostgreSqlDatasetReaderFactory, PostgreSqlDatasetTruncatorFactory, PostgreSqlDatasetTruncatorFactory, PostgreSqlDatasetWriterFactory, PostgreSqlDatasetWriterFactory

public abstract class DatabaseTaskManagerFactory
extends TaskManagerFactory

Extends the basic task manager factory functionality with MySQL task specific common methods.

Author:
Brett Henderson

Constructor Summary
DatabaseTaskManagerFactory()
           
 
Method Summary
protected  DatabaseLoginCredentials getDatabaseLoginCredentials(TaskConfiguration taskConfig)
          Utility method for retrieving the login credentials for a database connection.
protected  DatabasePreferences getDatabasePreferences(TaskConfiguration taskConfig)
          Utility method for retrieving the login credentials for a database connection.
 
Methods inherited from class org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory
createTaskManager, createTaskManagerImpl, doesArgumentExist, getBooleanArgument, getDateArgument, getDateArgument, getDefaultIntegerArgument, getDefaultStringArgument, getDoubleArgument, getIntegerArgument, getIntegerArgument, getStringArgument, getStringArgument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTaskManagerFactory

public DatabaseTaskManagerFactory()
Method Detail

getDatabaseLoginCredentials

protected DatabaseLoginCredentials getDatabaseLoginCredentials(TaskConfiguration taskConfig)
Utility method for retrieving the login credentials for a database connection.

Parameters:
taskConfig - Contains all information required to instantiate and configure the task.
Returns:
The credentials for the database connection.

getDatabasePreferences

protected DatabasePreferences getDatabasePreferences(TaskConfiguration taskConfig)
Utility method for retrieving the login credentials for a database connection.

Parameters:
taskConfig - Contains all information required to instantiate and configure the task.
Returns:
The value of the argument.