Class RetrieveIndexDAO


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

      Constructors 
      Constructor Description
      RetrieveIndexDAO​(IDatabaseTranslator tx, java.lang.String schemaName, java.lang.String resourceTypeName, int count, java.time.Instant notModifiedAfter, java.lang.Long afterIndexId, FHIRPersistenceJDBCCache cache)
      Public constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Long> run​(java.sql.Connection c)
      Run the DAO command on the database connection.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetrieveIndexDAO

        public RetrieveIndexDAO​(IDatabaseTranslator tx,
                                java.lang.String schemaName,
                                java.lang.String resourceTypeName,
                                int count,
                                java.time.Instant notModifiedAfter,
                                java.lang.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 java.util.List<java.lang.Long> run​(java.sql.Connection c)
                                           throws FHIRPersistenceException
        Run the DAO command on the database connection.
        Parameters:
        c - connection
        Returns:
        list of logical resource IDs
        Throws:
        FHIRPersistenceException