Submit a Query

Example 7-1 Submit a Query

Use the following RimService APIs to query Acts, ActRelationships, Participations, Roles and Entities directly:

  • queryActs(ServiceLocator s1, ActFetch fetch) throws HDRRimException
  • queryParticipations(ServiceLocator s1, ParticipationFetch fetch) throws HDRRimException
  • queryRoles(ServiceLocator s1, RoleFetch fetch) throws HDRRimException
  • queryEntities(ServiceLocator s1, EntityFetch fetch) throws HDRRimException
  • queryActRelationships(ServiceLocator s1, ActRelationshipFetch fetch) throws HDRRimException

The results of a query are an Iterator of Acts, ActRelationships, Participations, Roles and Entities respectively.