
Package ca.uhn.fhir.jpa.binstore
Class DatabaseBinaryContentStorageSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.binary.svc.BaseBinaryStorageSvcImpl
ca.uhn.fhir.jpa.binstore.DatabaseBinaryContentStorageSvcImpl
- All Implemented Interfaces:
IBinaryStorageSvc
-
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.binary.svc.BaseBinaryStorageSvcImpl
BINARY_CONTENT_ID_PREFIX_APPLIED, DEFAULT_MAXIMUM_BINARY_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexpungeBinaryContent(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentId) byte[]fetchBinaryContent(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentId) fetchBinaryContentDetails(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentId) setEntityManagerForTesting(jakarta.persistence.EntityManager theEntityManager) setSupportLegacyLobServer(boolean theSupportLegacyLobServer) storeBinaryContent(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentIdOrNull, String theContentType, InputStream theInputStream, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) booleanwriteBinaryContent(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentId, OutputStream theOutputStream) Methods inherited from class ca.uhn.fhir.jpa.binary.svc.BaseBinaryStorageSvcImpl
createCountingInputStream, createHashingInputStream, fetchDataByteArrayFromBinary, getMaximumBinarySize, getMinimumBinarySize, isBinaryContentIdPrefixApplied, isValidBinaryContentId, newBinaryContentId, provideIdForNewBinaryContent, provideIdForNewBinaryContent, setBinaryContentIdPrefixApplied, setFhirContextForTests, setInterceptorBroadcasterForTests, setMaximumBinarySize, setMinimumBinarySize, shouldStoreBinaryContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.jpa.binary.api.IBinaryStorageSvc
storeBinaryContent
-
Constructor Details
-
DatabaseBinaryContentStorageSvcImpl
public DatabaseBinaryContentStorageSvcImpl()
-
-
Method Details
-
storeBinaryContent
@Nonnull @Transactional(propagation=REQUIRED) public StoredDetails storeBinaryContent(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentIdOrNull, String theContentType, InputStream theInputStream, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) throws IOException - Throws:
IOException
-
fetchBinaryContentDetails
public StoredDetails fetchBinaryContentDetails(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentId) -
writeBinaryContent
public boolean writeBinaryContent(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentId, OutputStream theOutputStream) throws IOException - Throws:
IOException
-
expungeBinaryContent
public void expungeBinaryContent(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentId) -
fetchBinaryContent
public byte[] fetchBinaryContent(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBinaryContentId) throws IOException - Throws:
IOException
-
setSupportLegacyLobServer
public DatabaseBinaryContentStorageSvcImpl setSupportLegacyLobServer(boolean theSupportLegacyLobServer) -
setEntityManagerForTesting
public DatabaseBinaryContentStorageSvcImpl setEntityManagerForTesting(jakarta.persistence.EntityManager theEntityManager)
-