Interface BaseFileTransferDao
-
- All Known Implementing Classes:
HibernateBaseFileTransferDaoImpl
public interface BaseFileTransferDaoData Access Interface for File Transfer objects- Author:
- Ikasan Development Team
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(FileFilter fileFilter)Deletes givenFileFilter.org.ikasan.spec.search.PagedSearchResult<FileFilter>find(int pageNo, int pageSize, java.lang.String criteria, java.lang.String clientId)Find a Paged List ofFileFilterby its id: clientId or and clientIdFileFilterfindById(int id)FindsFileFilterby given id.voidhousekeep(java.lang.String clientId, int ageOfFiles, int maxRows)HousekeepsFileFilterentries.booleanisDuplicate(ClientListEntry entry, boolean filterOnFilename, boolean filterOnLastModifiedDate)Method that checks if anClientListEntryis already included in the filter table.voidpersistClientListEntry(ClientListEntry entry)Derives anFileFilterfrom the providedClientListEntryand persists it to the filtering table.FileFiltersave(FileFilter fileFilter)Saves givenFileFilter.
-
-
-
Method Detail
-
isDuplicate
boolean isDuplicate(ClientListEntry entry, boolean filterOnFilename, boolean filterOnLastModifiedDate) throws org.hibernate.HibernateException
Method that checks if anClientListEntryis already included in the filter table.- Parameters:
entry- TheClientListEntryto filterfilterOnFilename-filterOnLastModifiedDate-- Returns:
trueif the entry is a duplicate,falseotherwise.- Throws:
java.lang.NullPointerExceptionorg.hibernate.HibernateException
-
persistClientListEntry
void persistClientListEntry(ClientListEntry entry) throws org.hibernate.HibernateException
Derives anFileFilterfrom the providedClientListEntryand persists it to the filtering table.- Parameters:
entry- theClientListEntryto save.- Throws:
org.hibernate.HibernateException
-
housekeep
void housekeep(java.lang.String clientId, int ageOfFiles, int maxRows) throws org.hibernate.HibernateExceptionHousekeepsFileFilterentries.- Parameters:
clientId- The clientId (as multiple clients share the same table)ageOfFiles- (delete from today minus ageOfFiles in Days)maxRows- The maximum number of rows the housekeeping can deal with- Throws:
org.hibernate.HibernateException
-
findById
FileFilter findById(int id) throws org.hibernate.HibernateException
FindsFileFilterby given id.- Parameters:
id- of a FileFilter entry- Returns:
- FileFilter entry for given id
- Throws:
java.lang.NullPointerExceptionorg.hibernate.HibernateException
-
delete
void delete(FileFilter fileFilter) throws org.hibernate.HibernateException
Deletes givenFileFilter.- Parameters:
fileFilter- to be deleted- Throws:
java.lang.NullPointerExceptionorg.hibernate.HibernateException
-
save
FileFilter save(FileFilter fileFilter) throws org.hibernate.HibernateException
Saves givenFileFilter.- Parameters:
fileFilter- to be deleted- Throws:
java.lang.NullPointerExceptionorg.hibernate.HibernateException
-
find
org.ikasan.spec.search.PagedSearchResult<FileFilter> find(int pageNo, int pageSize, java.lang.String criteria, java.lang.String clientId)
Find a Paged List ofFileFilterby its id: clientId or and clientId- Parameters:
pageNo- page numberpageSize- page Size to be returnedcriteria- ofFileFilters to be foundclientId- ofFileFilters to be found- Returns:
- The found Paged Search result of
FileFilteror empty if nothing found in persistence.
-
-