Package dev.dsf.fhir.dao.command
Class DeleteCommand
java.lang.Object
dev.dsf.fhir.dao.command.AbstractCommand
dev.dsf.fhir.dao.command.DeleteCommand
- All Implemented Interfaces:
Command,ModifyingCommand
- Direct Known Subclasses:
DeleteStructureDefinitionCommand
-
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
ConstructorsConstructorDescriptionDeleteCommand(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, ResponseGenerator responseGenerator, DaoProvider daoProvider, ExceptionHandler exceptionHandler, ParameterConverter parameterConverter, EventGenerator eventGenerator) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandeleteWithTransaction(ResourceDao<?> dao, Connection connection, UUID uuid) voidexecute(Map<String, org.hl7.fhir.r4.model.IdType> idTranslationTable, Connection connection, ValidationHelper validationHelper, SnapshotGenerator snapshotGenerator) Optional<org.hl7.fhir.r4.model.Bundle.BundleEntryComponent>postExecute(Connection connection, EventHandler eventHandler) 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, preExecute
-
Constructor Details
-
DeleteCommand
public DeleteCommand(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, ResponseGenerator responseGenerator, DaoProvider daoProvider, ExceptionHandler exceptionHandler, ParameterConverter parameterConverter, EventGenerator eventGenerator)
-
-
Method Details
-
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
-
deleteWithTransaction
protected boolean deleteWithTransaction(ResourceDao<?> dao, Connection connection, UUID uuid) throws SQLException, ResourceNotFoundException -
postExecute
public Optional<org.hl7.fhir.r4.model.Bundle.BundleEntryComponent> postExecute(Connection connection, EventHandler eventHandler) - Specified by:
postExecutein interfaceCommand
-
getResourceTypeName
- Specified by:
getResourceTypeNamein interfaceCommand
-