Class CqlReadResource


  • public class CqlReadResource
    extends java.lang.Object
    CQL command to read a FHIR resource stored in Cassandra.
    • Constructor Summary

      Constructors 
      Constructor Description
      CqlReadResource​(int resourceTypeId, java.lang.String logicalId, int version, java.lang.String resourcePayloadKey, java.util.List<java.lang.String> elements, boolean payloadCompressed)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends Resource>
      T
      run​(java.lang.Class<T> resourceType, com.datastax.oss.driver.api.core.CqlSession session)
      Execute the CQL read query and return the Resource for the resourceTypeId, logicalId, version tuple.
      • Methods inherited from class java.lang.Object

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

      • CqlReadResource

        public CqlReadResource​(int resourceTypeId,
                               java.lang.String logicalId,
                               int version,
                               java.lang.String resourcePayloadKey,
                               java.util.List<java.lang.String> elements,
                               boolean payloadCompressed)
        Public constructor
        Parameters:
        resourceTypeId -
        logicalId -
        version -
        resourcePayloadKey -
        elements -
        payloadCompressed -
    • Method Detail

      • run

        public <T extends Resource> T run​(java.lang.Class<T> resourceType,
                                          com.datastax.oss.driver.api.core.CqlSession session)
                                   throws FHIRPersistenceException
        Execute the CQL read query and return the Resource for the resourceTypeId, logicalId, version tuple.
        Parameters:
        resourceType -
        session -
        Returns:
        Throws:
        FHIRPersistenceException