Class PostgresBlobResource
java.lang.Object
org.springframework.content.jpa.io.AbstractBlobResource
internal.org.springframework.content.jpa.io.PostgresBlobResource
- All Implemented Interfaces:
DeletableResource,BlobResource,org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource,org.springframework.core.io.WritableResource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.content.jpa.io.AbstractBlobResource
AbstractBlobResource.ClosingInputStream -
Constructor Summary
ConstructorsConstructorDescriptionPostgresBlobResource(Object id, org.springframework.jdbc.core.JdbcTemplate template, org.springframework.transaction.PlatformTransactionManager txnMgr) -
Method Summary
Methods inherited from class org.springframework.content.jpa.io.AbstractBlobResource
contentLength, createRelative, exists, getDescription, getFile, getFilename, getId, getSelectBlobSQL, getTemplate, getTransactionManager, getURI, getURL, isOpen, isReadable, isWritable, lastModified, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.io.Resource
getContentAsByteArray, getContentAsString, isFile, readableChannelMethods inherited from interface org.springframework.core.io.WritableResource
writableChannel
-
Constructor Details
-
PostgresBlobResource
public PostgresBlobResource(Object id, org.springframework.jdbc.core.JdbcTemplate template, org.springframework.transaction.PlatformTransactionManager txnMgr)
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Overrides:
getInputStreamin classAbstractBlobResource- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceorg.springframework.core.io.WritableResource- Overrides:
getOutputStreamin classAbstractBlobResource- Throws:
IOException
-
delete
- Specified by:
deletein interfaceDeletableResource- Overrides:
deletein classAbstractBlobResource- Throws:
IOException
-