Package dev.dsf.fhir.dao.command
Class ReadCommand
java.lang.Object
dev.dsf.fhir.dao.command.AbstractCommand
dev.dsf.fhir.dao.command.ReadCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
HeadCommand
-
Field Summary
Fields inherited from class dev.dsf.fhir.dao.command.AbstractCommand
audit, authorizationHelper, bundle, entry, identity, index, returnType, serverBaseFields inherited from interface dev.dsf.fhir.dao.command.Command
URL_UUID_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionReadCommand(int index, Identity identity, PreferReturnType returnType, org.hl7.fhir.r4.model.Bundle bundle, org.hl7.fhir.r4.model.Bundle.BundleEntryComponent entry, String serverBase, AuthorizationHelper authorizationHelper, int defaultPageCount, DaoProvider daoProvider, ParameterConverter parameterConverter, ResponseGenerator responseGenerator, ExceptionHandler exceptionHandler, ReferenceCleaner referenceCleaner, PreferHandlingType handlingType) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(Map<String, org.hl7.fhir.r4.model.IdType> idTranslationTable, Connection connection, ValidationHelper validationHelper, SnapshotGenerator snapshotGenerator) booleanisSearch()Optional<org.hl7.fhir.r4.model.Bundle.BundleEntryComponent>postExecute(Connection connection, EventHandler eventHandler) voidpreExecute(Map<String, org.hl7.fhir.r4.model.IdType> idTranslationTable, Connection connection, ValidationHelper validationHelper, SnapshotGenerator snapshotGenerator) protected voidsetMultipleResult(org.hl7.fhir.r4.model.Bundle.BundleEntryComponent resultEntry, org.hl7.fhir.r4.model.Bundle multipleResult) protected voidsetSingleResult(org.hl7.fhir.r4.model.Bundle.BundleEntryComponent resultEntry, org.hl7.fhir.r4.model.Resource singleResult) Methods inherited from class dev.dsf.fhir.dao.command.AbstractCommand
getIdentity, getIndex, getTransactionPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.dsf.fhir.dao.command.Command
getIdentity, getIndex, getTransactionPriority
-
Constructor Details
-
ReadCommand
public ReadCommand(int index, Identity identity, PreferReturnType returnType, org.hl7.fhir.r4.model.Bundle bundle, org.hl7.fhir.r4.model.Bundle.BundleEntryComponent entry, String serverBase, AuthorizationHelper authorizationHelper, int defaultPageCount, DaoProvider daoProvider, ParameterConverter parameterConverter, ResponseGenerator responseGenerator, ExceptionHandler exceptionHandler, ReferenceCleaner referenceCleaner, PreferHandlingType handlingType)
-
-
Method Details
-
preExecute
public void preExecute(Map<String, org.hl7.fhir.r4.model.IdType> idTranslationTable, Connection connection, ValidationHelper validationHelper, SnapshotGenerator snapshotGenerator) - Specified by:
preExecutein interfaceCommand
-
execute
public void execute(Map<String, org.hl7.fhir.r4.model.IdType> idTranslationTable, Connection connection, ValidationHelper validationHelper, SnapshotGenerator snapshotGenerator) throws SQLException, jakarta.ws.rs.WebApplicationException- Specified by:
executein interfaceCommand- Throws:
SQLExceptionjakarta.ws.rs.WebApplicationException
-
postExecute
public Optional<org.hl7.fhir.r4.model.Bundle.BundleEntryComponent> postExecute(Connection connection, EventHandler eventHandler) - Specified by:
postExecutein interfaceCommand
-
setMultipleResult
protected void setMultipleResult(org.hl7.fhir.r4.model.Bundle.BundleEntryComponent resultEntry, org.hl7.fhir.r4.model.Bundle multipleResult) -
setSingleResult
protected void setSingleResult(org.hl7.fhir.r4.model.Bundle.BundleEntryComponent resultEntry, org.hl7.fhir.r4.model.Resource singleResult) -
getResourceTypeName
- Specified by:
getResourceTypeNamein interfaceCommand
-
isSearch
public boolean isSearch()
-