org.hibernate.tool.ant
Class ConfigurationTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.hibernate.tool.ant.ConfigurationTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AnnotationConfigurationTask, JDBCConfigurationTask, JPAConfigurationTask

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

Author:
max

Field Summary
protected  String entityResolver
           
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
ConfigurationTask()
           
 
Method Summary
 void addConfiguredFileSet(org.apache.tools.ant.types.FileSet fileSet)
           
protected  boolean addFile(File filename)
           
protected  org.hibernate.cfg.Configuration createConfiguration()
           
protected  void doConfiguration(org.hibernate.cfg.Configuration configuration)
           
 org.hibernate.cfg.Configuration getConfiguration()
           
 File getConfigurationFile()
           
protected  Properties getProperties()
           
 File getPropertyFile()
           
 void setConfigurationFile(File configurationFile)
           
 void setEntityResolver(String entityResolverName)
           
 void setNamingStrategy(String namingStrategy)
           
 void setPropertyFile(File propertyFile)
           
protected  void validateParameters()
           
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityResolver

protected String entityResolver
Constructor Detail

ConfigurationTask

public ConfigurationTask()
Method Detail

addConfiguredFileSet

public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet fileSet)

getConfiguration

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

createConfiguration

protected org.hibernate.cfg.Configuration createConfiguration()

doConfiguration

protected void doConfiguration(org.hibernate.cfg.Configuration configuration)

getProperties

protected Properties getProperties()

validateParameters

protected void validateParameters()
                           throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

addFile

protected boolean addFile(File filename)
Parameters:
filename -

getConfigurationFile

public File getConfigurationFile()

setConfigurationFile

public void setConfigurationFile(File configurationFile)

getPropertyFile

public File getPropertyFile()

setPropertyFile

public void setPropertyFile(File propertyFile)

setEntityResolver

public void setEntityResolver(String entityResolverName)

setNamingStrategy

public void setNamingStrategy(String namingStrategy)