|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This UsesOccurrence
identifies a unique instance of an OccurrenceableLink
in order to deal with:
UsesOccurrenceData
off of linksUsesOccurrences
that define a PathOccurrence
The usesOccurrenceIdentifier
is used to link to the PathOccurrence
;
the usesOccurrenceIdentifier
is generated when a brand new
UsesOccurrence
is created and then it is preserved when
new copies are made in response to an OccurrenceableLink
being copied forward.
You must use one of the OccurrenceService.saveUsesOccurrenceAndData(wt.occurrence.UsesOccurrence, java.util.Vector)
methods when saving a UsesOccurrence
because of a special
optimization that allows UsesOccurrenceData
to be managed more
efficiently.
Supported API: true
Extendable: true
Field Summary | |
static String |
CONTEXT
Label for the attribute. |
static String |
CONTEXT_REFERENCE
Label for the attribute. |
static String |
LINK
Label for the attribute. |
static String |
LINK_REFERENCE
Label for the attribute. |
static String |
PATH_OCCURRENCE
Label for the attribute; This non-persistent PathOccurrence can
be populated to hold the value that applies in a particular situation. |
static String |
USES_NAME
Label for the attribute; This alias for the name attribute
is useful in some cases by introspection so that the name of a UsesOccurrence
is distinct from the name of other Occurrences . |
static String |
USES_OCCURRENCE_DATA_IDENTIFIER
Label for the attribute; This identifier is used to improve efficiency so that many UsesOccurrenceData objects can have the same foreign
key link to this UsesOccurrence and several UsesOccurrence
objects can also share this same identifier, but only if all of their
associated UsesOccurrenceData objects are the same. |
static String |
USES_OCCURRENCE_IDENTIFIER
Label for the attribute; This identifier is shared by many OccurrenceableLink
objects, all of which represent the same link, except maybe for different
iterations or versions of objects being linked. |
Fields inherited from interface wt.occurrence.Occurrence |
NAME, OCCURRENCE_DATA_VECTOR |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Method Summary | |
UsesOccurrenceContext |
getContext()
Gets the object for the association that plays role: CONTEXT. |
ObjectReference |
getContextReference()
Gets the value of the attribute: CONTEXT_REFERENCE. |
OccurrenceableLink |
getLink()
Gets the object for the association that plays role: LINK. |
ObjectReference |
getLinkReference()
Gets the value of the attribute: LINK_REFERENCE. |
PathOccurrence |
getPathOccurrence()
Gets the value of the attribute: PATH_OCCURRENCE. |
String |
getUsesName()
Gets the value of the attribute: USES_NAME. |
long |
getUsesOccurrenceDataIdentifier()
Gets the value of the attribute: USES_OCCURRENCE_DATA_IDENTIFIER. |
long |
getUsesOccurrenceIdentifier()
Gets the value of the attribute: USES_OCCURRENCE_IDENTIFIER. |
boolean |
isPlaceholder()
Returns true if the UsesOccurrence is only used to complete
a PathOccurrence and has no other useful information associated
with it. |
void |
setContext(UsesOccurrenceContext a_Context)
Sets the object for the association that plays role: CONTEXT. |
void |
setContextReference(ObjectReference a_ContextReference)
Sets the value of the attribute: CONTEXT_REFERENCE. |
void |
setLink(OccurrenceableLink a_Link)
Sets the object for the association that plays role: LINK. |
void |
setLinkReference(ObjectReference a_LinkReference)
Sets the value of the attribute: LINK_REFERENCE. |
void |
setPathOccurrence(PathOccurrence a_PathOccurrence)
Sets the value of the attribute: PATH_OCCURRENCE. |
void |
setUsesName(String a_UsesName)
Sets the value of the attribute: USES_NAME. |
void |
setUsesOccurrenceDataIdentifier(long a_UsesOccurrenceDataIdentifier)
Sets the value of the attribute: USES_OCCURRENCE_DATA_IDENTIFIER. |
void |
setUsesOccurrenceIdentifier(long a_UsesOccurrenceIdentifier)
Sets the value of the attribute: USES_OCCURRENCE_IDENTIFIER. |
Methods inherited from interface wt.occurrence.Occurrence |
getName, getOccurrenceDataVector, setName, setOccurrenceDataVector |
Methods inherited from interface wt.fc.Persistable |
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.ObjectMappable |
readExternal, writeExternal |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo, getConceptualClassname |
Field Detail |
public static final String USES_OCCURRENCE_DATA_IDENTIFIER
UsesOccurrenceData
objects can have the same foreign
key link to this UsesOccurrence
and several UsesOccurrence
objects can also share this same identifier, but only if all of their
associated UsesOccurrenceData objects are the same. If several
UsesOccurrence
s share the same UsesOccurrenceData
objects and one wants to change it (without affecting the others), then
it must get a new identifier for itself and make copies of all of its
OccurrenceData
objects and link to those new copies by putting
its new identifier into them as a foreign key. Finally it can change
this new set of data as desired without affecting other UsesOccurrence
s.
Because of the complex management of this attribute it is necessary
to call one of the OccurrenceService.saveUsesOccurrenceAndData(wt.occurrence.UsesOccurrence, java.util.Vector)
methods when saving a UsesOccurrence
(and optionally its associated
UsesOccurenceData
.
public static final String USES_OCCURRENCE_IDENTIFIER
OccurrenceableLink
objects, all of which represent the same link, except maybe for different
iterations or versions of objects being linked. In other words, when
the OccurrenceableLink
is copied forward this identifier
is copied without changing its value.
public static final String PATH_OCCURRENCE
PathOccurrence
can
be populated to hold the value that applies in a particular situation.
public static final String USES_NAME
name
attribute
is useful in some cases by introspection so that the name of a UsesOccurrence
is distinct from the name of other Occurrences
.
public static final String LINK
public static final String LINK_REFERENCE
public static final String CONTEXT
public static final String CONTEXT_REFERENCE
Method Detail |
public long getUsesOccurrenceDataIdentifier()
UsesOccurrenceData
objects can have the same foreign key link to
this UsesOccurrence
and several UsesOccurrence
objects can also share this same identifier, but only if all of
their associated UsesOccurrenceData objects are the same. If
several UsesOccurrence
s share the same UsesOccurrenceData
objects and one wants to change it (without affecting the others),
then it must get a new identifier for itself and make copies of all
of its OccurrenceData
objects and link to those new copies
by putting its new identifier into them as a foreign key. Finally
it can change this new set of data as desired without affecting other
UsesOccurrence
s. Because of the complex management of
this attribute it is necessary to call one of the OccurrenceService.saveUsesOccurrenceAndData(wt.occurrence.UsesOccurrence, java.util.Vector)
methods when saving a UsesOccurrence
(and optionally its associated
UsesOccurenceData
.
public void setUsesOccurrenceDataIdentifier(long a_UsesOccurrenceDataIdentifier) throws WTPropertyVetoException
UsesOccurrenceData
objects can have the same foreign key link to
this UsesOccurrence
and several UsesOccurrence
objects can also share this same identifier, but only if all of
their associated UsesOccurrenceData objects are the same. If
several UsesOccurrence
s share the same UsesOccurrenceData
objects and one wants to change it (without affecting the others),
then it must get a new identifier for itself and make copies of all
of its OccurrenceData
objects and link to those new copies
by putting its new identifier into them as a foreign key. Finally
it can change this new set of data as desired without affecting other
UsesOccurrence
s. Because of the complex management of
this attribute it is necessary to call one of the OccurrenceService.saveUsesOccurrenceAndData(wt.occurrence.UsesOccurrence, java.util.Vector)
methods when saving a UsesOccurrence
(and optionally its associated
UsesOccurenceData
.
a_UsesOccurrenceDataIdentifier
-
WTPropertyVetoException
public long getUsesOccurrenceIdentifier()
OccurrenceableLink
objects,
all of which represent the same link, except maybe for different iterations
or versions of objects being linked. In other words, when the OccurrenceableLink
is copied forward this identifier is copied without changing
its value.
public void setUsesOccurrenceIdentifier(long a_UsesOccurrenceIdentifier) throws WTPropertyVetoException
OccurrenceableLink
objects,
all of which represent the same link, except maybe for different iterations
or versions of objects being linked. In other words, when the OccurrenceableLink
is copied forward this identifier is copied without changing
its value.
a_UsesOccurrenceIdentifier
-
WTPropertyVetoException
public PathOccurrence getPathOccurrence()
PathOccurrence
can be populated to hold
the value that applies in a particular situation.
public void setPathOccurrence(PathOccurrence a_PathOccurrence)
PathOccurrence
can be populated to hold
the value that applies in a particular situation.
a_PathOccurrence
- public String getUsesName()
name
attribute is useful in some cases
by introspection so that the name of a UsesOccurrence
is distinct from the name of other Occurrences
.
public void setUsesName(String a_UsesName) throws WTPropertyVetoException
name
attribute is useful in some cases
by introspection so that the name of a UsesOccurrence
is distinct from the name of other Occurrences
.
a_UsesName
-
WTPropertyVetoException
public OccurrenceableLink getLink()
public void setLink(OccurrenceableLink a_Link) throws WTPropertyVetoException, WTException
a_Link
-
WTPropertyVetoException
WTException
public ObjectReference getLinkReference()
public void setLinkReference(ObjectReference a_LinkReference) throws WTPropertyVetoException
a_LinkReference
-
WTPropertyVetoException
public UsesOccurrenceContext getContext()
public void setContext(UsesOccurrenceContext a_Context) throws WTPropertyVetoException, WTException
a_Context
-
WTPropertyVetoException
WTException
public ObjectReference getContextReference()
public void setContextReference(ObjectReference a_ContextReference) throws WTPropertyVetoException
a_ContextReference
-
WTPropertyVetoException
public boolean isPlaceholder()
UsesOccurrence
is only used to complete
a PathOccurrence
and has no other useful information associated
with it.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |