Class CqlReadResource
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.cassandra.payload.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>
Trun(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.
-
-
-
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
-
-