OBEROn SDK

com.oberon.ooql.sdk
Class Lifecycle

java.lang.Object
  extended by com.oberon.ooql.sdk.OBBase
      extended by com.oberon.ooql.sdk.AdminBase
          extended by com.oberon.ooql.sdk.Lifecycle
All Implemented Interfaces:
java.io.Serializable

public class Lifecycle
extends AdminBase
implements java.io.Serializable

Lifecycle Admin Object: defines object lifecycle policies.

Version:
5.0
See Also:
Serialized Form

Field Summary
static int ADD_TO_RECENT_LIST_OPTION
          The Add To Recent List flag index inside the Option Set
static int CHECKUPDATE_OPTION
          The CheckUpdare flag index inside the Option Set
static int UNDO_OPTION
          The Undo flag index inside the Option Set
 
Fields inherited from class com.oberon.ooql.sdk.AdminBase
bsOptions, HIDDEN_OPTION
 
Constructor Summary
Lifecycle()
           
Lifecycle(java.lang.String name)
           
 
Method Summary
 void addClass(java.lang.String className)
          Add a Class to the Lifecycle.
 void addCommand(java.lang.String commandName)
          Add an application Command for ObjectObj instances with this Lifecycle.
 void addCommandAfter(java.lang.String commandName, java.lang.String refCommand)
          Add an application Command after another reference command
 void addCommandBefore(java.lang.String commandName, java.lang.String refCommand)
          Add an application Command before another reference command
 void addFileType(java.lang.String fileTypeName)
          Add a FileType to the Lifecycle.
 void addStage(Stage stage)
          Appends a new Stage to the Lyfecycle
 void addStageAfter(Stage stage, java.lang.String refStage)
          Add a Stage after another reference stage
 void addStageBefore(Stage stage, java.lang.String refStage)
          Add a Stage before another reference stage
 java.lang.String compareUpdate(Lifecycle refLifecycle, boolean checkImage, boolean overwrite, boolean force, Framework framework)
          Return/apply the OOQL command to update this Lifecycle object and let it become equals to another reference object.
 void create(boolean force, Framework framework)
          Create a new Lifecycle object on the database
 void create(Framework framework)
          Create a new Lifecycle object on the database
 void destroy(Framework framework)
          Remove the Lifecycle object from the database.
 void fromXML(org.jdom.Element rootElement)
          Load the Lifecycle object and Stage properties from XML element tree
 void fromXML(org.jdom.Element rootElement, boolean loadStages)
          Load the Lifecycle object properties from XML element tree
 java.util.Vector<java.lang.String> getClasses()
          Get the list of Classes directly governed by this Lifecycle.
 java.lang.String getClassesAsString(java.lang.String delim)
          Get the list of Classes directly governed by this Lifecycle as a single String.
 java.util.Vector<java.lang.String> getCommands()
          Get the list of application Commands available for ObjectObj instances with this Lifecycle and common to all Stages.
 java.lang.String getCommandsAsString(java.lang.String delim)
          Get the list of application Commands as a single String.
 java.lang.String getCreateCommand(boolean force)
          Return the OOQL command to create this Lifecycle object with the settled properties
 java.lang.String getDefaultFileType()
          Get the default FileType for ObjectObj attachments
 java.lang.String getFileSpace()
          Get the FileSpace where the ObjectObj attached files are stored
 java.util.Vector<java.lang.String> getFileTypes()
          Get the list of FileTypes allowed by this Lifecycle
 java.lang.String getFileTypesAsString(java.lang.String delim)
          Get the list of FileTypes allowed by this Lifecycle as a single String
 java.lang.String getFirstRevision()
          Return the first revision for a Lifecycle revision rule
 java.util.BitSet getHistoryOption()
          Get the events traced into the history table for ObjectObjs with this Lifecycle
 boolean getHistoryOption(int event)
          Check if a specific event is traced into the history table for ObjectObjs with this Lifecycle
 java.lang.String getHistoryOptionsAsString(java.lang.String delim)
          Get the events traced into the history table for ObjectObjs with this Lifecycle as String
 java.lang.String getProperty(java.lang.String propertyName, java.util.Vector<java.lang.Object> filterArgs, java.lang.String token, Framework framework)
          Get a property for this Lifecycle object by its OOQL identifier
 java.lang.String getRevisionRule()
          Get the ObjectObj revision rule.
 java.lang.String getSaveCommand(boolean force)
          Return the OOQL command to update this Lifecycle object with the modified properties.
 Stage getStage(java.lang.String stageName)
          Get a Lifecycle Stage with the given name
 Stage getStageAt(int index)
          Get a Lifecycle Stage at given position index
 Stage getStageFromId(int stageId)
          Get a Lifecycle Stage with the given internal id
 java.util.Vector<java.lang.String> getStageIDs()
          Get all Lifecycle Stage internal ids
 java.util.Vector<java.lang.String> getStageNames()
          Get all Lifecycle Stage names
 int getStagePos(java.lang.String stageName)
          Get the Stage position index in the Lifecycle stage sequence
 java.util.Vector<Stage> getStages()
          Get all lifecycle Stages
 java.lang.String getStagesAsString(java.lang.String delim)
          Get all Lifecycle Stage names as a single string
 java.util.Hashtable<java.lang.String,org.jdom.Element> getStageXML()
          Get the Stage properties loaded from the XML element tree
 java.util.Vector<?> getTargetNames(java.lang.String composedName, java.util.Vector<java.lang.Object> filterArgs, Framework framework)
          Return a Vector of administrative object names extracted by using an OOQL selector
 org.jdom.Element getXMLHistoryFlags()
          Return the history flags as XML element tree
 boolean isAddToRecentList()
          Get the "add object to (user) recent list" option.
 boolean isCheckUpdate()
          Check if the checkUpdate option is active for this Lifecycle
 boolean isUndoEnabled()
          Check if the Undo option is enabled for this Lifecycle
 void link(Framework framework, java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
          Open the Lifecycle object: connect the memory instance with the database instance
 void moveCommand(java.lang.String commandName, boolean after)
          Move an application Command for ObjectObj instances with this Lifecycle.
 void moveStage(java.lang.String stageName, boolean after)
          Move a Lifecycle Stage
static Lifecycle open(java.lang.String name, Framework framework, java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
          Open an administrative object and read properties from the database or retrieve them from memory
 void removeClass(java.lang.String className)
          Remove a Class from the Lifecycle.
 void removeCommand(java.lang.String commandName)
          Remove an application Command for ObjectObj instances with this Lifecycle.
 void removeFileType(java.lang.String fileTypeName)
          Remove a FileType from the Lifecycle.
 void removeStage(Stage stage)
          Remove a Stage from the Lifecycle
 void removeStage(java.lang.String stageName)
          Remove a Stage from the Lifecycle identified by its name
 void setAddToRecentList(boolean addObject)
          Set the "add object to (user) recent list" option.
 void setAllHistoryOption()
          Active all events history trace for ObjectObjs with this Lifecycle
 void setCheckUpdate(boolean checkUpdate)
          Set the checkUpdate option.
 void setDefaultFileType(java.lang.String fileTypeName)
          Set the default FileType for ObjectObj attachments
 void setFileSpace(java.lang.String fileSpaceName)
          Set the FileSpace where store the ObjectObj attached files
 void setHistoryOption(java.util.BitSet eventFlags)
          Set the events to log into the history table for ObjectObjs with this Lifecycle
 void setHistoryOption(int event, boolean flag)
          Set the events to log into the history table for ObjectObjs with this Lifecycle
 void setNoHistoryOption()
          Disable history trace for ObjectObjs with this Lifecycle
 void setRevisionRule(java.lang.String revisionRule)
          Set the ObjectObj revision rule.
 void setStages(java.util.Vector<Stage> stages)
          Set all Lifecycle Stages
 void setUndoOption(boolean undoOption)
          Set the Undo option.
 java.lang.String toString()
          Return the Lifecycle object basic properties as a single String
 java.lang.String toString(Framework framework)
          Return the Lifecycle object extended properties as a single String
 org.jdom.Element toXML(boolean getImage, boolean fullDump, Framework framework)
          Return the Lifecycle object properties as XML element tree
 org.jdom.Element toXML(Framework framework)
          Return the Lifecycle object properties as XML element tree
 void unlink(Framework framework)
          Close the object: disconnect the memory instance from the database instance
 void updateClasses(java.util.Vector<java.lang.String> classes)
          Update the classes on the basis of a given list
 void updateCommands(java.util.Vector<java.lang.String> commands)
          Update the commands on the basis of a given list
 void updateFileTypes(java.util.Vector<java.lang.String> filetypes)
          Update the filetypes on the basis of a given list
 void updateStages(java.util.Vector<Stage> stages)
          Update the stages on the basis of a given list
 void write(boolean force, Framework framework)
          Update the Lifecycle object to the database
 void write(Framework framework)
          Update the Lifecycle object to the database
 
Methods inherited from class com.oberon.ooql.sdk.AdminBase
addFeature, changedApplication, checkChangeName, checkCounters, checkCounters, getAdminType, getApplication, getCommonProperty, getCommonTargetNames, getCounters, getCreateBasicCommand, getCreateCommand, getCrtDate, getDescription, getEditBasicCommand, getFeature, getFeatures, getFeaturesAsString, getImage, getImage, getImage, getImageData, getImageFile, getModDate, getModUser, getName, getOldName, getPlainFeatures, getSaveCommand, getSVNRevision, getXMLFeatureList, hasImage, isHidden, setApplication, setCounters, setCrtDate, setDescription, setHidden, setImage, setImageData, setImageFile, setModDate, setModUser, setName, setSVNRevision, show, show, toCommonXML, toXML
 
Methods inherited from class com.oberon.ooql.sdk.OBBase
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setId, setLinked
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHECKUPDATE_OPTION

public static final int CHECKUPDATE_OPTION
The CheckUpdare flag index inside the Option Set

See Also:
Constant Field Values

UNDO_OPTION

public static final int UNDO_OPTION
The Undo flag index inside the Option Set

See Also:
Constant Field Values

ADD_TO_RECENT_LIST_OPTION

public static final int ADD_TO_RECENT_LIST_OPTION
The Add To Recent List flag index inside the Option Set

See Also:
Constant Field Values
Constructor Detail

Lifecycle

public Lifecycle()

Lifecycle

public Lifecycle(java.lang.String name)
          throws OberonException
Parameters:
name - the name of the administrative object
Throws:
OberonException - if the name contains invalid characters
Method Detail

open

public static Lifecycle open(java.lang.String name,
                             Framework framework,
                             java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
                      throws OberonException
Open an administrative object and read properties from the database or retrieve them from memory

Parameters:
name - the object name
framework - the current framework
counters - administrative object synch counters (if null read them from database)
Throws:
OberonException - usually due to DB SQL exceptions

link

public void link(Framework framework,
                 java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
          throws OberonException
Open the Lifecycle object: connect the memory instance with the database instance

Specified by:
link in class AdminBase
Parameters:
framework - the current framework
counters - administrative object synch counters (if null read them from database)
Throws:
OberonException - usually due to DB SQL exceptions

create

public void create(Framework framework)
            throws OberonException
Create a new Lifecycle object on the database

Specified by:
create in class AdminBase
Parameters:
framework - the current framework
Throws:
OberonException - usually due to DB SQL exceptions or to limited user access rights

create

public void create(boolean force,
                   Framework framework)
            throws OberonException
Create a new Lifecycle object on the database

Parameters:
force - if true ignores optional features
framework - the current framework
Throws:
OberonException - usually due to DB SQL exceptions or to limited user access rights
Since:
1.6

write

public void write(Framework framework)
           throws OberonException
Update the Lifecycle object to the database

Specified by:
write in class AdminBase
Parameters:
framework - the current framework
Throws:
OberonException - usually due to DB SQL exceptions or to limited user access rights

write

public void write(boolean force,
                  Framework framework)
           throws OberonException
Update the Lifecycle object to the database

Parameters:
force - if true ignores optional features
framework - the current framework
Throws:
OberonException - usually due to DB SQL exceptions or to limited user access rights
Since:
1.6

unlink

public void unlink(Framework framework)
            throws OberonException
Close the object: disconnect the memory instance from the database instance

Specified by:
unlink in class AdminBase
Parameters:
framework - the current framework
Throws:
OberonException - usually due to DB SQL exceptions

destroy

public void destroy(Framework framework)
             throws OberonException
Remove the Lifecycle object from the database. The operation is allowed only if there is no ObjectObj instances with this Lifecycle.

Specified by:
destroy in class AdminBase
Parameters:
framework - the current framework
Throws:
OberonException - usually due to DB SQL exceptions or to limited user access rights

setDefaultFileType

public void setDefaultFileType(java.lang.String fileTypeName)
Set the default FileType for ObjectObj attachments

Parameters:
fileTypeName - the default FileType. Adds this FileType to the Lifecycle if not already allowed.

getDefaultFileType

public java.lang.String getDefaultFileType()
Get the default FileType for ObjectObj attachments


setFileSpace

public void setFileSpace(java.lang.String fileSpaceName)
Set the FileSpace where store the ObjectObj attached files


getFileSpace

public java.lang.String getFileSpace()
Get the FileSpace where the ObjectObj attached files are stored


setRevisionRule

public void setRevisionRule(java.lang.String revisionRule)
                     throws OberonException
Set the ObjectObj revision rule.

Parameters:
revisionRule - the revision rule.
Throws:
OberonException - when the revision rule doesn't respect the AutoNumber format
See Also:
AutoNumber.symbolTypes

getRevisionRule

public java.lang.String getRevisionRule()
Get the ObjectObj revision rule.


getFirstRevision

public java.lang.String getFirstRevision()
                                  throws java.lang.Exception
Return the first revision for a Lifecycle revision rule

Throws:
java.lang.Exception
Since:
4.0

setCheckUpdate

public void setCheckUpdate(boolean checkUpdate)
Set the checkUpdate option. This option enables/disables the synchronization counter for object instance updates: the object internal counter is increased after each modification, in case of the read counter doesn't match the current value during the update operation an exception is raised

Parameters:
checkUpdate - true to enable the option
Since:
3.0

isCheckUpdate

public boolean isCheckUpdate()
Check if the checkUpdate option is active for this Lifecycle


setUndoOption

public void setUndoOption(boolean undoOption)
Set the Undo option. This option enables/disables the rollback of edit operations for object instances

Parameters:
undoOption - true to enable the Undo option
Since:
3.0

isUndoEnabled

public boolean isUndoEnabled()
Check if the Undo option is enabled for this Lifecycle


setAddToRecentList

public void setAddToRecentList(boolean addObject)
Set the "add object to (user) recent list" option. The ObjectObjs will be added to the user recent opened list if this flag is true (override "Add to recent" flag in the stages)

Since:
4.2

isAddToRecentList

public boolean isAddToRecentList()
Get the "add object to (user) recent list" option.

Since:
4.2

addClass

public void addClass(java.lang.String className)
Add a Class to the Lifecycle. Let the Class allow this Lifecycle for all its ObjectObj instances. This is true also for the Class subclasses.

Parameters:
className - the Class name

removeClass

public void removeClass(java.lang.String className)
Remove a Class from the Lifecycle. New object ObjectObj of this Class (or its subclasses) cannot have this Lifecycle.

Parameters:
className - the Class name

updateClasses

public void updateClasses(java.util.Vector<java.lang.String> classes)
Update the classes on the basis of a given list

Parameters:
classes - list of Class's names
Since:
4.0

getClasses

public java.util.Vector<java.lang.String> getClasses()
Get the list of Classes directly governed by this Lifecycle. If a Class has subClasses, these allow this Lifecycle even if they don't appair in the list

Returns:
a Vector of Class names

getClassesAsString

public java.lang.String getClassesAsString(java.lang.String delim)
Get the list of Classes directly governed by this Lifecycle as a single String.

Parameters:
delim - the Class name separator

addFileType

public void addFileType(java.lang.String fileTypeName)
Add a FileType to the Lifecycle. ObjectObj instances with this Lifecycle will allow also the FileType kind of attachments.

Parameters:
fileTypeName - the FileType name

removeFileType

public void removeFileType(java.lang.String fileTypeName)
Remove a FileType from the Lifecycle. This affects only the new "fileput" operations.

Parameters:
fileTypeName - the FileType name

updateFileTypes

public void updateFileTypes(java.util.Vector<java.lang.String> filetypes)
Update the filetypes on the basis of a given list

Parameters:
filetypes - list of FileTypes
Since:
4.0

getFileTypes

public java.util.Vector<java.lang.String> getFileTypes()
Get the list of FileTypes allowed by this Lifecycle

Returns:
vector of FileType names

getFileTypesAsString

public java.lang.String getFileTypesAsString(java.lang.String delim)
Get the list of FileTypes allowed by this Lifecycle as a single String

Parameters:
delim - the FileType name separator

setHistoryOption

public void setHistoryOption(int event,
                             boolean flag)
Set the events to log into the history table for ObjectObjs with this Lifecycle

Parameters:
event - the history event code
flag - if true the event will be traced into the history
Since:
3.0

setAllHistoryOption

public void setAllHistoryOption()
Active all events history trace for ObjectObjs with this Lifecycle

Since:
3.0

setNoHistoryOption

public void setNoHistoryOption()
Disable history trace for ObjectObjs with this Lifecycle

Since:
3.0

setHistoryOption

public void setHistoryOption(java.util.BitSet eventFlags)
Set the events to log into the history table for ObjectObjs with this Lifecycle

Since:
3.0

getHistoryOption

public boolean getHistoryOption(int event)
Check if a specific event is traced into the history table for ObjectObjs with this Lifecycle

Parameters:
event - the event code
Since:
3.0

getHistoryOption

public java.util.BitSet getHistoryOption()
Get the events traced into the history table for ObjectObjs with this Lifecycle

Since:
3.0

getHistoryOptionsAsString

public java.lang.String getHistoryOptionsAsString(java.lang.String delim)
Get the events traced into the history table for ObjectObjs with this Lifecycle as String

Parameters:
delim - the event name separator
Since:
3.0

addCommand

public void addCommand(java.lang.String commandName)
Add an application Command for ObjectObj instances with this Lifecycle. These commands will be active for all Lifecycle Stages.

Parameters:
commandName - the Command name

addCommandBefore

public void addCommandBefore(java.lang.String commandName,
                             java.lang.String refCommand)
                      throws OberonException
Add an application Command before another reference command

Parameters:
commandName - the Command name
refCommand - the reference Command name
Throws:
OberonException - when the reference command is not found

addCommandAfter

public void addCommandAfter(java.lang.String commandName,
                            java.lang.String refCommand)
                     throws OberonException
Add an application Command after another reference command

Parameters:
commandName - the Command name
refCommand - the reference Command name
Throws:
OberonException - when the reference Command is not found

removeCommand

public void removeCommand(java.lang.String commandName)
Remove an application Command for ObjectObj instances with this Lifecycle.


moveCommand

public void moveCommand(java.lang.String commandName,
                        boolean after)
Move an application Command for ObjectObj instances with this Lifecycle.

Parameters:
commandName - the Command name
after - if true move the Command after else move it before the current position

updateCommands

public void updateCommands(java.util.Vector<java.lang.String> commands)
Update the commands on the basis of a given list

Parameters:
commands - list of Commands
Since:
4.0

getCommands

public java.util.Vector<java.lang.String> getCommands()
Get the list of application Commands available for ObjectObj instances with this Lifecycle and common to all Stages.

Returns:
vector of Command names

getCommandsAsString

public java.lang.String getCommandsAsString(java.lang.String delim)
Get the list of application Commands as a single String.

Parameters:
delim - the command name separator
See Also:
getCommands()

addStage

public void addStage(Stage stage)
              throws OberonException
Appends a new Stage to the Lyfecycle

Throws:
OberonException

addStageBefore

public void addStageBefore(Stage stage,
                           java.lang.String refStage)
                    throws OberonException
Add a Stage before another reference stage

Parameters:
stage - the Stage to add
refStage - the reference Stage name
Throws:
OberonException - when the reference Stage is not found

addStageAfter

public void addStageAfter(Stage stage,
                          java.lang.String refStage)
                   throws OberonException
Add a Stage after another reference stage

Parameters:
stage - the Stage to add
refStage - the reference Stage name
Throws:
OberonException - when the reference Stage is not found

moveStage

public void moveStage(java.lang.String stageName,
                      boolean after)
Move a Lifecycle Stage

Parameters:
stageName - the Stage name
after - if true move the Stage after else move it before the current position

removeStage

public void removeStage(Stage stage)
Remove a Stage from the Lifecycle


removeStage

public void removeStage(java.lang.String stageName)
Remove a Stage from the Lifecycle identified by its name


setStages

public void setStages(java.util.Vector<Stage> stages)
Set all Lifecycle Stages

Parameters:
stages - a Vector of Stages

updateStages

public void updateStages(java.util.Vector<Stage> stages)
                  throws OberonException
Update the stages on the basis of a given list

Parameters:
stages - list of Stages
Throws:
OberonException
Since:
4.0

getStagePos

public int getStagePos(java.lang.String stageName)
Get the Stage position index in the Lifecycle stage sequence

Returns:
the position index or -1 if not found

getStages

public java.util.Vector<Stage> getStages()
Get all lifecycle Stages

Returns:
a Vector of Stages

getStageAt

public Stage getStageAt(int index)
Get a Lifecycle Stage at given position index


getStage

public Stage getStage(java.lang.String stageName)
Get a Lifecycle Stage with the given name


getStageFromId

public Stage getStageFromId(int stageId)
Get a Lifecycle Stage with the given internal id


getStageNames

public java.util.Vector<java.lang.String> getStageNames()
Get all Lifecycle Stage names

Returns:
a Vector Stage names

getStageIDs

public java.util.Vector<java.lang.String> getStageIDs()
Get all Lifecycle Stage internal ids

Returns:
a Vector of ids

getStagesAsString

public java.lang.String getStagesAsString(java.lang.String delim)
Get all Lifecycle Stage names as a single string

Parameters:
delim - the Stage name separator

getProperty

public java.lang.String getProperty(java.lang.String propertyName,
                                    java.util.Vector<java.lang.Object> filterArgs,
                                    java.lang.String token,
                                    Framework framework)
Get a property for this Lifecycle object by its OOQL identifier

Specified by:
getProperty in class OBBase
Parameters:
propertyName - OOQL property identifier/name (example: defaultfiletype , revisionrule ...)
filterArgs - extra arguments used to compute properties
token - separator token for complex properties
framework - the current framework
Returns:
the property value

getTargetNames

public java.util.Vector<?> getTargetNames(java.lang.String composedName,
                                          java.util.Vector<java.lang.Object> filterArgs,
                                          Framework framework)
Return a Vector of administrative object names extracted by using an OOQL selector

Specified by:
getTargetNames in class OBBase
Parameters:
composedName - OOQL property identifier/name (example: class, stage, .. )
filterArgs - extra arguments used to compute properties
framework - the current framework
Returns:
a Vector of target names, used to extract their (sub)properties values

toString

public java.lang.String toString()
Return the Lifecycle object basic properties as a single String

Overrides:
toString in class AdminBase

toString

public java.lang.String toString(Framework framework)
Return the Lifecycle object extended properties as a single String

Overrides:
toString in class AdminBase
Parameters:
framework - the current framework

getXMLHistoryFlags

public org.jdom.Element getXMLHistoryFlags()
Return the history flags as XML element tree

Since:
3.0

toXML

public org.jdom.Element toXML(Framework framework)
Return the Lifecycle object properties as XML element tree

Specified by:
toXML in class AdminBase
Parameters:
framework - the current framework

toXML

public org.jdom.Element toXML(boolean getImage,
                              boolean fullDump,
                              Framework framework)
Return the Lifecycle object properties as XML element tree

Specified by:
toXML in class AdminBase
Parameters:
getImage - true to include "imagedata" element with the base64 encoded image data
fullDump - true to include detailed information
framework - the current framework

fromXML

public void fromXML(org.jdom.Element rootElement)
Load the Lifecycle object and Stage properties from XML element tree

Overrides:
fromXML in class AdminBase

fromXML

public void fromXML(org.jdom.Element rootElement,
                    boolean loadStages)
Load the Lifecycle object properties from XML element tree

Parameters:
loadStages - if true to load also Stage properties

getStageXML

public java.util.Hashtable<java.lang.String,org.jdom.Element> getStageXML()
Get the Stage properties loaded from the XML element tree

Returns:
a Hashtable of Stages associated to their IDs
See Also:
fromXML(Element, boolean)

getCreateCommand

public java.lang.String getCreateCommand(boolean force)
Return the OOQL command to create this Lifecycle object with the settled properties

Specified by:
getCreateCommand in class AdminBase
Parameters:
force - if true append the "force" options at the end

getSaveCommand

public java.lang.String getSaveCommand(boolean force)
Return the OOQL command to update this Lifecycle object with the modified properties.
If the object is new, it returns the create command.

Specified by:
getSaveCommand in class AdminBase
Parameters:
force - if true append the "force" options at the end

compareUpdate

public java.lang.String compareUpdate(Lifecycle refLifecycle,
                                      boolean checkImage,
                                      boolean overwrite,
                                      boolean force,
                                      Framework framework)
                               throws OberonException
Return/apply the OOQL command to update this Lifecycle object and let it become equals to another reference object.
This method is useful to import objects from an XML file.

Parameters:
refLifecycle - the reference Lifecycle object
checkImage - if true compare also the image icon
overwrite - if true update the database object instance
force - if true ignores optional properties
framework - the current framework
Throws:
OberonException
See Also:
fromXML(Element)

OBEROn SDK

Copyright © 2008-2014 Mirko Solazzi. All Rights Reserved.