com.dyuproject.ext.jpa
Class DefaultDao
java.lang.Object
com.dyuproject.ext.jpa.DefaultDao
- Direct Known Subclasses:
- AbstractDao
public class DefaultDao
- extends Object
- Author:
- David Yu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_entityManagerManager
protected EntityManagerManager _entityManagerManager
DefaultDao
public DefaultDao()
setEntityManagerManager
public void setEntityManagerManager(EntityManagerManager entityManagerManager)
setEntityManagerManager
public EntityManagerManager setEntityManagerManager()
persist
protected boolean persist(Object obj)
throws Exception
- Throws:
Exception
merge
protected boolean merge(Object obj)
throws Exception
- Throws:
Exception
remove
protected boolean remove(Object obj)
throws Exception
- Throws:
Exception
createQuery
protected List<?> createQuery(String query)
createQuery
protected List<?> createQuery(String query,
Object[] params)
createNamedQuery
protected List<?> createNamedQuery(String name)
createNamedQuery
protected List<?> createNamedQuery(String name,
Object[] params)
find
protected <T> T find(Class<T> clazz,
Object id)
Copyright © 2013. All Rights Reserved.