org.codehaus.mojo.hibernate2.beans
Class SchemaExportBean

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.hibernate2.beans.CommonOperationsBean
          extended by org.codehaus.mojo.hibernate2.beans.SchemaUpdateBean
              extended by org.codehaus.mojo.hibernate2.beans.SchemaExportBean
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class SchemaExportBean
extends SchemaUpdateBean

The Bean which serves as Proxy To Hibernate API

Version:
$Id: SchemaExportBean.java 1450 2006-02-05 01:12:27Z brett $
Author:
Michal Maczka , Cameron Braid

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
SchemaExportBean()
           
 
Method Summary
 void execute()
          Hibernate requires that Java classes (beans) are accesible on the classpath.
 java.lang.String getDelimiter()
           
 java.lang.String getOutputFile()
           
 java.lang.String getSchemaOutputFile()
           
 boolean isDrop()
           
 void setDelimiter(java.lang.String string)
           
 void setDrop(boolean b)
           
 void setOutputFile(java.lang.String string)
           
 void setSchemaOutputFile(java.lang.String string)
           
 
Methods inherited from class org.codehaus.mojo.hibernate2.beans.SchemaUpdateBean
getClassLoader, getConfig, getConfiguration, getProperties, getResources, getText, setConfig, setProperties, setResources, setText
 
Methods inherited from class org.codehaus.mojo.hibernate2.beans.CommonOperationsBean
getBasedir, getBaseDirNames, getBaseDirs, getClasspath, getExcludes, getIncludeFiles, getIncludes, getQuiet, print, setBasedir, setClasspath, setExcludes, setIncludes, setQuiet
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaExportBean

public SchemaExportBean()
Method Detail

getSchemaOutputFile

public java.lang.String getSchemaOutputFile()

getOutputFile

public java.lang.String getOutputFile()

setSchemaOutputFile

public void setSchemaOutputFile(java.lang.String string)

setOutputFile

public void setOutputFile(java.lang.String string)

isDrop

public boolean isDrop()

setDrop

public void setDrop(boolean b)

getDelimiter

public java.lang.String getDelimiter()

setDelimiter

public void setDelimiter(java.lang.String string)

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Hibernate requires that Java classes (beans) are accesible on the classpath. As they are not in plugin classpath we have to take care about. To assure that we have them visible for plugin classloader we will make temporay change to context classloader which will be restored when method terminates.

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class SchemaUpdateBean
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2010. All Rights Reserved.