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

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
HibernateReleaseDao

public interface ReleaseDao
extends ObjectDao

Data Access interface for Release business objects.

Version:
$Revision: 1.3 $
Author:
Laurent Broudoux

Method Summary
 Release getRelease(java.lang.String name)
          Retrieve a release using its name
 Release getReleaseByNumbers(int major, int minor)
          Retrieve a release using its major and minor numbers
 void refreshCache()
          Refresh cache containing release objects.
 void setCacheManager(CacheManager manager)
          Release data access object may want to use the cache manager for storing and retrieving releases.
 
Methods inherited from interface org.figure8.join.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 

Method Detail

setCacheManager

void setCacheManager(CacheManager manager)
Release data access object may want to use the cache manager for storing and retrieving releases. This Cache service provides and eternal cache for release objects.

Parameters:
manager - The CacheManager implementation to use.

refreshCache

void refreshCache()
Refresh cache containing release objects. This consists in reloading cache content from datastore.


getRelease

Release getRelease(java.lang.String name)
Retrieve a release using its name

Parameters:
name - The name of the release
Returns:
Teh release or null if no release exists with this name

getReleaseByNumbers

Release getReleaseByNumbers(int major,
                            int minor)
Retrieve a release using its major and minor numbers

Parameters:
major - The major number of the release to get
minor - The minor number of the release to get
Returns:
The release or null if no release exists with this numbers


Copyright © 2005-2008 Join. All Rights Reserved.