public class HibernateDomainDao extends HibernateCRUDDao<Domain> implements DomainDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateDomainDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addDomain(Domain domain) |
void |
clear() |
void |
deleteDomain(String domainId) |
Domain |
getDomain(String domainId) |
boolean |
isDomainExist(String domainId) |
List<Domain> |
listAllDomains() |
List<Domain> |
listAllDomains(String gridId) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateDomainDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface DomainDao
clear
in class HibernateCRUDDao<Domain>
DaoException
public void addDomain(Domain domain) throws DomainAlreadyExistsException, DaoException
addDomain
in interface DomainDao
DomainAlreadyExistsException
DaoException
public void deleteDomain(String domainId) throws DomainNotFoundException, DaoException
deleteDomain
in interface DomainDao
DomainNotFoundException
DaoException
public Domain getDomain(String domainId) throws DomainNotFoundException, DaoException
getDomain
in interface DomainDao
DomainNotFoundException
DaoException
public boolean isDomainExist(String domainId) throws DaoException
isDomainExist
in interface DomainDao
DaoException
public List<Domain> listAllDomains() throws DaoException
listAllDomains
in interface DomainDao
DaoException
public List<Domain> listAllDomains(String gridId) throws DaoException
listAllDomains
in interface DomainDao
DaoException