org.kuali.student.core.dao.impl
Class AbstractCrudDaoImpl

java.lang.Object
  extended by org.kuali.student.core.dao.impl.AbstractCrudDaoImpl
All Implemented Interfaces:
CrudDao
Direct Known Subclasses:
AbstractSearchableCrudDaoImpl

public abstract class AbstractCrudDaoImpl
extends Object
implements CrudDao


Field Summary
protected  EntityManager em
           
 
Constructor Summary
AbstractCrudDaoImpl()
           
 
Method Summary
<T> T
create(T entity)
           
<T> void
delete(Class<T> clazz, String key)
           
 void delete(Object entity)
           
<T> T
fetch(Class<T> clazz, String key)
           
<T> List<T>
find(Class<T> clazz)
           
 EntityManager getEm()
           
 void setEm(EntityManager em)
           
<T> T
update(T entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected EntityManager em
Constructor Detail

AbstractCrudDaoImpl

public AbstractCrudDaoImpl()
Method Detail

getEm

public EntityManager getEm()

setEm

public void setEm(EntityManager em)

fetch

public <T> T fetch(Class<T> clazz,
                   String key)
        throws DoesNotExistException
Specified by:
fetch in interface CrudDao
Throws:
DoesNotExistException

find

public <T> List<T> find(Class<T> clazz)
Specified by:
find in interface CrudDao

create

public <T> T create(T entity)
Specified by:
create in interface CrudDao

delete

public <T> void delete(Class<T> clazz,
                       String key)
            throws DoesNotExistException
Specified by:
delete in interface CrudDao
Throws:
DoesNotExistException

delete

public void delete(Object entity)
Specified by:
delete in interface CrudDao

update

public <T> T update(T entity)
Specified by:
update in interface CrudDao


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.