|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.connector.basefiletransfer.outbound.persistence.HibernateBaseFileTransferDaoImpl
public class HibernateBaseFileTransferDaoImpl
Implementation for Hibernate interactions involving File Transfer connectors TODO Could change this so that all business methods use HibernateTemplate as we (extend from HibernateDaoSupport)
| Field Summary | |
|---|---|
protected static java.lang.String |
filterTableName
Hibernate name of the mapped object |
protected org.hibernate.SessionFactory |
sessionFactory
Hibernate session factory |
| Constructor Summary | |
|---|---|
HibernateBaseFileTransferDaoImpl(org.hibernate.SessionFactory sessionFactory)
Constructor must provide a persistence handle |
|
| Method Summary | |
|---|---|
void |
housekeep(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.hibernate.SessionFactory sessionFactory
protected static final java.lang.String filterTableName
| Constructor Detail |
|---|
public HibernateBaseFileTransferDaoImpl(org.hibernate.SessionFactory sessionFactory)
sessionFactory - | Method Detail |
|---|
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 filter
true 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(java.lang.String clientId,
int ageOfFiles,
int maxRows)
throws org.hibernate.HibernateException
housekeep in interface BaseFileTransferDaoclientId - ageOfFiles - maxRows -
org.hibernate.HibernateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||