org.codehaus.mojo.appfuse.utility
Class JDBCConfigurationUtility

java.lang.Object
  extended by org.codehaus.mojo.appfuse.utility.ConfigurationUtility
      extended by org.codehaus.mojo.appfuse.utility.JDBCConfigurationUtility

public class JDBCConfigurationUtility
extends ConfigurationUtility

This class is a generic class for setting up the configuration of various exporters in the hibernate tools library.

Version:
$Id$
Author:
Scott Ryan

Field Summary
static org.apache.commons.logging.Log LOG
          A static logger for the class.
 
Constructor Summary
JDBCConfigurationUtility()
          Creates a new JDBCConfigurationUtility object.
 
Method Summary
 void addRevEngFile(java.lang.String inFileName)
          Setter for the rev eng file list.
 org.hibernate.cfg.Configuration createConfiguration()
          This method will create a new configuration object.
 void doConfiguration(org.hibernate.cfg.Configuration inConfiguration)
          This method will set up the aspects of the configuration for use by the hibernate exporters.
 void setPackageName(java.lang.String inPackageName)
          Setter for the package name.
 void setPreferBasicCompositeIds(boolean inFlag)
          Setter for the prefer basic composite ids.
 void setReverseStrategy(java.lang.String inReverseStrategy)
          Setter for the reverse strategy.
 
Methods inherited from class org.codehaus.mojo.appfuse.utility.ConfigurationUtility
addConfiguredFileSet, addFile, getConfiguration, getConfigurationFile, getPropertyFile, setConfigurationFile, setEntityResolver, setNamingStrategy, setPropertyFile, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
A static logger for the class.

Constructor Detail

JDBCConfigurationUtility

public JDBCConfigurationUtility()
Creates a new JDBCConfigurationUtility object.

Method Detail

createConfiguration

public org.hibernate.cfg.Configuration createConfiguration()
This method will create a new configuration object.

Overrides:
createConfiguration in class ConfigurationUtility
Returns:
A JDBC configuration object.

doConfiguration

public void doConfiguration(org.hibernate.cfg.Configuration inConfiguration)
                     throws org.apache.maven.plugin.MojoExecutionException
This method will set up the aspects of the configuration for use by the hibernate exporters.

Overrides:
doConfiguration in class ConfigurationUtility
Parameters:
inConfiguration - The JDBC configuration to set up.
Throws:
org.apache.maven.plugin.MojoExecutionException - Thrown if a class or value cannot be located.

setPackageName

public void setPackageName(java.lang.String inPackageName)
Setter for the package name.

Parameters:
inPackageName - The value of package name.

setReverseStrategy

public void setReverseStrategy(java.lang.String inReverseStrategy)
Setter for the reverse strategy.

Parameters:
inReverseStrategy - The value of reverse strategy.

addRevEngFile

public void addRevEngFile(java.lang.String inFileName)
Setter for the rev eng file list.

Parameters:
inFileName - The value of rev eng file to be added to the list.

setPreferBasicCompositeIds

public void setPreferBasicCompositeIds(boolean inFlag)
Setter for the prefer basic composite ids.

Parameters:
inFlag - The value of prefer basic composite ids.


Copyright © 2006-2009. All Rights Reserved.