jp.go.nict.langrid.dao.hibernate
クラス HibernateCRUDDao<T>
java.lang.Object
jp.go.nict.langrid.dao.hibernate.HibernateDao
jp.go.nict.langrid.dao.hibernate.HibernateCRUDDao<T>
- 直系の既知のサブクラス:
- HibernateAccessLimitDao, HibernateAccessLogDao, HibernateAccessRightDao, HibernateAccessStatDao, HibernateDomainDao, HibernateFederationDao, HibernateGridDao, HibernateNodeDao, HibernateOverUseLimitDao, HibernateProtocolTypeDao, HibernateResourceDao, HibernateResourceTypeDao, HibernateServiceDao, HibernateServiceTypeDao, HibernateSubscriptionDao, HibernateSystemPropertyDao, HibernateTemporaryUserDao, HibernateUserDao
public class HibernateCRUDDao<T>
- extends HibernateDao
CRUDをサポートするDAOの基底クラス。
- バージョン:
- $Revision: 12777 $
- 作成者:
- Takao Nakaguchi, $Author: Takao Nakaguchi $
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateCRUDDao
public HibernateCRUDDao(HibernateDaoContext context,
Class<T> entityClass)
- コンストラクタ。
- パラメータ:
context
- DaoContext
clear
public void clear()
throws DaoException
- 例外:
DaoException
list
public List<T> list()
throws DaoException
- 例外:
DaoException
exists
public boolean exists(Serializable id)
throws DaoException
- 例外:
DaoException
add
public void add(T entity)
throws DaoException
- 例外:
DaoException
get
public T get(Serializable id)
throws EntityNotFoundException,
DaoException
- 例外:
EntityNotFoundException
DaoException
delete
public void delete(T entity)
throws DaoException
- 例外:
DaoException
delete
public void delete(Serializable id)
throws EntityNotFoundException,
DaoException
- 例外:
EntityNotFoundException
DaoException
clearEach
protected void clearEach()
throws DaoException
- 例外:
DaoException
add
protected void add(Serializable id,
T entity)
throws EntityAlreadyExistsException,
DaoException
- 例外:
EntityAlreadyExistsException
DaoException
update
protected void update(T detachedEntity)
throws DaoException
- 例外:
DaoException
createCriteria
protected org.hibernate.Criteria createCriteria(org.hibernate.Session session)
throws org.hibernate.HibernateException
- 例外:
org.hibernate.HibernateException
createDeleteQuery
protected org.hibernate.Query createDeleteQuery(org.hibernate.Session session,
String additional)
throws org.hibernate.HibernateException
- 例外:
org.hibernate.HibernateException