org.broadleafcommerce.common.util.sql
Class HibernateToolTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.broadleafcommerce.common.util.sql.HibernateToolTask
All Implemented Interfaces:
Cloneable

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

This is a re-worked version from Hibernate tools

Author:
jfischer

Field Summary
protected  List<org.apache.tools.ant.Task> appContexts
           
protected  org.apache.tools.ant.types.Path classPath
           
protected  boolean combinePersistenceUnits
           
protected  List configurationTasks
           
protected  File destDir
           
protected  List generators
           
protected  boolean refineFileNames
           
 
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
HibernateToolTask()
           
 
Method Summary
protected  boolean addConfiguration(org.hibernate.tool.ant.ConfigurationTask config)
           
protected  boolean addGenerator(ExporterTask generator)
           
 org.apache.tools.ant.types.Path createClasspath()
          Adds a path to the classpath.
 ClassPathApplicationContextTask createClassPathApplicationContext()
           
 FileSystemApplicationContextTask createFileSystemApplicationContext()
           
 ExporterTask createHbm2DDL()
           
 JPAConfigurationTask createJPAConfiguration()
           
 void execute()
           
 File getDestdir()
           
 boolean isCombinePersistenceUnits()
           
 boolean isRefineFileNames()
           
 void setClasspath(org.apache.tools.ant.types.Path s)
          Set the classpath to be used when running the Java class
 void setCombinePersistenceUnits(boolean combinePersistenceUnits)
           
 void setDestdir(File destDir)
           
 void setRefineFileNames(boolean refineFileNames)
           
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, 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

configurationTasks

protected List configurationTasks

destDir

protected File destDir

generators

protected List generators

appContexts

protected List<org.apache.tools.ant.Task> appContexts

classPath

protected org.apache.tools.ant.types.Path classPath

combinePersistenceUnits

protected boolean combinePersistenceUnits

refineFileNames

protected boolean refineFileNames
Constructor Detail

HibernateToolTask

public HibernateToolTask()
Method Detail

createHbm2DDL

public ExporterTask createHbm2DDL()

createClassPathApplicationContext

public ClassPathApplicationContextTask createClassPathApplicationContext()

createFileSystemApplicationContext

public FileSystemApplicationContextTask createFileSystemApplicationContext()

createJPAConfiguration

public JPAConfigurationTask createJPAConfiguration()

addConfiguration

protected boolean addConfiguration(org.hibernate.tool.ant.ConfigurationTask config)

addGenerator

protected boolean addGenerator(ExporterTask generator)

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()

setDestdir

public void setDestdir(File destDir)

isCombinePersistenceUnits

public boolean isCombinePersistenceUnits()

setCombinePersistenceUnits

public void setCombinePersistenceUnits(boolean combinePersistenceUnits)

isRefineFileNames

public boolean isRefineFileNames()

setRefineFileNames

public void setRefineFileNames(boolean refineFileNames)


Copyright © 2013. All Rights Reserved.