|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.hibernate.PluginSchemaExport
public class PluginSchemaExport
Creates a schema based on Hibernate annotated classes.
| Field Summary |
|---|
| Fields inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAIT |
| Constructor Summary | |
|---|---|
PluginSchemaExport()
|
|
| Method Summary | |
|---|---|
protected void |
createSchema(IContext context,
org.hibernate.SessionFactory sf)
Perform create schema. |
ENext |
doStart(IContext context,
IResultSet result)
|
protected void |
dropSchema(IContext context,
org.hibernate.SessionFactory sf)
Perform drop schema. |
ActionType |
getActionType()
|
String |
getConfiguration()
Name of configuration to be used. |
String |
getFactory()
Name of session factory to be used. |
String |
getSchema()
Gets the schema name. |
boolean |
isDrop()
true, if schema has to be dropped, false, otherwise. |
boolean |
isExport()
true, to perform schema creation on database, false, otherwise. |
boolean |
isScript()
true, if script must be writen to System.out. |
void |
setConfiguration(String configuration)
Set the configuration. |
void |
setDrop(boolean drop)
Set the drop behavior. |
void |
setExport(boolean export)
Sets export status. |
void |
setFactory(String factory)
Set a session factory. |
void |
setSchema(String schema)
Set the default schema. |
void |
setScript(boolean script)
Set script output status. |
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
copy, doEnd, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, initialize, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toString |
| Methods inherited from class org.specrunner.parameters.core.ParameterHolder |
|---|
getParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.specrunner.parameters.IParameterHolder |
|---|
getParameters, setParameters |
| Constructor Detail |
|---|
public PluginSchemaExport()
| Method Detail |
|---|
public String getConfiguration()
public void setConfiguration(String configuration)
configuration - A configuration.public String getFactory()
public void setFactory(String factory)
factory - A factory.public String getSchema()
public void setSchema(String schema)
schema - The schema.public boolean isScript()
System.out. Default is
'false'.
public void setScript(boolean script)
script - true, for show, false, otherwise.public boolean isDrop()
public void setDrop(boolean drop)
drop - The drop behavior flag.public boolean isExport()
public void setExport(boolean export)
export - The export status.public ActionType getActionType()
public ENext doStart(IContext context,
IResultSet result)
throws PluginException
doStart in interface IPlugindoStart in class AbstractPluginPluginException
protected void dropSchema(IContext context,
org.hibernate.SessionFactory sf)
throws PluginException
context - The context.sf - The session factory.
PluginException - On drop errors.
protected void createSchema(IContext context,
org.hibernate.SessionFactory sf)
throws PluginException
context - The context.sf - The session factory.
PluginException - On creation errors.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||