org.skyscreamer.yoga.demo.dao.inmemory
Class DemoDataGenericDao

java.lang.Object
  extended by org.skyscreamer.yoga.demo.dao.inmemory.DemoDataGenericDao
All Implemented Interfaces:
GenericDao

public class DemoDataGenericDao
extends Object
implements GenericDao


Constructor Summary
DemoDataGenericDao(DemoData data)
           
 
Method Summary
<T> T
find(Class<T> type, long id)
           
<T> List<T>
findAll(Class<T> type)
           
 Number getCount(Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemoDataGenericDao

public DemoDataGenericDao(DemoData data)
Method Detail

find

public <T> T find(Class<T> type,
                  long id)
Specified by:
find in interface GenericDao

findAll

public <T> List<T> findAll(Class<T> type)
Specified by:
findAll in interface GenericDao

getCount

public Number getCount(Class<?> type)
Specified by:
getCount in interface GenericDao


Copyright © 2013. All Rights Reserved.