|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.OBBase com.oberon.ooql.sdk.AdminBase com.oberon.ooql.sdk.Feature
public class Feature
Feature Admin Object: defines a property for an administrative object or a link between two admin objects.
Field Summary | |
---|---|
boolean |
reverse
Invert the to side object with the from side object |
Fields inherited from class com.oberon.ooql.sdk.AdminBase |
---|
bsOptions, HIDDEN_OPTION |
Constructor Summary | |
---|---|
Feature()
|
|
Feature(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
asString(java.lang.String indent)
Return the Feature object properties as a formatted String |
static java.lang.String |
covertType(java.lang.String adminType)
Convert the administrative object type from OOQL format to class name format |
void |
create(boolean force,
Framework framework)
Create a new Feature object on the database |
void |
create(Framework framework)
Create a new Feature object on the database |
void |
destroy(Framework framework)
Remove the Feature object from the database |
boolean |
equals(Feature feature)
Compare this Feature with another |
void |
fromXML(org.jdom.Element rootElement)
Load the Command object properties from XML element tree |
java.lang.String |
getCreateCommand(boolean force)
Return the OOQL command to create this Feature object with the settled properties |
java.lang.String |
getFor()
Return the target administrative object name |
java.lang.String |
getForType(boolean lowerCase)
Return the target administrative object type |
java.lang.String |
getFrom()
Return the from side administrative object name |
int |
getFromId()
Return the from side administrative object internal ID |
java.lang.String |
getFromType(boolean lowerCase)
Return the from side administrative object type |
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 Feature object by its OOQL identifier |
java.lang.String |
getRemoveCommand()
Return the OOQL command to delete this Feature object |
java.lang.String |
getSaveCommand(boolean force)
Return the OOQL command to update this Feature object with the modified properties. |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
[inherited but NOT USED] |
java.lang.String |
getTo()
Return the to side administrative object name |
int |
getToId()
Return the to side administrative object internal ID |
java.lang.String |
getToType(boolean lowerCase)
Return the to side administrative object type |
java.lang.String |
getValue()
Get the Feature value |
static int |
indexOf(java.util.Vector<Feature> features,
Feature feature)
Search a Feature into a Vector of Features |
boolean |
isForSigleObject()
Return true when the Feature involves a single administrative object |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the Feature object: connect the memory instance with the database instance |
static Feature |
open(java.lang.String name,
java.lang.String fromType,
java.lang.String fromName,
java.lang.String toType,
java.lang.String toName,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the object and read its properties from the database or retrieve them from memory |
void |
setBetween(int fromID,
int toID)
Set the administrative objects linked with this Feature by their internal ID |
void |
setBetween(java.lang.String fromType,
java.lang.String fromName,
java.lang.String toType,
java.lang.String toName)
Set the administrative objects linked with this Feature |
void |
setFor(java.lang.String adminType,
java.lang.String adminName)
Set the target administrative object |
void |
setFrom(java.lang.String adminType,
java.lang.String adminName)
Set the from side administrative object linked with this Feature |
void |
setTo(java.lang.String adminType,
java.lang.String adminName)
Set the to side administrative object linked with this Feature |
void |
setValue(java.lang.String value)
Set the Feature value |
void |
show(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
Show the Feature object properties |
java.lang.String |
toString()
Return the Feature object properties as a single String |
java.lang.String |
toString(Framework framework)
Return the Feature object properties as a single String |
java.lang.String |
toString(java.lang.String indent)
Return the Feature object basic properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Feature object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Feature object properties as XML element tree |
void |
unlink(Framework framework)
Close the object: disconnect the memory instance from the database instance |
void |
write(boolean force,
Framework framework)
Update the Feature object to the database |
void |
write(Framework framework)
Update the Feature 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 boolean reverse
Constructor Detail |
---|
public Feature()
public Feature(java.lang.String name) throws OberonException
name
- the name of the administrative object
OberonException
- if the name contains invalid charactersMethod Detail |
---|
public static Feature open(java.lang.String name, java.lang.String fromType, java.lang.String fromName, java.lang.String toType, java.lang.String toName, Framework framework, java.util.Hashtable<java.lang.String,java.lang.Integer> counters) throws OberonException
name
- the Feature namefromType
- the from side administrative type (OOQL format)fromName
- the from side administrative object nametoType
- the to side administrative type (OOQL format)toName
- the to side administrative object nameframework
- the current frameworkcounters
- administrative object synch counters (if null read them from database)
OberonException
- usually due to DB SQL exceptionspublic void link(Framework framework, java.util.Hashtable<java.lang.String,java.lang.Integer> counters) throws OberonException
link
in class AdminBase
framework
- the current frameworkcounters
- administrative object synch counters (if null read them from database)
OberonException
- usually due to DB SQL exceptionspublic void create(Framework framework) throws OberonException
create
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic 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 rightspublic void write(Framework framework) throws OberonException
write
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic 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 rightspublic void show(Selector selector, java.io.DataOutputStream outStream, Framework framework) throws java.io.IOException, OberonException
show
in class AdminBase
selector
- selection parameters (if null return all the object properties)outStream
- the stream for the results (if null the result is stored into the framework)framework
- the current framework
java.io.IOException
- when the output stream return an exception
OberonException
- for all other problemsFramework.getResult()
public void unlink(Framework framework) throws OberonException
unlink
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptionspublic void destroy(Framework framework) throws OberonException
destroy
in class AdminBase
framework
- the current framework
OberonException
- usually due to DB SQL exceptions or to limited user access rightspublic boolean isForSigleObject()
public void setFor(java.lang.String adminType, java.lang.String adminName)
adminType
- the administrative type (OOQL format)adminName
- the administrative object namepublic java.lang.String getFor()
public java.lang.String getForType(boolean lowerCase)
lowerCase
- true to convert as lowercasepublic void setBetween(java.lang.String fromType, java.lang.String fromName, java.lang.String toType, java.lang.String toName)
fromType
- the from side administrative type (OOQL format)fromName
- the from side administrative object nametoType
- the to side administrative type (OOQL format)toName
- the to side administrative object namepublic void setBetween(int fromID, int toID)
fromID
- the from side administrative object internal IDtoID
- the to side administrative object internal IDpublic void setFrom(java.lang.String adminType, java.lang.String adminName)
adminType
- the administrative type (OOQL format)adminName
- the administrative object namepublic void setTo(java.lang.String adminType, java.lang.String adminName)
adminType
- the administrative type (OOQL format)adminName
- the administrative object namepublic java.lang.String getFrom()
public java.lang.String getFromType(boolean lowerCase)
lowerCase
- true to convert as lowercasepublic int getFromId()
public java.lang.String getTo()
public java.lang.String getToType(boolean lowerCase)
lowerCase
- true to convert as lowercasepublic int getToId()
public void setValue(java.lang.String value)
public java.lang.String getValue()
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 OBBase
propertyName
- OOQL property identifier/name (example: value , to.name ...)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 OBBase
public static java.lang.String covertType(java.lang.String adminType)
public boolean equals(Feature feature)
public static int indexOf(java.util.Vector<Feature> features, Feature feature)
equals(Feature)
comparison criteriapublic java.lang.String toString(java.lang.String indent)
indent
- indentation stringpublic java.lang.String asString(java.lang.String indent)
indent
- indentation string
public java.lang.String toString(Framework framework)
toString
in class AdminBase
framework
- the current frameworkpublic java.lang.String toString()
toString
in class AdminBase
public org.jdom.Element toXML(Framework framework)
toXML
in class AdminBase
framework
- the current frameworkpublic org.jdom.Element toXML(boolean getImage, boolean fullDump, Framework framework)
toXML
in class AdminBase
getImage
- true to include "imagedata" element with the base64 encoded image datafullDump
- true to include detailed informationframework
- the current frameworktoXML(Framework)
public void fromXML(org.jdom.Element rootElement)
fromXML
in class AdminBase
public java.lang.String getCreateCommand(boolean force)
getCreateCommand
in class AdminBase
force
- if true append the "force" options at the endpublic java.lang.String getSaveCommand(boolean force)
getSaveCommand
in class AdminBase
force
- if true append the "force" options at the endpublic java.lang.String getRemoveCommand()
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |