org.hibernate.tool.ant
Class HibernateToolTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.hibernate.tool.ant.HibernateToolTask

public class HibernateToolTask
extends org.apache.tools.ant.Task

Author:
max

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
HibernateToolTask()
           
 
Method Summary
 void addConfiguredProperty(org.apache.tools.ant.types.Environment.Variable property)
           
 void addConfiguredPropertySet(org.apache.tools.ant.types.PropertySet ps)
           
protected  boolean addGenerator(ExporterTask generator)
           
 AnnotationConfigurationTask createAnnotationConfiguration()
           
 org.apache.tools.ant.types.Path createClasspath()
          Adds a path to the classpath.
 ConfigurationTask createConfiguration()
           
 JPAConfigurationTask createEjb3Configuration()
           
 ExporterTask createHbm2CfgXml()
           
 ExporterTask createHbm2DAO()
           
 ExporterTask createHbm2DDL()
           
 ExporterTask createHbm2Doc()
           
 ExporterTask createHbm2HbmXml()
           
 ExporterTask createHbm2Java()
           
 HbmLintExporterTask createHbmLint()
           
 ExporterTask createHbmTemplate()
           
 JDBCConfigurationTask createJDBCConfiguration()
           
 JPAConfigurationTask createJpaConfiguration()
           
 QueryExporterTask createQuery()
           
 void execute()
           
 org.hibernate.cfg.Configuration getConfiguration()
           
 File getDestDir()
           
 Properties getProperties()
           
 org.apache.tools.ant.types.Path getTemplatePath()
           
 void setClasspath(org.apache.tools.ant.types.Path s)
          Set the classpath to be used when running the Java class
 void setDestDir(File file)
           
 void setTemplatePath(org.apache.tools.ant.types.Path path)
           
 
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

HibernateToolTask

public HibernateToolTask()
Method Detail

createConfiguration

public ConfigurationTask createConfiguration()

createJDBCConfiguration

public JDBCConfigurationTask createJDBCConfiguration()

createAnnotationConfiguration

public AnnotationConfigurationTask createAnnotationConfiguration()

createEjb3Configuration

public JPAConfigurationTask createEjb3Configuration()

createJpaConfiguration

public JPAConfigurationTask createJpaConfiguration()

createHbm2DDL

public ExporterTask createHbm2DDL()

createHbmTemplate

public ExporterTask createHbmTemplate()

createHbm2CfgXml

public ExporterTask createHbm2CfgXml()

addGenerator

protected boolean addGenerator(ExporterTask generator)

createHbm2Java

public ExporterTask createHbm2Java()

createHbm2HbmXml

public ExporterTask createHbm2HbmXml()

createHbm2Doc

public ExporterTask createHbm2Doc()

createHbm2DAO

public ExporterTask createHbm2DAO()

createQuery

public QueryExporterTask createQuery()

createHbmLint

public HbmLintExporterTask createHbmLint()

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path s)
Set the classpath to be used when running the Java class

Parameters:
s - an Ant Path object containing the classpath.

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Adds a path to the classpath.

Returns:
created classpath

execute

public void execute()
Overrides:
execute in class org.apache.tools.ant.Task

getDestDir

public File getDestDir()
Returns:

setDestDir

public void setDestDir(File file)

getConfiguration

public org.hibernate.cfg.Configuration getConfiguration()
Returns:

setTemplatePath

public void setTemplatePath(org.apache.tools.ant.types.Path path)

getTemplatePath

public org.apache.tools.ant.types.Path getTemplatePath()

getProperties

public Properties getProperties()

addConfiguredPropertySet

public void addConfiguredPropertySet(org.apache.tools.ant.types.PropertySet ps)

addConfiguredProperty

public void addConfiguredProperty(org.apache.tools.ant.types.Environment.Variable property)