Interface IThingRelationQuery


public interface IThingRelationQuery
  • 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 follow
      startIndex - 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 true
      startIndex - start of list
      endIndex - -1 means all
      includeDescendents - 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

      List<IThingChildEntry> getRelatedIDs(IThingID thingID, boolean fFrom) throws MetaException
      Throws:
      MetaException
    • listStyledThings

      IThingIDList listStyledThings(IThingID styleID, int startIndex, int endIndex) throws MetaException
      Lists things of a given style
      Parameters:
      styleID -
      startIndex -
      endIndex -
      Returns:
      Throws:
      MetaException