org.apache.ws.jaxme.js.pattern
Class Ant.AntVersionGenerator

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.ws.jaxme.js.pattern.Ant.ReallyBasicAntTask
              extended byorg.apache.ws.jaxme.js.pattern.Ant.BasicAntTask
                  extended byorg.apache.ws.jaxme.js.pattern.Ant.AntVersionGenerator
Enclosing class:
Ant

public static class Ant.AntVersionGenerator
extends Ant.BasicAntTask

Ant task for the VersionGenerator


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Ant.AntVersionGenerator()
           
 
Method Summary
 void generate(JavaSourceFactory pFactory, JavaQName pTargetClass)
          Abstract method, which is invoked to generate the target class.
protected  java.sql.Connection getConnection()
           
 java.lang.String getDriver()
          Returns the JDBC driver.
 java.lang.String getPassword()
          Returns the JDBC password.
 java.lang.String getSchema()
          Returns the database schema name.
 java.util.List getTables()
          Returns the table list.
 java.lang.String getUrl()
          Returns the JDBC URL.
 java.lang.String getUser()
          Returns the JDBC user.
 java.lang.String getVerColumn()
          Returns the column with the version number.
 boolean isGeneratingLogging()
          Returns whether logging statements are being generated.
 void setDriver(java.lang.String pDriver)
          Sets the JDBC driver.
 void setGeneratingLogging(boolean pGeneratingLogging)
          Sets whether logging statements are being generated.
 void setPassword(java.lang.String pPassword)
          Sets the JDBC password.
 void setSchema(java.lang.String pSchema)
          Sets the database schema name.
 void setTables(java.lang.String pTables)
          Sets the table list; the table names are separated with white space.
 void setUrl(java.lang.String pUrl)
          Sets the JDBC URL.
 void setUser(java.lang.String pUser)
          Sets the JDBC user.
 void setVerColumn(java.lang.String pColumn)
          Sets the column with the version number.
 
Methods inherited from class org.apache.ws.jaxme.js.pattern.Ant.BasicAntTask
doExecute, finish, setTargetClass
 
Methods inherited from class org.apache.ws.jaxme.js.pattern.Ant.ReallyBasicAntTask
addClasspath, execute, getClasspath, getClasspathRef, getDestDir, isSettingLoggerFactory, setClasspathRef, setDestDir, setSettingLoggerFactory
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ant.AntVersionGenerator

public Ant.AntVersionGenerator()
Method Detail

getDriver

public java.lang.String getDriver()
Returns the JDBC driver.


setDriver

public void setDriver(java.lang.String pDriver)
Sets the JDBC driver.


getPassword

public java.lang.String getPassword()
Returns the JDBC password.


setPassword

public void setPassword(java.lang.String pPassword)
Sets the JDBC password.


getUrl

public java.lang.String getUrl()
Returns the JDBC URL.


setUrl

public void setUrl(java.lang.String pUrl)
Sets the JDBC URL.


getUser

public java.lang.String getUser()
Returns the JDBC user.


setUser

public void setUser(java.lang.String pUser)
Sets the JDBC user.


getSchema

public java.lang.String getSchema()
Returns the database schema name.


setSchema

public void setSchema(java.lang.String pSchema)
Sets the database schema name.


setTables

public void setTables(java.lang.String pTables)
Sets the table list; the table names are separated with white space.


getTables

public java.util.List getTables()
Returns the table list.


setVerColumn

public void setVerColumn(java.lang.String pColumn)
Sets the column with the version number.


getVerColumn

public java.lang.String getVerColumn()
Returns the column with the version number.


setGeneratingLogging

public void setGeneratingLogging(boolean pGeneratingLogging)
Sets whether logging statements are being generated.


isGeneratingLogging

public boolean isGeneratingLogging()
Returns whether logging statements are being generated.


getConnection

protected java.sql.Connection getConnection()
                                     throws java.lang.ClassNotFoundException,
                                            java.sql.SQLException
Throws:
java.lang.ClassNotFoundException
java.sql.SQLException

generate

public void generate(JavaSourceFactory pFactory,
                     JavaQName pTargetClass)
              throws java.lang.Exception
Description copied from class: Ant.BasicAntTask
Abstract method, which is invoked to generate the target class.

Specified by:
generate in class Ant.BasicAntTask
Throws:
java.lang.Exception