org.apache.maven.hibernate.beans
Class SchemaBeanBase

java.lang.Object
  extended byorg.apache.maven.hibernate.beans.CommonOperationsBean
      extended byorg.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
           
 
Constructor Summary
SchemaBeanBase()
           
 
Method Summary
 void execute()
          Hibernate requires that Java classes (beans) are accesible on the classpath.
protected abstract  void executeSchema(net.sf.hibernate.cfg.Configuration cfg)
          Method that does the real job
 String getConfig()
           
 String getDelimiter()
           
 String getOutputFile()
           
 String getProperties()
           
 boolean getQuiet()
           
 String getSchemaOutputFile()
           
 boolean getText()
           
 void setConfig(String string)
           
 void setDelimiter(String string)
           
 void setOutputFile(String string)
           
 void setProperties(String string)
           
 void setQuiet(boolean b)
           
 void setSchemaOutputFile(String string)
           
 void setText(boolean b)
           
 
Methods inherited from class org.apache.maven.hibernate.beans.CommonOperationsBean
getBasedir, getBaseDirNames, getBaseDirs, getExcludes, getFileDescriptors, getFileNames, getIncludes, setBasedir, setExcludes, setIncludes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

SchemaBeanBase

public SchemaBeanBase()
Method Detail

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.