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 Details

    • store

      @Policy(operationTypes=CREATE) boolean store(String path, InputStream content, long contentSizeInBytes, String tenantId)
      Stores a stream to a new JpaDataFeedFileLob.
      Parameters:
      path - the value to use for JpaDataFeedFileLob.getPath()
      content - the data to store. This will always be closed by the implementation.
      contentSizeInBytes - the size of the content stream in bytes
      tenantId - the tenant ID to store the file under
      Returns:
      whether the operation was successful
    • readToDestination

      @Policy(operationTypes=READ) boolean readToDestination(String path, OutputStream destination)
      Reads and transfers the data JpaDataFeedFileLob.getContent() of the specified JpaDataFeedFileLob.getPath() directly into the specified OutputStream.
      Parameters:
      path - the value to match for JpaDataFeedFileLob.getPath()
      destination - the destination to write the data to. This will always be closed by the implementation.
      Returns:
      whether the operation was successful