public class HibernateResourceDao extends HibernateCRUDDao<Resource> implements ResourceDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>| Constructor and Description | 
|---|
| HibernateResourceDao(HibernateDaoContext context) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addResource(Resource resource) | 
| void | clear() | 
| void | deleteResource(String resourceGridId,
              String resourceId) | 
| void | deleteResourcesOfGrid(String gridId) | 
| void | deleteResourcesOfUser(String userGridId,
                     String userId) | 
| Resource | getResource(String resourceGridId,
           String resourceId) | 
| boolean | isResourceExist(String resourceGridId,
               String resourceId) | 
| List<Resource> | listAllResources(String resourceGridId) | 
| List<Resource> | listResourcesOfUser(String resourceGridId,
                   String userId) | 
| ResourceSearchResult | searchResources(int startIndex,
               int maxCount,
               String resourceGridId,
               MatchingCondition[] conditions,
               Order[] orders) | 
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, updatecreateDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transactpublic HibernateResourceDao(HibernateDaoContext context)
public void clear()
           throws DaoException
clear in interface ResourceDaoclear in class HibernateCRUDDao<Resource>DaoExceptionpublic List<Resource> listAllResources(String resourceGridId) throws DaoException
listAllResources in interface ResourceDaoDaoExceptionpublic List<Resource> listResourcesOfUser(String resourceGridId, String userId) throws DaoException
listResourcesOfUser in interface ResourceDaoDaoExceptionpublic ResourceSearchResult searchResources(int startIndex, int maxCount, String resourceGridId, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchResources in interface ResourceDaoDaoExceptionpublic void addResource(Resource resource) throws DaoException, ResourceAlreadyExistsException
addResource in interface ResourceDaoDaoExceptionResourceAlreadyExistsExceptionpublic void deleteResource(String resourceGridId, String resourceId) throws ResourceNotFoundException, DaoException
deleteResource in interface ResourceDaoResourceNotFoundExceptionDaoExceptionpublic void deleteResourcesOfGrid(String gridId) throws DaoException
deleteResourcesOfGrid in interface ResourceDaoDaoExceptionpublic void deleteResourcesOfUser(String userGridId, String userId) throws DaoException
deleteResourcesOfUser in interface ResourceDaoDaoExceptionpublic Resource getResource(String resourceGridId, String resourceId) throws ResourceNotFoundException, DaoException
getResource in interface ResourceDaoResourceNotFoundExceptionDaoExceptionpublic boolean isResourceExist(String resourceGridId, String resourceId) throws DaoException
isResourceExist in interface ResourceDaoDaoException