Class AbstractBlobResource
java.lang.Object
org.springframework.content.jpa.io.AbstractBlobResource
- All Implemented Interfaces:
DeletableResource,BlobResource,org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource,org.springframework.core.io.WritableResource
- Direct Known Subclasses:
GenericBlobResource,MySQLBlobResource,PostgresBlobResource,SQLServerBlobResource
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAbstractBlobResource(Object id, org.springframework.jdbc.core.JdbcTemplate template, org.springframework.transaction.PlatformTransactionManager txnMgr) -
Method Summary
Modifier and TypeMethodDescriptionlongorg.springframework.core.io.ResourcecreateRelative(String relativePath) voiddelete()booleanexists()getFile()getId()protected Stringprotected org.springframework.jdbc.core.JdbcTemplateprotected org.springframework.transaction.PlatformTransactionManagergetURI()getURL()booleanisOpen()booleanbooleanlongprotected voidMethods 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
-
AbstractBlobResource
public AbstractBlobResource(Object id, org.springframework.jdbc.core.JdbcTemplate template, org.springframework.transaction.PlatformTransactionManager txnMgr)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceBlobResource
-
setId
-
getTemplate
protected org.springframework.jdbc.core.JdbcTemplate getTemplate() -
getTransactionManager
protected org.springframework.transaction.PlatformTransactionManager getTransactionManager() -
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceorg.springframework.core.io.WritableResource
-
getOutputStream
- Specified by:
getOutputStreamin interfaceorg.springframework.core.io.WritableResource- Throws:
IOException
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.springframework.core.io.Resource
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfaceorg.springframework.core.io.Resource
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.springframework.core.io.Resource
-
getURL
- Specified by:
getURLin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getURI
- Specified by:
getURIin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getFile
- Specified by:
getFilein interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
contentLength
- Specified by:
contentLengthin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
lastModified
- Specified by:
lastModifiedin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
createRelative
- Specified by:
createRelativein interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getFilename
- Specified by:
getFilenamein interfaceorg.springframework.core.io.Resource
-
getDescription
- Specified by:
getDescriptionin interfaceorg.springframework.core.io.Resource
-
getInputStream
- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Throws:
IOException
-
delete
- Specified by:
deletein interfaceDeletableResource- Throws:
IOException
-
getSelectBlobSQL
-