public class SchemaCreator extends AbstractAction implements Substitutor
Modifier and Type | Class and Description |
---|---|
class |
SchemaCreator.MyListener |
Modifier and Type | Field and Description |
---|---|
static String |
ACTIONS_FILE |
static String |
PROPERTIES_FILE |
static int |
SIGNIFICANT_SCHEMA_VERSION_COMPONENTS
The number of version components that will be considered significant in
determining the schema version.
|
static SymbolType |
SYMBOL_TYPE |
static String |
UPGRADE_MODE |
static int |
UPGRADE_MODE_CONTINUOUS |
static int |
UPGRADE_MODE_REDO |
static int |
UPGRADE_TASK_START_VALUE
The starting value that will be used to keep track of upgrade tasks
that have been attempted.
|
static int |
UPGRADE_TASK_VERSION_COMPONENT
The version components that will be used to determine the current task.
|
CONTINUE_ON_ERROR, m_defaultOptions, m_options
Constructor and Description |
---|
SchemaCreator(Hashtable settings,
Hashtable directories,
String actionsFile,
String actionName,
String actionDescription) |
SchemaCreator(Hashtable settings,
Hashtable directories,
String actionsFile,
String actionName,
String actionDescription,
boolean isUpgrade) |
SchemaCreator(String[] args) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(SchemaCreatorListener l) |
void |
failed(Throwable t)
Invoked if this Action has failed.
|
protected void |
fillIfsParameters()
Set Database URL and iFS CM schema name and password.
|
protected void |
fireListenersForActionFinished(Action action) |
static void |
main(String[] args) |
void |
perform()
Performs this Action.
|
void |
performUpgrade() |
void |
removeListener(SchemaCreatorListener l) |
void |
runFromCmdLine() |
void |
stop()
Stops this Action.
|
String |
substitute(String value)
Subsitutes the parameter value with the returned value.
|
getDescription, getName, getValue, isContinueOnError, isPostgres, putValue, setDefaultOptions, setDescription, setName, setOptions
public static final SymbolType SYMBOL_TYPE
public static final String ACTIONS_FILE
public static final String PROPERTIES_FILE
public static final String UPGRADE_MODE
public static final int UPGRADE_MODE_REDO
public static final int UPGRADE_MODE_CONTINUOUS
public static final int UPGRADE_TASK_VERSION_COMPONENT
public static final int UPGRADE_TASK_START_VALUE
50
; the maximum task
number is 99
.public static final int SIGNIFICANT_SCHEMA_VERSION_COMPONENTS
public SchemaCreator(Hashtable settings, Hashtable directories, String actionsFile, String actionName, String actionDescription)
public SchemaCreator(Hashtable settings, Hashtable directories, String actionsFile, String actionName, String actionDescription, boolean isUpgrade) throws ActionFailedException
ActionFailedException
protected void fillIfsParameters() throws Exception
Exception
public void perform() throws ActionFailedException
Action
perform
in interface Action
ActionFailedException
- if the action could not be performed.public void performUpgrade() throws ActionFailedException
ActionFailedException
public void stop()
Action
perform
will return as soon as possible.
This method should do nothing if this Action has already been stopped.
This method will probably be invoked from within the Thread that created
the ActionQueue that this Action is being executed in, rather than from
within the Thread that is invoking the perform
method
(the ActionQueue's Action processing Thread).
Because of this, clients implementing this interface should
provide a way of canceling what is happening in the perform
method when this stop
method is invoked.
Note: this is especially important when the perform
method
executes a tight loop or creates new Threads.
public void failed(Throwable t)
Action
perform
method has executed.public void addListener(SchemaCreatorListener l)
public void removeListener(SchemaCreatorListener l)
protected void fireListenersForActionFinished(Action action)
public String substitute(String value)
Substitutor
substitute
in interface Substitutor
public static void main(String[] args)
Copyright © 2023. All rights reserved.