|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.services.StandardManager
wt.occurrence.StandardOccurrenceService
public class StandardOccurrenceService
This implementation of OccurrenceService implements the service
API, send OccurrenceEvents and adds listeners in performStartupProcess().
Use the newStandardOccurrenceService static factory method(s),
not the StandardOccurrenceService constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: true
| Method Summary | |
|---|---|
CombinedPathOccurrenceData |
deleteCombinedPathOccurrenceData(CombinedPathOccurrenceData combinedPathOccurrenceData)
This method should always be used to delete a CombinedPathOccurrenceData. |
PathOccurrenceData |
deletePathOccurrenceData(PathOccurrenceData pathOccurrenceData)
This method should always be used to delete a PathOccurrenceData. |
CombinedPathOccurrence |
getCombinedPathOccurrence(PathOccurrence parentOccurrence,
PathParentableOccurrence childOccurrence)
Returns a CombinedPathOccurrence with the given parent PathOccurrence and child PathParentableOccurrence. |
QueryResult |
getCombinedPathOccurrenceData(CombinedPathOccurrence occurrence,
PathOccurrenceContext context,
Class target)
Returns an array of CombinedPathOccurrenceData objects of
the given Class that are associated with the given CombinedPathOccurrence and PathOccurrenceContext. |
QueryResult |
getCombinedPathOccurrenceData(CombinedPathOccurrence occurrence,
PathOccurrenceContext context,
Vector targets)
Returns an array of CombinedPathOccurrenceData objects of
any of the Classes in the targets Vector
associated with the given CombinedPathOccurrence and PathOccurrenceContext. |
QueryResult |
getCombinedPathOccurrenceData(PathOccurrenceContext context)
Returns an array of CombinedPathOccurrenceData objects associated
with the given PathOccurrenceContext. |
QueryResult |
getCombinedPathOccurrences(PathOccurrenceMasterContext context)
Returns a QueryResult of CombinedPathOccurrences
having the given context. |
QueryResult |
getCombinedPathOccurrencesForChild(PathParentableOccurrence childPathOccurrence)
Returns a QueryResult of CombinedPathOccurrences
where the given PathOccurrence plays the 'child' role. |
QueryResult |
getCombinedPathOccurrencesForParent(PathOccurrence parentPathOccurrence)
Returns a QueryResult of CombinedPathOccurrences
where the given PathOccurrence plays the 'parent' role. |
QueryResult |
getOccurrences(Vector occurrenceableLinks)
Returns a QueryResult of arrays where each array has
one of the given OccurrenceableLinks in position 0, an associated
UsesOccurrence in position 1 and an associated PathOccurrence
(that has no subPath) in position 2; the PathOccurrence
could be null. |
QueryResult |
getOccurrences(Vector occurrenceableLinks,
PathOccurrence subPathOccurrence)
Returns a QueryResult of arrays where each array has
one of the given OccurrenceableLink in position 0, an associated
UsesOccurrence in position 1 and an associated PathOccurrence
(having the given subPath) in position 2; the PathOccurrence
could be null. |
QueryResult |
getPathOccurrenceData(PathOccurrenceContext context)
Returns an array of PathOccurrenceData objects associated
with the given PathOccurrenceContext. |
QueryResult |
getPathOccurrenceData(PathOccurrence occurrence,
PathOccurrenceContext context,
Class target)
Returns an array of PathOccurrenceData objects associated
with the given PathOccurrence and PathOccurrenceContext. |
QueryResult |
getPathOccurrenceData(PathOccurrence occurrence,
PathOccurrenceContext context,
Vector targets)
Returns an array of PathOccurrenceData objects associated
with the given PathOccurrence and PathOccurrenceContext. |
Persistable[][][] |
getPathOccurrenceDataPopulatedUsages(Persistable[][][] usages,
PathOccurrenceContext occurrenceContext,
Class occurrenceDataClass)
Updates the PathOccurrences in the usages array
by adding PathOccurrenceData of the specified type for the
specified PathOccurrenceContext. |
Persistable[][][] |
getPathOccurrencePopulatedUsages(Persistable[][][] usages,
List pathOccurrences)
Updates the OccurrenceableLinks in the usages
array by setting their usesOccurrenceVector with UsesOccurrences and setting PathOccurrences on the UsesOccurrences. |
QueryResult |
getPathOccurrences(PathOccurrenceMasterContext context)
Returns a QueryResult of PathOccurrences having
the given context. |
QueryResult |
getPathOccurrences(UsesOccurrence uses)
Returns a QueryResult PathOccurrences related
to the given UsesOccurrence. |
Vector |
getPopulatedOccurrenceableLinks(Vector occurrenceableLinks)
Returns a Vector of OccurrenceableLinks with
their usesOccurrenceVector populated with their UsesOccurrences; note that the UsesOccurrences also
have their pathOccurrence populated. |
Vector |
getPopulatedOccurrenceableLinks(Vector occurrenceableLinks,
PathOccurrence subPathOccurrence)
Returns a Vector of OccurrenceableLinks with
their usesOccurrenceVector populated with their UsesOccurrences; note that the UsesOccurrences also
have their pathOccurrence populated. |
QueryResult |
getUsesOccurrenceData(UsesOccurrence occurrence)
Deprecated. |
QueryResult |
getUsesOccurrenceData(UsesOccurrence occurrence,
Vector classes)
Returns an array of UsesOccurrenceData objects of the given
classes and associated with the given UsesOccurrence object. |
WTKeyedMap |
getUsesOccurrenceData(WTCollection occs)
Takes a WTCollection of UsesOccurrence objects and returns a WTKeyedMap where the keys are the UsesOccurrences passed in and the values are WTCollections of the UsesOccurrenceData that correspond to the keys. |
QueryResult |
getUsesOccurrences(OccurrenceableLink link)
Returns a QueryResult of UsesOccurrence objects. |
QueryResult |
getUsesOccurrences(PathOccurrence path)
Returns the UsesOccurrences associated with the given PathOccurrence. |
QueryResult |
getUsesOccurrences(UsesOccurrenceContext context)
Returns a QueryResult of UsesOccurrence objects
having the given context. |
QueryResult |
getUsesOccurrences(Vector occurrenceableLinks)
Returns a QueryResult of arrays where each array has
an OccurrenceableLink in position 0 and a UsesOccurrence
in position 1. |
WTKeyedMap |
getUsesOccurrences(WTCollection links)
Returns a WTKeyedMap where the keys are the input collection
of OccurrenceableLinks and the values are WTCollections of the corresponding
UsesOccurrence objects. |
CombinedPathOccurrenceData |
saveCombinedPathOccurrenceData(CombinedPathOccurrenceData combinedPathOccurrenceData)
This method should always be used to insert or store a CombinedPathOccurrenceData. |
PathOccurrenceData |
savePathOccurrenceData(PathOccurrenceData pathOccurrenceData)
This method should always be used to insert or store a . |
QueryResult |
saveUsesOccurrenceAndData(UsesOccurrence occurrence,
Vector occurrenceData)
Deprecated. |
QueryResult |
saveUsesOccurrenceAndData(UsesOccurrence occurrence,
Vector occurrenceData,
Vector occurrenceDataToDelete)
Deprecated. |
WTCollection |
saveUsesOccurrenceAndData(WTKeyedMap occDataMap)
This method should always be used to insert or store an Occurrence
and/or OccurrenceData objects since they need special identifiers
that must be obtained in a special way. |
WTCollection |
saveUsesOccurrenceAndData(WTKeyedMap occDataMap,
WTKeyedMap occDataToDeleteMap)
This method should always be used to insert or store an Occurrence
and/or OccurrenceData objects since they need special identifiers
that must be obtained in a special way. |
| Methods inherited from class wt.services.StandardManager |
|---|
getManagerService, getManagerStatus, getName, getStartupType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public CombinedPathOccurrenceData deleteCombinedPathOccurrenceData(CombinedPathOccurrenceData combinedPathOccurrenceData)
throws WTException
CombinedPathOccurrenceData.
deleteCombinedPathOccurrenceData in interface OccurrenceServicecombinedPathOccurrenceData -
WTException
public PathOccurrenceData deletePathOccurrenceData(PathOccurrenceData pathOccurrenceData)
throws WTException
PathOccurrenceData.
deletePathOccurrenceData in interface OccurrenceServicepathOccurrenceData -
WTException
public QueryResult getCombinedPathOccurrenceData(CombinedPathOccurrence occurrence,
PathOccurrenceContext context,
Class target)
throws WTException
CombinedPathOccurrenceData objects of
the given Class that are associated with the given CombinedPathOccurrence and PathOccurrenceContext.
getCombinedPathOccurrenceData in interface OccurrenceServiceoccurrence - context - target -
WTException
public QueryResult getCombinedPathOccurrenceData(CombinedPathOccurrence occurrence,
PathOccurrenceContext context,
Vector targets)
throws WTException
CombinedPathOccurrenceData objects of
any of the Classes in the targets Vector
associated with the given CombinedPathOccurrence and PathOccurrenceContext.
getCombinedPathOccurrenceData in interface OccurrenceServiceoccurrence - context - targets -
WTException
public QueryResult getCombinedPathOccurrenceData(PathOccurrenceContext context)
throws WTException
CombinedPathOccurrenceData objects associated
with the given PathOccurrenceContext.
getCombinedPathOccurrenceData in interface OccurrenceServicecontext -
WTException
public CombinedPathOccurrence getCombinedPathOccurrence(PathOccurrence parentOccurrence,
PathParentableOccurrence childOccurrence)
throws WTException
CombinedPathOccurrence with the given parent PathOccurrence and child PathParentableOccurrence.
getCombinedPathOccurrence in interface OccurrenceServiceparentOccurrence - childOccurrence - This Vector of OccurrenceableLinks should be used to find the associated UsesOccurrence objects.
WTException
public QueryResult getCombinedPathOccurrences(PathOccurrenceMasterContext context)
throws WTException
QueryResult of CombinedPathOccurrences
having the given context.
getCombinedPathOccurrences in interface OccurrenceServicecontext - This Vector of OccurrenceableLinks should be used to find the associated UsesOccurrence objects.
WTException
public QueryResult getCombinedPathOccurrencesForChild(PathParentableOccurrence childPathOccurrence)
throws WTException
QueryResult of CombinedPathOccurrences
where the given PathOccurrence plays the 'child' role.
getCombinedPathOccurrencesForChild in interface OccurrenceServicechildPathOccurrence - This Vector of OccurrenceableLinks should be used to find the associated UsesOccurrence objects.
WTException
public QueryResult getCombinedPathOccurrencesForParent(PathOccurrence parentPathOccurrence)
throws WTException
QueryResult of CombinedPathOccurrences
where the given PathOccurrence plays the 'parent' role.
getCombinedPathOccurrencesForParent in interface OccurrenceServiceparentPathOccurrence - This Vector of OccurrenceableLinks should be used to find the associated UsesOccurrence objects.
WTException
public QueryResult getOccurrences(Vector occurrenceableLinks)
throws WTException
QueryResult of arrays where each array has
one of the given OccurrenceableLinks in position 0, an associated
UsesOccurrence in position 1 and an associated PathOccurrence
(that has no subPath) in position 2; the PathOccurrence
could be null.
If there is no UsesOccurrence, then no QueryResult
entry is returned.
Supported API: true
getOccurrences in interface OccurrenceServiceoccurrenceableLinks - This Vector of OccurrenceableLinks should be used to find the associated UsesOccurrence objects.
WTException
public QueryResult getOccurrences(Vector occurrenceableLinks,
PathOccurrence subPathOccurrence)
throws WTException
QueryResult of arrays where each array has
one of the given OccurrenceableLink in position 0, an associated
UsesOccurrence in position 1 and an associated PathOccurrence
(having the given subPath) in position 2; the PathOccurrence
could be null.
If there is no UsesOccurrence, then no QueryResult
entry is returned.
Supported API: true
getOccurrences in interface OccurrenceServiceoccurrenceableLinks - This Vector of OccurrenceableLinks should be used to find the associated UsesOccurrence objects.subPathOccurrence - This Vector of PathOccurrences should be used to find the associated PathOccurrence objects which play the superPath role. In other words we want to find the PathOccurrence objects that are one UsesOccurrence longer than the PathOccurrence objects contained in this Vector.
WTException
public QueryResult getPathOccurrenceData(PathOccurrence occurrence,
PathOccurrenceContext context,
Class target)
throws WTException
PathOccurrenceData objects associated
with the given PathOccurrence and PathOccurrenceContext.
getPathOccurrenceData in interface OccurrenceServiceoccurrence - context - target -
WTException
public QueryResult getPathOccurrenceData(PathOccurrence occurrence,
PathOccurrenceContext context,
Vector targets)
throws WTException
PathOccurrenceData objects associated
with the given PathOccurrence and PathOccurrenceContext.
getPathOccurrenceData in interface OccurrenceServiceoccurrence - context - targets -
WTException
public QueryResult getPathOccurrenceData(PathOccurrenceContext context)
throws WTException
PathOccurrenceData objects associated
with the given PathOccurrenceContext.
getPathOccurrenceData in interface OccurrenceServicecontext -
WTException
public Persistable[][][] getPathOccurrencePopulatedUsages(Persistable[][][] usages,
List pathOccurrences)
throws WTException
OccurrenceableLinks in the usages
array by setting their usesOccurrenceVector with UsesOccurrences and setting PathOccurrences on the UsesOccurrences.
getPathOccurrencePopulatedUsages in interface OccurrenceServiceusages - The three-dimensional array of Persistable returned from navigating many used-by objects at once.pathOccurrences - List of path PathOccurrences that match the order of the first dimension of the usages array.
usages array passed in, with UsesOccurrences
and PathOccurrences populated.
WTException
public Persistable[][][] getPathOccurrenceDataPopulatedUsages(Persistable[][][] usages,
PathOccurrenceContext occurrenceContext,
Class occurrenceDataClass)
throws WTException
PathOccurrences in the usages array
by adding PathOccurrenceData of the specified type for the
specified PathOccurrenceContext.
getPathOccurrenceDataPopulatedUsages in interface OccurrenceServiceusages - The three-dimensional array of Persistable returned from navigating many used-by objects at once.occurrenceContext - The context of the path occurrence data to add to the PathOccurrences.occurrenceDataClass - The class PathOccurrenceData or one of its sub-types specifying the type of path occurrence data to fetch.
usages array passed in, with the path occurrence
data added.
WTException
public QueryResult getPathOccurrences(UsesOccurrence uses)
throws WTException
QueryResult PathOccurrences related
to the given UsesOccurrence.
getPathOccurrences in interface OccurrenceServiceuses - This Vector of PathOccurrences should be used to find the associated PathOccurrence objects which play the superPath role. In other words we want to find the PathOccurrence objects that are one UsesOccurrence longer than the PathOccurrence objects contained in this Vector.
WTException
public QueryResult getPathOccurrences(PathOccurrenceMasterContext context)
throws WTException
QueryResult of PathOccurrences having
the given context.
getPathOccurrences in interface OccurrenceServicecontext - This Vector of PathOccurrences should be used to find the associated PathOccurrence objects which play the superPath role. In other words we want to find the PathOccurrence objects that are one UsesOccurrence longer than the PathOccurrence objects contained in this Vector.
WTException
public Vector getPopulatedOccurrenceableLinks(Vector occurrenceableLinks,
PathOccurrence subPathOccurrence)
throws WTException
Vector of OccurrenceableLinks with
their usesOccurrenceVector populated with their UsesOccurrences; note that the UsesOccurrences also
have their pathOccurrence populated.
getPopulatedOccurrenceableLinks in interface OccurrenceServiceoccurrenceableLinks - This Vector of OccurrenceableLinks should be used to find the associated UsesOccurrence objects.subPathOccurrence - This Vector of PathOccurrences should be used to find the associated PathOccurrence objects which play the superPath role. In other words we want to find the PathOccurrence objects that are one UsesOccurrence longer than the PathOccurrence objects contained in this Vector.
WTException
public Vector getPopulatedOccurrenceableLinks(Vector occurrenceableLinks)
throws WTException
Vector of OccurrenceableLinks with
their usesOccurrenceVector populated with their UsesOccurrences; note that the UsesOccurrences also
have their pathOccurrence populated.
getPopulatedOccurrenceableLinks in interface OccurrenceServiceoccurrenceableLinks - This Vector of OccurrenceableLinks should be used to find the associated UsesOccurrence objects.
WTException
public QueryResult getUsesOccurrences(PathOccurrence path)
throws OccurrenceException,
WTException
UsesOccurrences associated with the given PathOccurrence.
getUsesOccurrences in interface OccurrenceServicepath -
OccurrenceException
WTException
public WTKeyedMap getUsesOccurrenceData(WTCollection occs)
throws WTException
getUsesOccurrenceData in interface OccurrenceServiceoccs -
WTException
public QueryResult getUsesOccurrenceData(UsesOccurrence occurrence)
throws WTException
UsesOccurrenceData objects associated
with the given UsesOccurrence object.
getUsesOccurrenceData in interface OccurrenceServiceoccurrence -
WTException
public QueryResult getUsesOccurrenceData(UsesOccurrence occurrence,
Vector classes)
throws WTException
UsesOccurrenceData objects of the given
classes and associated with the given UsesOccurrence object.
getUsesOccurrenceData in interface OccurrenceServiceoccurrence - classes -
WTException
public QueryResult getUsesOccurrences(Vector occurrenceableLinks)
throws WTException
QueryResult of arrays where each array has
an OccurrenceableLink in position 0 and a UsesOccurrence
in position 1.
If there is no UsesOccurrence, then no QueryResult
entry is returned.
Supported API: true
getUsesOccurrences in interface OccurrenceServiceoccurrenceableLinks -
WTException
public QueryResult getUsesOccurrences(OccurrenceableLink link)
throws WTException
QueryResult of UsesOccurrence objects.
getUsesOccurrences in interface OccurrenceServicelink -
WTException
public QueryResult getUsesOccurrences(UsesOccurrenceContext context)
throws WTException
QueryResult of UsesOccurrence objects
having the given context.
getUsesOccurrences in interface OccurrenceServicecontext -
WTException
public WTKeyedMap getUsesOccurrences(WTCollection links)
throws WTException
WTKeyedMap where the keys are the input collection
of OccurrenceableLinks and the values are WTCollections of the corresponding
UsesOccurrence objects.
getUsesOccurrences in interface OccurrenceServicelinks -
WTException
public CombinedPathOccurrenceData saveCombinedPathOccurrenceData(CombinedPathOccurrenceData combinedPathOccurrenceData)
throws WTException
CombinedPathOccurrenceData.
saveCombinedPathOccurrenceData in interface OccurrenceServicecombinedPathOccurrenceData -
WTException
public PathOccurrenceData savePathOccurrenceData(PathOccurrenceData pathOccurrenceData)
throws WTException
savePathOccurrenceData in interface OccurrenceServicepathOccurrenceData -
WTException
public QueryResult saveUsesOccurrenceAndData(UsesOccurrence occurrence,
Vector occurrenceData)
throws WTException
Occurrence
and/or OccurrenceData objects since they need special identifiers
that must be obtained in a special way.
Returns a QueryResult of the Occurrence and the
OccurrenceDatas that have been inserted or updated. Note
that some other OccurrenceDatas may have been updated,
too, but since the user of this method did not have them in their
list they will not be returned.
If the Occurrence has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence shares that occurrenceDataIdentifier),
then save the OccurrenceData associated to the occurrence,
but otherwise, copy the Occurrence to get one with a
new dataIdentifier and copy all the associated OccurrenceData
objects and then save the occurrenceData associated to
the newly copied Occurrence.
Supported API: true
saveUsesOccurrenceAndData in interface OccurrenceServiceoccurrence - occurrenceData -
WTException
public QueryResult saveUsesOccurrenceAndData(UsesOccurrence occurrence,
Vector occurrenceData,
Vector occurrenceDataToDelete)
throws WTException
Occurrence
and/or OccurrenceData objects since they need special identifiers
that must be obtained in a special way.
Returns a QueryResult of the Occurrence and the
OccurrenceDatas that have been inserted or updated. Note
that some other OccurrenceDatas may have been updated,
too, but since the user of this method did not have them in their
list they will not be returned.
If the Occurrence has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence shares that occurrenceDataIdentifier),
then save the OccurrenceData associated to the occurrence,
but otherwise, copy the Occurrence to get one with a
new dataIdentifier and copy all the associated OccurrenceData
objects and then save the occurrenceData associated to
the newly copied Occurrence.
Supported API: true
saveUsesOccurrenceAndData in interface OccurrenceServiceoccurrence - occurrenceData - occurrenceDataToDelete -
WTException
public WTCollection saveUsesOccurrenceAndData(WTKeyedMap occDataMap)
throws WTException
Occurrence
and/or OccurrenceData objects since they need special identifiers
that must be obtained in a special way.
Takes a WTKeyedMap where the keys are the UsesOccurrences
and the values are a WTCollection of UsesOccurrenceData
that correspond to the key.
Returns a WTCollection of the UsesOccurrence
and the UsesOccurrenceDatas that have been inserted or updated.
Note that some other UsesOccurrenceDatas may have been
updated, too, but since the user of this method did not have them
in their list they will not be returned.
If the Occurrence has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence shares that occurrenceDataIdentifier),
then save the OccurrenceData associated to the occurrence,
but otherwise, copy the Occurrence to get one with a
new dataIdentifier and copy all the associated OccurrenceData
objects and then save the occurrenceData associated to
the newly copied Occurrence.
Supported API: true
saveUsesOccurrenceAndData in interface OccurrenceServiceoccDataMap -
WTException
public WTCollection saveUsesOccurrenceAndData(WTKeyedMap occDataMap,
WTKeyedMap occDataToDeleteMap)
throws WTException
Occurrence
and/or OccurrenceData objects since they need special identifiers
that must be obtained in a special way.
Takes two WTKeyedMaps where the keys are the UsesOccurrences
and the values are a WTCollection of UsesOccurrenceData
that correspond to the key. The second map identifies the UsesOccurrenceData
to be deleted.
Returns a WTCollection of the UsesOccurrence
and the UsesOccurrenceDatas that have been inserted or updated.
Note that some other UsesOccurrenceDatas may have been
updated, too, but since the user of this method did not have them
in their list they will not be returned.
If the Occurrence has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence shares that occurrenceDataIdentifier),
then save the OccurrenceData associated to the occurrence,
but otherwise, copy the Occurrence to get one with a
new dataIdentifier and copy all the associated OccurrenceData
objects and then save the occurrenceData associated to
the newly copied Occurrence.
Supported API: true
saveUsesOccurrenceAndData in interface OccurrenceServiceoccDataMap - occDataToDeleteMap -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||