gov.nih.nci.caarray.services.external.v1_0.impl
Interface BaseV1_0ExternalService.EntityHandler<T extends AbstractCaArrayEntity>

Type Parameters:
T - the type of the external entity that this EntityHandler handles.
Enclosing class:
BaseV1_0ExternalService

protected static interface BaseV1_0ExternalService.EntityHandler<T extends AbstractCaArrayEntity>

An external entity handler encapsulates the logic to perform generic operations for an external entity type. These include retrieving an instance of it by id, and performing CQL and by-example queries.

Author:
dkokotov

Method Summary
 java.util.List<T> queryByExample(ExampleSearchCriteria<T> criteria, LimitOffset pagingParams)
          return a list of entities of this handler's type, that match the given example criteria, subject to paging parameters.
 java.lang.Object resolve(java.lang.String objectId)
          Retrieve and return the internal instance given an object id.
 

Method Detail

resolve

java.lang.Object resolve(java.lang.String objectId)
Retrieve and return the internal instance given an object id.

Parameters:
objectId - the object identifier. the semantics of depend on the external entity type.
Returns:
the internal instance for given object id, or null, if one does not exist.

queryByExample

java.util.List<T> queryByExample(ExampleSearchCriteria<T> criteria,
                                 LimitOffset pagingParams)
return a list of entities of this handler's type, that match the given example criteria, subject to paging parameters.

Parameters:
criteria - the example criteria
pagingParams - the paging parameters
Returns:
the matching entities, subject to paging parameters.