org.codehaus.mojo.hibernate2.beans
Class SchemaExportBean
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.hibernate2.beans.CommonOperationsBean
org.codehaus.mojo.hibernate2.beans.SchemaUpdateBean
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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
SchemaExportBean
public SchemaExportBean()
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.