org.skyscreamer.yoga.demo.dao
Class GenericDaoBean

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

@Repository
@Transactional
public class GenericDaoBean
extends Object
implements GenericDao


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

Constructor Detail

GenericDaoBean

public GenericDaoBean()
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


Copyright © 2012. All Rights Reserved.