public class HibernateBaseFileTransferDaoImpl extends Object implements BaseFileTransferDao
| Modifier and Type | Field and Description |
|---|---|
protected static String |
filterTableName
Hibernate name of the mapped object
|
protected org.hibernate.SessionFactory |
sessionFactory
Hibernate session factory
|
| Constructor and Description |
|---|
HibernateBaseFileTransferDaoImpl(org.hibernate.SessionFactory sessionFactory)
Constructor must provide a persistence handle
|
| Modifier and Type | Method and Description |
|---|---|
void |
housekeep(String clientId,
int ageOfFiles,
int maxRows)
Delete entries from the FileFilter table based on their
age of creation and their clientId
TODO This is _not_ a platform independent solution
as we are using a Sybase specific functions (dateadd() & getdate())
|
boolean |
isDuplicate(ClientListEntry entry,
boolean filterOnFilename,
boolean filterOnLastModifiedDate)
Method that checks if an
ClientListEntry is already
included in the filter table. |
void |
persistClientListEntry(ClientListEntry entry)
Derives an
FileFilter from the provided
ClientListEntry and persists it to the filtering
table. |
protected org.hibernate.SessionFactory sessionFactory
protected static final String filterTableName
public HibernateBaseFileTransferDaoImpl(org.hibernate.SessionFactory sessionFactory)
sessionFactory - public boolean isDuplicate(ClientListEntry entry, boolean filterOnFilename, boolean filterOnLastModifiedDate) throws org.hibernate.HibernateException
BaseFileTransferDaoClientListEntry is already
included in the filter table.isDuplicate in interface BaseFileTransferDaoentry - The ClientListEntry to filtertrue if the entry is a duplicate,
false otherwise.org.hibernate.HibernateExceptionBaseFileTransferDao.isDuplicate(ClientListEntry,
boolean, boolean)public void persistClientListEntry(ClientListEntry entry) throws org.hibernate.HibernateException
BaseFileTransferDaoFileFilter from the provided
ClientListEntry and persists it to the filtering
table.persistClientListEntry in interface BaseFileTransferDaoentry - the ClientListEntry to save.org.hibernate.HibernateExceptionBaseFileTransferDao.persistClientListEntry(org.ikasan.connector.basefiletransfer.net.ClientListEntry)public void housekeep(String clientId, int ageOfFiles, int maxRows) throws org.hibernate.HibernateException
housekeep in interface BaseFileTransferDaoclientId - ageOfFiles - maxRows - org.hibernate.HibernateExceptionCopyright © 2007-2017 Ikasan. All Rights Reserved.