org.apache.turbine.torque
Class TorqueDataDumpTask

org.apache.turbine.torque.TorqueDataDumpTask

public class TorqueDataDumpTask

An extended Texen task used for dumping data from db into XML

Version:
$Id$
Author:
Fedor Karpelevitch

Inner Class Summary
 class TorqueDataDumpTask.TableTool
          A nasty do-it-all tool class.
 
Field Summary
private  AppData app
          Application model.
private  java.lang.String databaseDriver
          Database driver used for JDBC connection.
private  java.lang.String databaseName
           
private  java.lang.String databasePassword
          Database password used for JDBC connection.
private  java.lang.String databaseUrl
          Database URL used for JDBC connection.
private  java.lang.String databaseUser
          Database user used for JDBC connection.
private  java.lang.String xmlFile
          XML that describes the database model, this is transformed into the application model object.
 
Constructor Summary
TorqueDataDumpTask()
           
 
Method Summary
 java.lang.String getDatabaseDriver()
          Get the database driver name
 java.lang.String getDatabaseName()
          Get the database name to dump
 java.lang.String getDatabasePassword()
          Get the database password
 java.lang.String getDatabaseUrl()
          Get the database url
 java.lang.String getDatabaseUser()
          Get the database user
 java.lang.String getXmlFile()
          Get the xml schema describing the application model.
 org.apache.velocity.context.Context initControlContext()
          Initializes initial context
 void setDatabaseDriver(java.lang.String v)
          Set the database driver name
 void setDatabaseName(java.lang.String v)
          Set the database name
 void setDatabasePassword(java.lang.String v)
          Set the database password
 void setDatabaseUrl(java.lang.String v)
          Set the database url
 void setDatabaseUser(java.lang.String v)
          Set the database user
 void setXmlFile(java.lang.String v)
          Set the xml schema describing the application model.
 

Field Detail

app

private AppData app
Application model. In this case a database model.

databaseName

private java.lang.String databaseName

xmlFile

private java.lang.String xmlFile
XML that describes the database model, this is transformed into the application model object.

databaseUrl

private java.lang.String databaseUrl
Database URL used for JDBC connection.

databaseDriver

private java.lang.String databaseDriver
Database driver used for JDBC connection.

databaseUser

private java.lang.String databaseUser
Database user used for JDBC connection.

databasePassword

private java.lang.String databasePassword
Database password used for JDBC connection.
Constructor Detail

TorqueDataDumpTask

public TorqueDataDumpTask()
Method Detail

getXmlFile

public java.lang.String getXmlFile()
Get the xml schema describing the application model.
Returns:
String xml schema file.

setXmlFile

public void setXmlFile(java.lang.String v)
Set the xml schema describing the application model.
Parameters:
v - The new XmlFile value

getDatabaseName

public java.lang.String getDatabaseName()
Get the database name to dump
Returns:
The DatabaseName value

setDatabaseName

public void setDatabaseName(java.lang.String v)
Set the database name
Parameters:
v - The new DatabaseName value

getDatabaseUrl

public java.lang.String getDatabaseUrl()
Get the database url
Returns:
The DatabaseUrl value

setDatabaseUrl

public void setDatabaseUrl(java.lang.String v)
Set the database url
Parameters:
v - The new DatabaseUrl value

getDatabaseDriver

public java.lang.String getDatabaseDriver()
Get the database driver name
Returns:
String database driver name

setDatabaseDriver

public void setDatabaseDriver(java.lang.String v)
Set the database driver name
Parameters:
v - The new DatabaseDriver value

getDatabaseUser

public java.lang.String getDatabaseUser()
Get the database user
Returns:
String database user

setDatabaseUser

public void setDatabaseUser(java.lang.String v)
Set the database user
Parameters:
v - The new DatabaseUser value

getDatabasePassword

public java.lang.String getDatabasePassword()
Get the database password
Returns:
String database password

setDatabasePassword

public void setDatabasePassword(java.lang.String v)
Set the database password
Parameters:
v - The new DatabasePassword value

initControlContext

public org.apache.velocity.context.Context initControlContext()
Initializes initial context
Returns:
Description of the Returned Value


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.