org.apache.maven.hibernate.beans
Class SchemaBeanBase
java.lang.Object
org.apache.maven.hibernate.beans.CommonOperationsBean
org.apache.maven.hibernate.beans.SchemaBeanBase
- Direct Known Subclasses:
- SchemaExportBean, SchemaUpdateBean
- public abstract class SchemaBeanBase
- extends CommonOperationsBean
Base class for Beans which serve as Proxy To Hibernate API
- Version:
- $Id: SchemaBeanBase.java 170200 2005-05-15 06:24:19Z brett $
- Author:
- Michal Maczka, Felipe Leme
Field Summary |
protected static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
SchemaBeanBase
public SchemaBeanBase()
getQuiet
public boolean getQuiet()
- Returns:
getText
public boolean getText()
- Returns:
setQuiet
public void setQuiet(boolean b)
- Parameters:
b
-
setText
public void setText(boolean b)
- Parameters:
b
-
getConfig
public String getConfig()
- Returns:
getProperties
public String getProperties()
- Returns:
setConfig
public void setConfig(String string)
- Parameters:
string
-
setProperties
public void setProperties(String string)
- Parameters:
string
-
execute
public void execute()
throws Exception
- 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.
- Throws:
Exception
executeSchema
protected abstract void executeSchema(net.sf.hibernate.cfg.Configuration cfg)
throws Exception
- Method that does the real job
- Throws:
Exception
getSchemaOutputFile
public String getSchemaOutputFile()
- Returns:
getOutputFile
public String getOutputFile()
- Returns:
getDelimiter
public String getDelimiter()
- Returns:
setSchemaOutputFile
public void setSchemaOutputFile(String string)
- Parameters:
string
-
setOutputFile
public void setOutputFile(String string)
- Parameters:
string
-
setDelimiter
public void setDelimiter(String string)
- Parameters:
string
-
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.