@Test void processFileContentTest() throws Exception { Path expectedFile = Paths.get("src/test/resources/", PIC_RESOURCE_NAME); FileEntry fileEntry = addTestFile(SPACE_1, NAMESPACE_1); String expectedFileDigest = DigestHelper.computeFileChecksum(expectedFile, DIGEST_METHOD) .toLowerCase(); validateFileContent(fileEntry, expectedFileDigest); }
@Override public <T> T processFileContent(String space, String id, FileContentProcessor<T> fileContentProcessor) throws FileStorageException { try { return getSqlQueryExecutor().execute(getSqlFileQueryProvider().getProcessFileWithContentQuery(space, id, fileContentProcessor)); } catch (SQLException e) { throw new FileStorageException(e.getMessage(), e); } }
DatabaseFileService extends FileService { @Override public <T> T processFileContent(String space, String id, FileContentProcessor<T> fileContentProcessor) throws FileStorageException { try { return getSqlQueryExecutor().execute(getSqlFileQueryProvider().getProcessFileWithContentQuery(space, id, fileContentProcessor)); } catch (SQLException e) { throw new FileStorageException(e.getMessage(), e); } } }
DatabaseFileService extends FileService { @Override public <T> T processFileContent(String space, String id, FileContentProcessor<T> fileContentProcessor) throws FileStorageException { try { return getSqlQueryExecutor().execute(getSqlFileQueryProvider().getProcessFileWithContentQuery(space, id, fileContentProcessor)); } catch (SQLException e) { throw new FileStorageException(e.getMessage(), e); } } DatabaseFileService(DataSourceWithDialect dataSourceWithDialect);  DatabaseFileService(String tableName, DataSourceWithDialect dataSourceWithDialect); protected  DatabaseFileService(DataSourceWithDialect dataSourceWithDialect, SqlFileQueryProvider sqlFileQueryProvider); }
DatabaseFileService extends FileService { @Override public <T> T processFileContent(String space, String id, FileContentProcessor<T> fileContentProcessor) throws FileStorageException { try { return getSqlQueryExecutor().execute(getSqlFileQueryProvider().getProcessFileWithContentQuery(space, id, fileContentProcessor)); } catch (SQLException e) { throw new FileStorageException(e.getMessage(), e); } } DatabaseFileService(DataSourceWithDialect dataSourceWithDialect);  DatabaseFileService(String tableName, DataSourceWithDialect dataSourceWithDialect); protected  DatabaseFileService(DataSourceWithDialect dataSourceWithDialect, SqlFileQueryProvider sqlFileQueryProvider); @Override T processFileContent(String space, String id, FileContentProcessor<T> fileContentProcessor); @Override int deleteBySpaceAndNamespace(String space, String namespace); @Override int deleteBySpace(String space); @Override int deleteModifiedBefore(Date modificationTime); @Override boolean deleteFile(String space, String id); @Override int deleteFilesEntriesWithoutContent(); }
DatabaseFileService extends FileService { @Override public <T> T processFileContent(String space, String id, FileContentProcessor<T> fileContentProcessor) throws FileStorageException { try { return getSqlQueryExecutor().execute(getSqlFileQueryProvider().getProcessFileWithContentQuery(space, id, fileContentProcessor)); } catch (SQLException e) { throw new FileStorageException(e.getMessage(), e); } } DatabaseFileService(DataSourceWithDialect dataSourceWithDialect);  DatabaseFileService(String tableName, DataSourceWithDialect dataSourceWithDialect); protected  DatabaseFileService(DataSourceWithDialect dataSourceWithDialect, SqlFileQueryProvider sqlFileQueryProvider); @Override T processFileContent(String space, String id, FileContentProcessor<T> fileContentProcessor); @Override int deleteBySpaceAndNamespace(String space, String namespace); @Override int deleteBySpace(String space); @Override int deleteModifiedBefore(Date modificationTime); @Override boolean deleteFile(String space, String id); @Override int deleteFilesEntriesWithoutContent();  }