org.figure8.join.businessobjects.reporting.persistence
Interface MessageDao

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
HibernateMessageDao

public interface MessageDao
extends ObjectDao

Data Access interface for Message business objects.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Method Summary
 Message getMessage(long id)
          Retrieve a message using its unique identifier
 java.util.List getMessages(java.util.Date startDate, java.util.Date endDate)
          Retrieve all messages published between publication date and expiry date
 java.util.List getMessagesForRelease(Release release, java.util.Date startDate, java.util.Date endDate)
          Retrieve all messages published between publication date and expiry date for a specified release.
 java.util.List getOpenMessages()
          Retrieve all current messages at time of invocation
 java.util.List getOpenMessagesForRelease(Release release)
          Retrieve all current messages that are associated to release at time of invocation
 
Methods inherited from interface org.figure8.join.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 

Method Detail

getMessage

Message getMessage(long id)
Retrieve a message using its unique identifier

Parameters:
id - The unique identifier of message to retrieve
Returns:
The message having this id or null if it does not exists

getOpenMessages

java.util.List getOpenMessages()
Retrieve all current messages at time of invocation

Returns:
A list of org.figure8.join.businessobjects.reporting.Messages

getOpenMessagesForRelease

java.util.List getOpenMessagesForRelease(Release release)
Retrieve all current messages that are associated to release at time of invocation

Parameters:
release - The release to retrieve messages for
Returns:
A list of org.figure8.join.businessobjects.reporting.Messages for this release

getMessages

java.util.List getMessages(java.util.Date startDate,
                           java.util.Date endDate)
Retrieve all messages published between publication date and expiry date

Parameters:
startDate - Start date of messages research
endDate - End date of messages research
Returns:
A list of org.figure8.join.businessobjects.reporting.Messages

getMessagesForRelease

java.util.List getMessagesForRelease(Release release,
                                     java.util.Date startDate,
                                     java.util.Date endDate)
Retrieve all messages published between publication date and expiry date for a specified release.

Parameters:
release - The release to retrieve messages for
startDate - Start date of messages research
endDate - End date of messages research
Returns:
A list of org.figure8.join.businessobjects.reporting.Messages


Copyright © 2005-2008 Join. All Rights Reserved.