Interface CustomizedDataFeedFileLobRepository<D extends JpaDataFeedFileLob>
- Type Parameters:
D- the persisted domain type
- All Known Subinterfaces:
JpaDataFeedFileLobRepository<D>
- All Known Implementing Classes:
JpaCustomizedDataFeedFileLobRepository
public interface CustomizedDataFeedFileLobRepository<D extends JpaDataFeedFileLob>
Advanced functionality for
JpaDataFeedFileLobRepository.-
Method Summary
Modifier and TypeMethodDescriptionbooleanreadToDestination(String path, OutputStream destination) Reads and transfers the dataJpaDataFeedFileLob.getContent()of the specifiedJpaDataFeedFileLob.getPath()directly into the specifiedOutputStream.booleanstore(String path, InputStream content, long contentSizeInBytes, String tenantId) Stores a stream to a newJpaDataFeedFileLob.
-
Method Details
-
store
@Policy(operationTypes=CREATE) boolean store(String path, InputStream content, long contentSizeInBytes, String tenantId) Stores a stream to a newJpaDataFeedFileLob.- Parameters:
path- the value to use forJpaDataFeedFileLob.getPath()content- the data to store. This will always be closed by the implementation.contentSizeInBytes- the size of thecontentstream in bytestenantId- the tenant ID to store the file under- Returns:
- whether the operation was successful
-
readToDestination
Reads and transfers the dataJpaDataFeedFileLob.getContent()of the specifiedJpaDataFeedFileLob.getPath()directly into the specifiedOutputStream.- Parameters:
path- the value to match forJpaDataFeedFileLob.getPath()destination- the destination to write the data to. This will always be closed by the implementation.- Returns:
- whether the operation was successful
-