org.ikasan.connector.basefiletransfer.outbound.persistence
Interface BaseFileTransferDao

All Known Implementing Classes:
HibernateBaseFileTransferDaoImpl

public interface BaseFileTransferDao

Data Access Interface for File Transfer objects

Author:
Ikasan Development Team

Method Summary
 void housekeep(java.lang.String clientId, int ageOfFiles, int maxRows)
          Housekeeps FileFilter entries.
 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.
 

Method Detail

isDuplicate

boolean isDuplicate(ClientListEntry entry,
                    boolean filterOnFilename,
                    boolean filterOnLastModifiedDate)
                    throws org.hibernate.HibernateException
Method that checks if an ClientListEntry is already included in the filter table.

Parameters:
entry - The ClientListEntry to filter
filterOnFilename -
filterOnLastModifiedDate -
Returns:
true if the entry is a duplicate, false otherwise.
Throws:
java.lang.NullPointerException
org.hibernate.HibernateException

persistClientListEntry

void persistClientListEntry(ClientListEntry entry)
                            throws org.hibernate.HibernateException
Derives an FileFilter from the provided ClientListEntry and persists it to the filtering table.

Parameters:
entry - the ClientListEntry to save.
Throws:
org.hibernate.HibernateException

housekeep

void housekeep(java.lang.String clientId,
               int ageOfFiles,
               int maxRows)
               throws org.hibernate.HibernateException
Housekeeps FileFilter entries.

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


Copyright © 2007-2010 Ikasan. All Rights Reserved.