|
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.ObjectBase
com.oberon.ooql.sdk.Link
public class Link
Link between two OBEROn ObjectObj instances.
| Field Summary | |
|---|---|
static int |
HIDDEN
The hidden flag |
static int |
INACTIVE
The inactive flag |
| Fields inherited from class com.oberon.ooql.sdk.ObjectBase |
|---|
bHasAccess, bsOptions, HIST_ADDLINK, HIST_CHANGECLASS, HIST_CHANGEHOLDER, HIST_CHANGELIFECYCLE, HIST_CHANGENAME, HIST_CHANGESPACE, HIST_CHANGETYPE, HIST_CLONE, HIST_CREATE, HIST_CUSTOM, HIST_DELEGATE, HIST_EDIT, HIST_FILEDELETE, HIST_FILEGET, HIST_FILELOCK, HIST_FILEPUT, HIST_FILERENAME, HIST_FILEUNLOCK, HIST_IGNORE, HIST_Length, HIST_LOCK, HIST_PROGRESS, HIST_REFUSE, HIST_REGRESS, HIST_REMOVELINK, HIST_REVISE, HIST_REVOKE, HIST_SETSTAGE, HIST_UNDO, HIST_UNLOCK, HIST_VALIDATE, LINK_HIST, OBJ_HIST |
| Constructor Summary | |
|---|---|
Link()
|
|
Link(boolean imported)
|
|
Link(java.lang.String linkID)
|
|
| Method Summary | |
|---|---|
java.lang.String |
accessToString(Framework framework)
Get the list of framework User accesses for this Link (as String) |
java.lang.String |
accessToString(java.lang.String userName,
Framework framework)
Get the list of User accesses for this Link (as String) |
void |
clone(Framework framework)
Create the new Link on the database (connect two ObjectObj instances) cloning it from this Link |
void |
create(boolean bidirectional,
Framework framework)
Create the new Link on the database (connect two ObjectObj instances) |
void |
create(Framework framework)
Create the new Link on the database (connect two ObjectObj instances) |
void |
destroy(Framework framework)
Remove the Link from the database. |
void |
fromXML(org.jdom.Element rootElement)
Load the Link properties from XML element tree |
int |
getAltId()
Get the internal alternative ID [INTERNAL USAGE] |
java.lang.String |
getCreateCommand(boolean bidirectional)
Return the OOQL command to create this ObjectObj with the settled properties |
java.lang.String |
getDescription()
Get the description |
java.lang.String |
getFieldValue(java.lang.String fieldName,
Framework framework)
Get a Link's Field value directly from DB |
ObjectObj |
getFrom()
Return the From side ObjectObj |
java.lang.String |
getFromClassName()
Return the From side ObjectObj's Class name |
java.lang.String |
getFromHolder()
Return the From side ObjectObj's holder |
java.lang.String |
getFromId()
Return the From side ObjectObj's id |
java.lang.String |
getFromLifeCycle()
Return the From side ObjectObj's Lifecycle (name) |
java.lang.String |
getFromName()
Return the From side ObjectObj's name |
java.lang.String |
getFromRevision()
Return the From side ObjectObj's revision |
java.lang.String |
getFromStage()
Return the From side ObjectObj's Stage |
java.lang.String |
getLinkId()
Deprecated. |
java.lang.String |
getLinkType()
Return the Link LinkType name |
LinkType |
getLinkType(Framework framework)
Get the Link's LinkType LinkType |
java.lang.String |
getName()
Link name is always empty |
java.lang.String |
getOldLinkType()
Return the original Link LinkType when a change is made |
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 Link object by its OOQL identifier |
java.lang.String |
getSaveCommand()
Return the OOQL command to update this Link with the modified properties. |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Return a Vector of target names extracted by using an OOQL selector |
ObjectObj |
getTo()
Return the To side ObjectObj |
java.lang.String |
getToClassName()
Return the To side ObjectObj's Class name |
java.lang.String |
getToHolder()
Return the To side ObjectObj's holder |
java.lang.String |
getToId()
Return the To side ObjectObj's id |
java.lang.String |
getToLifeCycle()
Return the To side ObjectObj's Lifecycle (name) |
java.lang.String |
getToName()
Return the To side ObjectObj's name |
java.lang.String |
getToRevision()
Return the To side ObjectObj's revision |
java.lang.String |
getToStage()
Return the To side ObjectObj's Stage |
org.jdom.Element |
getXMLFields(Framework framework)
Return the Link Field values as XML element tree |
org.jdom.Element |
getXMLFromObject(Framework framework)
Return the Link from object as XML element tree |
org.jdom.Element |
getXMLToObject(Framework framework)
Return the Link to object as XML element tree |
boolean |
isActive()
Check if the Link is active |
boolean |
isHidden()
Check if the Link is hidden |
boolean |
isImported()
Check if the Link data are imported from Dump file |
void |
link(boolean fullLoad,
Framework framework)
Open the Link and read its properties from the database |
void |
link(Framework framework)
Open the Link and read all properties from the database |
static Link |
open(java.lang.String linkID,
boolean fullLoad,
Framework framework)
Open a Link and read its properties from the database |
static Link |
open(java.lang.String linkID,
Framework framework)
Open a Link and read all properties from the database |
void |
resetHistory()
Force reload the Link History from DB |
void |
setActive(boolean active)
Set the Link active flag |
void |
setAltId(int linkId)
Set the internal alternative ID [INTERNAL USAGE] |
void |
setDescription(java.lang.String description)
Set the description |
void |
setFrom(ObjectObj object)
Define the From side ObjectObj |
void |
setFrom(java.lang.String className,
java.lang.String name,
java.lang.String revision)
Define the From side ObjectObj using the Class name / name / revision |
void |
setFromId(java.lang.String objectID)
Define the From side ObjectObj using its id |
void |
setHidden(boolean hidden)
Set the Link hidden flag |
void |
setLinkType(LinkType linktype)
Set the Link's LinkType [INTERNAL USAGE] |
void |
setLinkType(java.lang.String linkTypeName)
Set the Link LinkType |
void |
setTo(ObjectObj object)
Define the To side ObjectObj |
void |
setTo(java.lang.String className,
java.lang.String name,
java.lang.String revision)
Define the To side ObjectObj using the Class name / name / revision |
void |
setToId(java.lang.String objectID)
Define the To side ObjectObj using its id |
void |
show(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
Show the Link properties |
void |
show(Selector selector,
Framework framework)
Show the Link properties |
java.lang.String |
toString()
Return the Link basic properties as String |
java.lang.String |
toString(Framework framework)
Return the Link properties as a single String |
org.jdom.Element |
toXML(boolean getHistory,
Framework framework)
Return the Link properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Link properties as XML element tree |
void |
undo(Framework framework)
Undo the last changes on field values |
void |
undo(int iterNum,
Framework framework)
Undo the changes on field values, till the specific number of iteration |
void |
unlink(Framework framework)
Close the Link: disconnect the memory instance from the database instance |
void |
write(Framework framework)
Update the Link 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 HIDDEN
public static final int INACTIVE
| Constructor Detail |
|---|
public Link()
public Link(boolean imported)
imported - true if the Link data are imported from Dump file [INTERNAL USAGE]public Link(java.lang.String linkID)
linkID - the Link ID| Method Detail |
|---|
public static Link open(java.lang.String linkID,
Framework framework)
throws OberonException
linkID - the Link IDframework - the current framework
OberonException - usually due to DB SQL exceptions
public static Link open(java.lang.String linkID,
boolean fullLoad,
Framework framework)
throws OberonException
linkID - the Link IDfullLoad - if false skips the Field valuesframework - the current framework
OberonException - usually due to DB SQL exceptions
public void link(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions
public void link(boolean fullLoad,
Framework framework)
throws OberonException
fullLoad - if false skips the Field valuesframework - the current framework
OberonException - usually due to DB SQL exceptions
public void create(Framework framework)
throws OberonException
ObjectObj instances)
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void create(boolean bidirectional,
Framework framework)
throws OberonException
ObjectObj instances)
bidirectional - if true create two links for both from and to versusframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void clone(Framework framework)
throws OberonException
ObjectObj instances) cloning it from this Link
framework - the current framework
The LinkType will be the same;
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void write(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void undo(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void undo(int iterNum,
Framework framework)
throws OberonException
iterNum - the iteration numberframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void unlink(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions or trigger exceptions
public void destroy(Framework framework)
throws OberonException
ObjectObj instances)
framework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights or trigger exceptions
public void show(Selector selector,
Framework framework)
throws java.io.IOException,
OberonException
selector - selection parameters (if null return all the link properties)framework - the current framework
java.io.IOException
OberonExceptionFramework.getResult()
public void show(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
throws java.io.IOException,
OberonException
show in class ObjectBaseselector - 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 java.lang.String getName()
getName in class OBBasepublic void setAltId(int linkId)
public int getAltId()
public boolean isImported()
Dump file
@Deprecated public java.lang.String getLinkId()
public void setFrom(ObjectObj object)
throws OberonException
ObjectObj
object - the From side object
OberonException
public void setFrom(java.lang.String className,
java.lang.String name,
java.lang.String revision)
throws OberonException
ObjectObj using the Class name / name / revision
className - the ObjectObj's Class namename - the ObjectObj's namerevision - the ObjectObj's revision
OberonExceptionpublic void setFromId(java.lang.String objectID)
ObjectObj using its id
objectID - the ObjectObj's IDpublic ObjectObj getFrom()
ObjectObj
public java.lang.String getFromClassName()
ObjectObj's Class name
public java.lang.String getFromName()
ObjectObj's name
public java.lang.String getFromRevision()
ObjectObj's revision
public java.lang.String getFromId()
ObjectObj's id
public java.lang.String getFromHolder()
ObjectObj's holder
public java.lang.String getFromLifeCycle()
ObjectObj's Lifecycle (name)
public java.lang.String getFromStage()
ObjectObj's Stage
public void setTo(ObjectObj object)
throws OberonException
ObjectObj
object - the To side object
OberonException
public void setTo(java.lang.String className,
java.lang.String name,
java.lang.String revision)
throws OberonException
ObjectObj using the Class name / name / revision
className - the ObjectObj's Class namename - the ObjectObj's namerevision - the ObjectObj's revision
OberonExceptionpublic void setToId(java.lang.String objectID)
ObjectObj using its id
objectID - the ObjectObj's IDpublic ObjectObj getTo()
ObjectObj
public java.lang.String getToClassName()
ObjectObj's Class name
public java.lang.String getToName()
ObjectObj's name
public java.lang.String getToRevision()
ObjectObj's revision
public java.lang.String getToId()
ObjectObj's id
public java.lang.String getToHolder()
ObjectObj's holder
public java.lang.String getToLifeCycle()
ObjectObj's Lifecycle (name)
public java.lang.String getToStage()
ObjectObj's Stage
public void setLinkType(java.lang.String linkTypeName)
linkTypeName - the LinkType namepublic java.lang.String getOldLinkType()
public java.lang.String getLinkType()
LinkType name
public void setLinkType(LinkType linktype)
LinkType [INTERNAL USAGE]
public LinkType getLinkType(Framework framework)
throws OberonException
LinkType
framework - the current framework
OberonExceptionpublic void setHidden(boolean hidden)
public boolean isHidden()
public void setActive(boolean active)
public boolean isActive()
public java.lang.String getFieldValue(java.lang.String fieldName,
Framework framework)
throws java.sql.SQLException,
OberonException
Field value directly from DB
getFieldValue in class ObjectBasefieldName - the Field nameframework - the current framework
java.sql.SQLException
OberonExceptionpublic void setDescription(java.lang.String description)
ObjectBase
setDescription in class ObjectBasepublic java.lang.String getDescription()
ObjectBase
getDescription in class ObjectBase
public java.lang.String accessToString(Framework framework)
throws OberonException
framework - the current framework
OberonExceptionLinkType.hasAccess(int, Link, Framework)
public java.lang.String accessToString(java.lang.String userName,
Framework framework)
throws OberonException
userName - name of user to get the accessframework - the current framework
OberonExceptionLinkType.hasAccess(int, Link, String, Framework)public void resetHistory()
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: linktype , from.id ...)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, from, .. )filterArgs - extra arguments used to compute propertiesframework - the current framework
public org.jdom.Element getXMLFields(Framework framework)
Field values as XML element tree
framework - the current frameworkpublic org.jdom.Element getXMLFromObject(Framework framework)
framework - the current frameworkpublic org.jdom.Element getXMLToObject(Framework framework)
framework - the current frameworkpublic org.jdom.Element toXML(Framework framework)
framework - the current framework
public org.jdom.Element toXML(boolean getHistory,
Framework framework)
getHistory - true to include the history tableframework - the current frameworkpublic void fromXML(org.jdom.Element rootElement)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(Framework framework)
framework - the current frameworkpublic java.lang.String getCreateCommand(boolean bidirectional)
public java.lang.String getSaveCommand()
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||