|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oberon.ooql.sdk.OBBase
com.oberon.ooql.sdk.AdminBase
com.oberon.ooql.sdk.Class
public class Class
Class Admin Object: defines an OBEROn object [ObjectObj] type.
| Field Summary | |
|---|---|
static int |
ABSTRACT_OPTION
The Abstract flag index inside the Option Set |
| Fields inherited from class com.oberon.ooql.sdk.AdminBase |
|---|
bsOptions, HIDDEN_OPTION |
| Constructor Summary | |
|---|---|
Class()
|
|
Class(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addField(java.lang.String fieldName)
Add a Field to this Class; overrides the super-Class Field with the same name if present |
void |
addMethod(java.lang.String programName)
Add a method (Program) to this Class; overrides the super-Class method with the same name if present |
void |
addTrigger(Trigger trigger)
Add a Trigger to this Class; overrides the super-Class Trigger for the same events if present |
java.lang.String |
compareUpdate(Class refClass,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
Return/apply the OOQL command to update this Class object and let it become equals to another reference object. |
void |
create(boolean force,
Framework framework)
Create a new Class object on the database |
void |
create(Framework framework)
Create a new Class object on the database |
void |
destroy(Framework framework)
Remove the Class object from the database |
void |
fromXML(org.jdom.Element rootElement)
Load the Class object properties from XML element tree |
java.util.Vector<java.lang.String> |
getAutoNumbers(Framework framework)
Return the list of AutoNumbers defined for this Class |
java.lang.String |
getAutoNumbersAsString(java.lang.String delim,
Framework framework)
Return the list of AutoNumber defined for this Class, as a String |
java.lang.String |
getCreateCommand(boolean force)
Return the OOQL command to create this Class object with the settled properties |
java.lang.String |
getDefaultForm(boolean top)
Get the default Form to create/edit ObjectObjs of this Class type. |
java.util.Vector<java.lang.String> |
getFields()
Return a full list of Fields for this Class; inherited Fields are included |
java.lang.String |
getFieldsAsString(java.lang.String delim)
Return the full list of Fields for this Class, as a String |
java.util.Vector<java.lang.String> |
getLifecycles(Framework framework)
Return the list of Lifecycles allowed for this Class |
java.lang.String |
getLifecyclesAsString(java.lang.String delim,
Framework framework)
Return the list of Lifecycles allowed for this Class, as a String |
java.util.Vector<java.lang.String> |
getLinkTypes(Framework framework)
Return the list of LinkTypes allowed for this Class |
java.lang.String |
getLinkTypesAsString(java.lang.String delim,
Framework framework)
Return the list of LinkTypes allowed for this Class, as a String |
java.util.Vector<java.lang.String> |
getMethods()
Return a full list of methods for this Class; inherited methods are included |
java.lang.String |
getMethodsAsString(java.lang.String delim)
Return the full list of methods for this Class, as a String |
java.lang.String |
getOwnDefaultForm()
Get the default Form to create/edit ObjectObjs of this Class type. |
java.util.Vector<java.lang.String> |
getOwnFields()
Return the list of own Fields for this Class; inherited Fields are excluded |
java.lang.String |
getOwnFieldsAsString(java.lang.String delim)
Return the list of own Fields, as a String |
java.util.Vector<java.lang.String> |
getOwnMethods()
Return the list of own methods defined for this Class; inherited methods are excluded |
java.lang.String |
getOwnMethodsAsString(java.lang.String delim)
Return the list of own methods, as a String |
java.util.Vector<java.lang.String> |
getOwnSubClasses(Framework framework)
Return the list of sub-Classes directly derived from this Class |
java.lang.String |
getOwnSubClassesAsString(java.lang.String delim,
Framework framework)
Return the list of sub-Classes directly derived from this Class, as a String |
java.util.Vector<Trigger> |
getOwnTriggers()
Return the list of own Triggers defined for this Class; inherited Triggers are excluded |
java.lang.String |
getOwnTriggersAsString(java.lang.String delim)
Return the list of own Program-Triggers, as a String |
java.lang.String |
getOwnWorkflowAsString(java.lang.String delim)
Return the full list of own Workflow-Triggers, as a 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 Class object by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
Return the OOQL command to update this Class object with the modified properties. |
java.util.Vector<java.lang.String> |
getSubClasses(Framework framework)
Return the full list of sub-Classes derived from this Class |
java.lang.String |
getSubClassesAsString(java.lang.String delim,
Framework framework)
Return the full list of sub-Classes derived from this Class, as a String |
java.lang.String |
getSuperClass()
Get the super-Class name for this Class. |
java.util.Vector<java.lang.String> |
getSuperClasses()
Get the super-Classes for this Class. |
Class |
getSuperClassObj()
Get the super-Class administrative object for this Class. |
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 |
Trigger |
getTriggerByEvent(java.lang.String event)
Get the Program-Trigger for a specific event |
java.util.Vector<Trigger> |
getTriggers()
Return a full list of Triggers for this Class; inherited Triggers are included |
java.lang.String |
getTriggersAsString(java.lang.String delim)
Return the full list of Program-Triggers, as a String |
java.lang.String |
getWorkflowAsString(java.lang.String delim)
Return the full list of Workflow-Triggers, as a String |
Trigger |
getWorkflowByEvent(java.lang.String event)
Get the Workflow-Trigger for a specific event |
boolean |
isAbstract()
Check if the Class is abstract. |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the Class object: connect the memory instance with the database instance |
static Class |
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 |
removeField(java.lang.String fieldName)
Remove a Field from this Class; values for all instantiated ObjectObjs will be lost |
void |
removeMethod(java.lang.String programName)
Remove method (Program) from this Class |
void |
removeTrigger(Trigger trigger)
Remove a Trigger from this Class |
void |
setAbstract(boolean abstractFlag)
Set the abstract flag for this Class. |
void |
setDefaultForm(java.lang.String defaultForm)
Set the default Form to create/edit ObjectObjs of this Class type. |
void |
setSuperClass(java.lang.String className)
Set a super-Class for this Class. |
void |
setSuperClassObj(Class classObj)
Set a super-Class for this Class. |
void |
setTriggers(java.util.Vector<Trigger> triggers)
Set Triggers for this Class; overrides the super-Class Triggers for the same events if present |
java.lang.String |
toString()
Return the Class object basic properties as a single String |
java.lang.String |
toString(Framework framework)
Return the Class object extended properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Class object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Class object properties as XML element tree |
void |
unlink(Framework framework)
Close the object: disconnect the memory instance from the database instance |
void |
updateFields(java.util.Vector<java.lang.String> fields)
Update the fields on the basis of a given list |
void |
updateMethods(java.util.Vector<java.lang.String> methods)
Update the methods on the basis of a given list |
void |
updateTriggers(java.util.Vector<Trigger> triggers)
Update the triggers on the basis of a given list |
void |
write(boolean force,
Framework framework)
Update the Class object to the database |
void |
write(Framework framework)
Update the Class object to the database |
| 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 |
|---|
public static final int ABSTRACT_OPTION
| Constructor Detail |
|---|
public Class()
public Class(java.lang.String name)
throws OberonException
name - the name of the administrative object
OberonException - if the name contains invalid characters| Method Detail |
|---|
public static Class open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
name - the object nameframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
link in class AdminBaseframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void create(Framework framework)
throws OberonException
create in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void create(boolean force,
Framework framework)
throws OberonException
force - if true ignores optional featuresframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(Framework framework)
throws OberonException
write in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(boolean force,
Framework framework)
throws OberonException
force - if true ignores optional featuresframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void unlink(Framework framework)
throws OberonException
unlink in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions
public void destroy(Framework framework)
throws OberonException
destroy in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rightspublic void setSuperClass(java.lang.String className)
className - the super-Class namepublic void setSuperClassObj(Class classObj)
classObj - the super-Class administrative objectpublic java.lang.String getSuperClass()
public Class getSuperClassObj()
public java.util.Vector<java.lang.String> getSuperClasses()
public void setAbstract(boolean abstractFlag)
abstractFlag - true to define the Class as abstractpublic boolean isAbstract()
public void addField(java.lang.String fieldName)
fieldName - the name of the Field to addpublic void removeField(java.lang.String fieldName)
ObjectObjs will be lost
fieldName - the name of the Field to removepublic void updateFields(java.util.Vector<java.lang.String> fields)
fields - list of Field's namespublic java.util.Vector<java.lang.String> getOwnFields()
Field namespublic java.lang.String getOwnFieldsAsString(java.lang.String delim)
delim - the separator item
Field names separated by the delim characterspublic java.util.Vector<java.lang.String> getFields()
Field namespublic java.lang.String getFieldsAsString(java.lang.String delim)
delim - the separator item
Field names separated by the delim characterspublic void addMethod(java.lang.String programName)
programName - the name of the Program to add as a Class methodProgrampublic void removeMethod(java.lang.String programName)
programName - the name of the Program to removepublic void updateMethods(java.util.Vector<java.lang.String> methods)
methods - list of Program's namespublic java.util.Vector<java.lang.String> getOwnMethods()
Program) namespublic java.lang.String getOwnMethodsAsString(java.lang.String delim)
delim - the separator item
Program) names separated by the delim characterspublic java.util.Vector<java.lang.String> getMethods()
Program) namespublic java.lang.String getMethodsAsString(java.lang.String delim)
delim - the separator item
Program) names separated by the delim characterspublic void setDefaultForm(java.lang.String defaultForm)
ObjectObjs of this Class type.
defaultForm - the default create/edit Formpublic java.lang.String getOwnDefaultForm()
Form to create/edit ObjectObjs of this Class type.
public java.lang.String getDefaultForm(boolean top)
Form to create/edit ObjectObjs of this Class type.
public void setTriggers(java.util.Vector<Trigger> triggers)
triggers - a vector of Triggers
public void addTrigger(Trigger trigger)
throws OberonException
trigger - the Trigger to add
OberonExceptionpublic void removeTrigger(Trigger trigger)
trigger - the Trigger to remove
public void updateTriggers(java.util.Vector<Trigger> triggers)
throws OberonException
triggers - list of Triggers
OberonExceptionpublic java.util.Vector<Trigger> getOwnTriggers()
Triggerspublic java.lang.String getOwnTriggersAsString(java.lang.String delim)
delim - the separator item
Triggers separated by the delim charactersTrigger.asString()public java.lang.String getOwnWorkflowAsString(java.lang.String delim)
delim - the separator item
Triggers separated by the delim charactersTrigger.asString()public java.util.Vector<Trigger> getTriggers()
Triggerspublic java.lang.String getTriggersAsString(java.lang.String delim)
delim - the separator item
Triggers separated by the delim charactersTrigger.asString()public java.lang.String getWorkflowAsString(java.lang.String delim)
delim - the separator item
Triggers separated by the delim charactersTrigger.asString()public Trigger getTriggerByEvent(java.lang.String event)
event - the event name as defined by the OOQL syntax ( example: edit.check )
Trigger or null if the event is not associated to a Triggerpublic Trigger getWorkflowByEvent(java.lang.String event)
event - the event name as defined by the OOQL syntax ( example: edit )
Trigger or null if the event is not associated to a Triggerpublic java.util.Vector<java.lang.String> getSubClasses(Framework framework)
framework - the current framework
public java.lang.String getSubClassesAsString(java.lang.String delim,
Framework framework)
delim - the separator itemframework - the current framework
public java.util.Vector<java.lang.String> getOwnSubClasses(Framework framework)
framework - the current framework
public java.lang.String getOwnSubClassesAsString(java.lang.String delim,
Framework framework)
delim - the separator itemframework - the current framework
public java.util.Vector<java.lang.String> getLifecycles(Framework framework)
framework - the current framework
Lifecycles names
public java.lang.String getLifecyclesAsString(java.lang.String delim,
Framework framework)
delim - the separator itemframework - the current framework
Lifecycles separated by the delim characterspublic java.util.Vector<java.lang.String> getLinkTypes(Framework framework)
framework - the current framework
LinkTypes names
public java.lang.String getLinkTypesAsString(java.lang.String delim,
Framework framework)
delim - the separator itemframework - the current framework
LinkTypes separated by the delim characterspublic java.util.Vector<java.lang.String> getAutoNumbers(Framework framework)
framework - the current framework
AutoNumbers names
public java.lang.String getAutoNumbersAsString(java.lang.String delim,
Framework framework)
delim - the separator itemframework - the current framework
AutoNumbers separated by the delim characters
public java.lang.String getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
getProperty in class OBBasepropertyName - OOQL property identifier/name (example: abstract , superclass ...)filterArgs - extra arguments used to compute propertiestoken - separator token for complex propertiesframework - the current framework
public java.util.Vector<?> getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
getTargetNames in class OBBasecomposedName - OOQL property identifier/name (example: field, superclass, program[create.action] .. )filterArgs - extra arguments used to compute propertiesframework - the current framework
public java.lang.String toString()
toString in class AdminBasepublic java.lang.String toString(Framework framework)
toString in class AdminBaseframework - the current frameworkpublic org.jdom.Element toXML(Framework framework)
toXML in class AdminBaseframework - the current framework
public org.jdom.Element toXML(boolean getImage,
boolean fullDump,
Framework framework)
toXML in class AdminBasegetImage - true to include "imagedata" element with the base64 encoded image datafullDump - true to include detailed informationframework - the current frameworkpublic void fromXML(org.jdom.Element rootElement)
fromXML in class AdminBasepublic java.lang.String getCreateCommand(boolean force)
getCreateCommand in class AdminBaseforce - if true append the "force" options at the endpublic java.lang.String getSaveCommand(boolean force)
getSaveCommand in class AdminBaseforce - if true append the "force" options at the end
public java.lang.String compareUpdate(Class refClass,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
throws OberonException
refClass - the reference Class objectcheckImage - if true compare also the image iconoverwrite - if true update the database object instanceforce - if true ignores optional propertiesframework - the current framework
OberonExceptionfromXML(Element)
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||