Interface IThingRelationQuery
public interface IThingRelationQuery
-
Method Summary
Modifier and TypeMethodDescriptiongetContainerIDs
(IThingID thingID, int relType, int startIndex, int endIndex, boolean includeDescendents) Get the IDs of any containers of this thing.getRelatedIDs
(IThingID thingID, boolean fFrom) getRelatedIDs
(IThingID thingID, boolean fFrom, int relType, int startIndex, int endIndex) Get the set of generically related things as an array of thingIDs.listStyledThings
(IThingID styleID, int startIndex, int endIndex) Lists things of a given style
-
Method Details
-
getRelatedIDs
IThingIDList getRelatedIDs(IThingID thingID, boolean fFrom, int relType, int startIndex, int endIndex) throws MetaException Get the set of generically related things as an array of thingIDs. Only works for non-containment relationships. fFrom indicates direction of the relationship: * true means from me to the other thing * false means from the other thing to me- Parameters:
relType
- the relationship type to followstartIndex
- index of the first item to return.endIndex
- index of the last item to return. -1 specifies the last item.- Returns:
- array of thingIDs
- Throws:
MetaException
-
getContainerIDs
IThingIDList getContainerIDs(IThingID thingID, int relType, int startIndex, int endIndex, boolean includeDescendents) throws MetaException Get the IDs of any containers of this thing.- Parameters:
relType
- specifies a relationship type to filter for. Must be a containment relationship. Ignored if includeDescendents is truestartIndex
- start of listendIndex
- -1 means allincludeDescendents
- true if you want to find all containers of all descendents- Returns:
- long[] null if no containers found or off page.
- Throws:
MetaException
- If thing is invalid or DB error
-
getRelatedIDs
- Throws:
MetaException
-
listStyledThings
Lists things of a given style- Parameters:
styleID
-startIndex
-endIndex
-- Returns:
- Throws:
MetaException
-