Class RepositoryIteratorForEntities
java.lang.Object
org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryIterator
org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryIteratorForEntities
- Direct Known Subclasses:
RepositoryEntitiesIterator
,RepositoryFindEntitiesIterator
,RepositoryRelatedEntitiesIterator
,RepositorySelectedEntitiesIterator
RepositoryIteratorForEntities is the shared interface of all repository helper iterators that retrieve entity details from
the repository.
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<EntityDetail>
protected final String
protected final String
protected final List<InstanceStatus>
protected final String
Fields inherited from class org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryIterator
effectiveTime, forDuplicateProcessing, forLineage, invalidParameterHandler, MAX_PAGE_SIZE, methodName, pageSize, repositoryHandler, startingFrom, userId
-
Constructor Summary
ConstructorDescriptionRepositoryIteratorForEntities
(RepositoryHandler repositoryHandler, InvalidParameterHandler invalidParameterHandler, String userId, String entityTypeGUID, String entityTypeName, String sequencingPropertyName, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) Constructor takes the parameters used to call the repository handler. -
Method Summary
Modifier and TypeMethodDescriptiongetNext()
Return the next entity.abstract boolean
Determine if there is more to receive.
-
Field Details
-
entityTypeGUID
-
entityTypeName
-
sequencingPropertyName
-
limitResultsByStatus
-
limitResultsByClassification
-
entitiesCache
-
-
Constructor Details
-
RepositoryIteratorForEntities
public RepositoryIteratorForEntities(RepositoryHandler repositoryHandler, InvalidParameterHandler invalidParameterHandler, String userId, String entityTypeGUID, String entityTypeName, String sequencingPropertyName, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException Constructor takes the parameters used to call the repository handler.- Parameters:
repositoryHandler
- interface to the open metadata repositories.invalidParameterHandler
- invalid parameter handleruserId
- user making the requestentityTypeGUID
- identifier for the type of entity to retrieveentityTypeName
- name for the type of entity to retrievesequencingPropertyName
- name of property used to sequence the results - null means no sequencinglimitResultsByStatus
- only return elements that have the requested status (null means all statuseslimitResultsByClassification
- only return elements that have the requested classification(s)forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicatestartingFrom
- initial position in the stored list.pageSize
- maximum number of definitions to return on this call.effectiveTime
- the time that the retrieved elements must be effective formethodName
- name of calling method- Throws:
InvalidParameterException
- when page size or start from parameters do not meet criteria
-
-
Method Details
-
moreToReceive
public abstract boolean moreToReceive() throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionDetermine if there is more to receive. It will populate the iterator's cache with more content.- Returns:
- boolean flag
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- the repository is not allowing the user to access the metadataPropertyServerException
- there is a problem in the repository
-
getNext
public EntityDetail getNext() throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionReturn the next entity. It returns null if nothing left to retrieve.- Returns:
- relationship or null
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- the repository is not allowing the user to access the metadataPropertyServerException
- there is a problem in the repository
-