T
- public abstract class GenericDAOImpl<T extends java.io.Serializable> extends java.lang.Object implements GenericDAO<T>
Constructor and Description |
---|
GenericDAOImpl(java.lang.Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
void |
excluir(java.lang.Long id) |
void |
excluir(T clazz) |
java.util.List<T> |
findAll() |
T |
findById(java.lang.Long id) |
java.lang.Class<T> |
getClazz() |
javax.persistence.EntityManager |
getEntityManager() |
void |
save(T clazz) |
void |
udpate(T clazz) |
public GenericDAOImpl(java.lang.Class<T> clazz)
public T findById(java.lang.Long id)
findById
in interface GenericDAO<T extends java.io.Serializable>
public java.util.List<T> findAll()
findAll
in interface GenericDAO<T extends java.io.Serializable>
public void save(T clazz)
save
in interface GenericDAO<T extends java.io.Serializable>
public void udpate(T clazz)
udpate
in interface GenericDAO<T extends java.io.Serializable>
public void excluir(T clazz)
excluir
in interface GenericDAO<T extends java.io.Serializable>
public void excluir(java.lang.Long id)
excluir
in interface GenericDAO<T extends java.io.Serializable>
public javax.persistence.EntityManager getEntityManager()
getEntityManager
in interface GenericDAO<T extends java.io.Serializable>
public java.lang.Class<T> getClazz()