public class PluginSchemaExport extends AbstractPlugin
| Modifier and Type | Field and Description |
|---|---|
protected String |
configuration
The configuration name.
|
protected boolean |
drop
To drop schema.
|
protected boolean |
export
To export/update schema.
|
protected String |
factory
The factory name.
|
protected String |
schema
The schema name.
|
protected boolean |
script
To show/generate script.
|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_NORMALIZER, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAITparameters| Constructor and Description |
|---|
PluginSchemaExport() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
copy, doEnd, getCondition, getConditionModel, getNormalized, getNormalized, getNormalizer, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, initialize, setCondition, setConditionModel, setNormalized, setNormalizer, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toStringgetParameters, setParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, setParametersprotected String configuration
protected String factory
protected String schema
protected boolean script
protected boolean drop
protected boolean export
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 AbstractPluginPluginExceptionprotected 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.Copyright © 2017. All rights reserved.