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 HDRRimExceptionqueryParticipations(ServiceLocator s1, ParticipationFetch fetch)throws HDRRimExceptionqueryRoles(ServiceLocator s1, RoleFetch fetch)throws HDRRimExceptionqueryEntities(ServiceLocator s1, EntityFetch fetch)throws HDRRimExceptionqueryActRelationships(ServiceLocator s1, ActRelationshipFetch fetch)throws HDRRimException
The results of a query are an Iterator of Acts, ActRelationships, Participations, Roles and Entities respectively.