Class FindEntitiesByPropertyValue


  • public class FindEntitiesByPropertyValue
    extends AbstractEntitySearchOperation
    Implements the 'findEntitiesByPropertyValue' operation of the OMRS metadata collection interface.
    • Constructor Detail

      • FindEntitiesByPropertyValue

        public FindEntitiesByPropertyValue​(XtdbOMRSRepositoryConnector xtdb,
                                           String entityTypeGUID,
                                           String searchCriteria,
                                           int fromEntityElement,
                                           List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
                                           org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchClassifications matchClassifications,
                                           Date asOfTime,
                                           String sequencingProperty,
                                           org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
                                           int pageSize,
                                           String userId)
        Create a new 'findEntitiesByPropertyValue' executable.
        Parameters:
        xtdb - connectivity to XTDB
        entityTypeGUID - see XtdbOMRSMetadataCollection#findEntitiesByPropertyValue
        searchCriteria - see XtdbOMRSMetadataCollection#findEntitiesByPropertyValue
        fromEntityElement - see XtdbOMRSMetadataCollection#findEntitiesByPropertyValue
        limitResultsByStatus - see XtdbOMRSMetadataCollection#findEntitiesByPropertyValue
        matchClassifications - see XtdbOMRSMetadataCollection#findEntitiesByPropertyValue
        asOfTime - see XtdbOMRSMetadataCollection#findEntitiesByPropertyValue
        sequencingProperty - see XtdbOMRSMetadataCollection#findEntitiesByPropertyValue
        sequencingOrder - see XtdbOMRSMetadataCollection#findEntitiesByPropertyValue
        pageSize - see XtdbOMRSMetadataCollection#findEntitiesByPropertyValue
        userId - of the user running the query
        See Also:
        XtdbOMRSMetadataCollection.findEntitiesByPropertyValue(String, String, String, int, List, List, Date, String, SequencingOrder, int)
    • Method Detail

      • runQuery

        protected Collection<List<?>> runQuery​(xtdb.api.IXtdbDatasource db)
                                        throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException,
                                               org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
        Interface that must be implemented to actually execute the query logic.
        Specified by:
        runQuery in class AbstractSearchOperation
        Parameters:
        db - the datasource against which to run the query
        Returns:
        Collection<List<?>> of internal XT references (IDs) that match the query
        Throws:
        org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - if a requested type for searching is not known to the repository
        org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if there is any issue iterating through the results