Class RetrieveIndexDAO


  • public class RetrieveIndexDAO
    extends Object
    Simple DAO to retrieve index IDs (i.e. logical resource IDs) from the LOGICAL_RESOURCES table.
    • Constructor Detail

      • RetrieveIndexDAO

        public RetrieveIndexDAO​(com.ibm.fhir.database.utils.api.IDatabaseTranslator tx,
                                String schemaName,
                                String resourceTypeName,
                                int count,
                                Instant notModifiedAfter,
                                Long afterIndexId,
                                FHIRPersistenceJDBCCache cache)
        Public constructor.
        Parameters:
        tx - translator
        schemaName - schema name
        resourceTypeName - the resource type name of index IDs to return, or null
        count - maximum number of index IDs to return
        notModifiedAfter - only return resources last updated at or before the specified instant, or null
        afterIndexId - only return index IDs after this index ID, or null
        cache - the cache
    • Method Detail

      • run

        public List<Long> run​(Connection c)
                       throws com.ibm.fhir.persistence.exception.FHIRPersistenceException
        Run the DAO command on the database connection.
        Parameters:
        c - connection
        Returns:
        list of logical resource IDs
        Throws:
        com.ibm.fhir.persistence.exception.FHIRPersistenceException