org.broadleafcommerce.common.util.sql
Class JPAConfigurationTask

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

public class JPAConfigurationTask
extends org.hibernate.tool.ant.ConfigurationTask

This is a re-worked version from Hibernate tools

Author:
jfischer

Field Summary
 
Fields inherited from class org.hibernate.tool.ant.ConfigurationTask
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
JPAConfigurationTask()
           
 
Method Summary
protected  org.hibernate.cfg.Configuration createConfiguration(MergeFileSystemAndClassPathXMLApplicationContext mergeContext)
           
protected  void doConfiguration(org.hibernate.cfg.Configuration configuration)
           
 String getDialect()
           
 String getDriverClassName()
           
 String getPassword()
           
 String getPersistenceUnit()
           
 String getUrl()
           
 String getUserName()
           
 void setDialect(String dialect)
           
 void setDriverClassName(String driverClassName)
           
 void setPassword(String password)
           
 void setPersistenceUnit(String persistenceUnit)
           
 void setUrl(String url)
           
 void setUserName(String userName)
           
protected  void validateParameters()
           
 
Methods inherited from class org.hibernate.tool.ant.ConfigurationTask
addConfiguredFileSet, addFile, createConfiguration, getConfiguration, getConfigurationFile, getProperties, getPropertyFile, setConfigurationFile, setEntityResolver, setNamingStrategy, setPropertyFile
 
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
 

Constructor Detail

JPAConfigurationTask

public JPAConfigurationTask()
Method Detail

createConfiguration

protected org.hibernate.cfg.Configuration createConfiguration(MergeFileSystemAndClassPathXMLApplicationContext mergeContext)

doConfiguration

protected void doConfiguration(org.hibernate.cfg.Configuration configuration)
Overrides:
doConfiguration in class org.hibernate.tool.ant.ConfigurationTask

validateParameters

protected void validateParameters()
                           throws org.apache.tools.ant.BuildException
Overrides:
validateParameters in class org.hibernate.tool.ant.ConfigurationTask
Throws:
org.apache.tools.ant.BuildException

getPersistenceUnit

public String getPersistenceUnit()

setPersistenceUnit

public void setPersistenceUnit(String persistenceUnit)

getDialect

public String getDialect()

setDialect

public void setDialect(String dialect)

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

getUserName

public String getUserName()

setUserName

public void setUserName(String userName)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getDriverClassName

public String getDriverClassName()

setDriverClassName

public void setDriverClassName(String driverClassName)


Copyright © 2013. All Rights Reserved.