org.figure8.join.businessobjects.commons.persistence
Interface StatusDao

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
HibernateStatusDao

public interface StatusDao
extends ObjectDao

Data Access interface for Status business objects.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Method Summary
 Status getStatus(long id)
          Retrieve a status using its datastore identifier
 Status getStatus(java.lang.String key)
          Retrieve a status using its key
 java.util.List getStatusByType(java.lang.String type)
          Retrieve status having the specified type
 
Methods inherited from interface org.figure8.join.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 

Method Detail

getStatus

Status getStatus(long id)
Retrieve a status using its datastore identifier

Parameters:
id - The unique id within datatstore
Returns:
The corresponding status or null if no status has this id

getStatus

Status getStatus(java.lang.String key)
Retrieve a status using its key

Parameters:
key - The key of status to retrieve
Returns:
The corresponding status or null if no status has this label

getStatusByType

java.util.List getStatusByType(java.lang.String type)
Retrieve status having the specified type

Parameters:
type - The type of status to retrieve
Returns:
A list of org.figure8.join.businessobjects.commons.Status objects


Copyright © 2005-2008 Join. All Rights Reserved.