org.jasig.portlet.athletics.dao
Class AthleticsDaoMergingImpl

java.lang.Object
  extended by org.jasig.portlet.athletics.dao.AthleticsDaoMergingImpl
All Implemented Interfaces:
IAthleticsDao

public class AthleticsDaoMergingImpl
extends Object
implements IAthleticsDao

AthleticsDaoMergingImpl merges together the results of multiple athletics feed DAOs. The news items and competition results for each sport will be combined.

Author:
Jen Bourey, jennifer.bourey@gmail.com

Constructor Summary
AthleticsDaoMergingImpl()
           
 
Method Summary
 AthleticsFeed getFeed()
          Return an athletics feed representing all current news stories and competitions for all known sports.
 Sport getSport(String sportKey)
          Return details, news stories, and competitions for an individual sport.
 void setDaos(List<IAthleticsDao> daos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AthleticsDaoMergingImpl

public AthleticsDaoMergingImpl()
Method Detail

setDaos

public void setDaos(List<IAthleticsDao> daos)

getFeed

@Cacheable(cacheName="athleticsFeedCache")
public AthleticsFeed getFeed()
Description copied from interface: IAthleticsDao
Return an athletics feed representing all current news stories and competitions for all known sports.

Specified by:
getFeed in interface IAthleticsDao
Returns:

getSport

@Cacheable(cacheName="sportCache")
public Sport getSport(String sportKey)
Description copied from interface: IAthleticsDao
Return details, news stories, and competitions for an individual sport.

Specified by:
getSport in interface IAthleticsDao
Returns:


Copyright © 2011 Jasig. All Rights Reserved.