public class HibernateNodeDao extends HibernateCRUDDao<Node> implements NodeDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>| Constructor and Description |
|---|
HibernateNodeDao(HibernateDaoContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(Node node) |
void |
clear() |
void |
deleteNode(String nodeGridId,
String nodeId) |
void |
deleteNodesOfGrid(String userGridId) |
void |
deleteNodesOfUser(String userGridId,
String userId) |
Node |
getNode(String nodeGridId,
String nodeId) |
boolean |
isNodeExist(String nodeGridId,
String nodeId) |
List<Node> |
listAllNodes(String nodeGridId) |
List<Node> |
listNodesOfUser(String userGridId,
String userId) |
NodeSearchResult |
searchNodes(int startIndex,
int maxCount,
String nodeGridId,
MatchingCondition[] conditions,
Order[] orders) |
NodeAndUserSearchResult |
searchNodesAndUsers(int startIndex,
int maxCount,
String nodeGridId,
MatchingCondition[] conditions,
Order[] orders) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, updatecreateDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transactpublic HibernateNodeDao(HibernateDaoContext context)
public void clear()
throws DaoException
clear in interface NodeDaoclear in class HibernateCRUDDao<Node>DaoExceptionpublic List<Node> listAllNodes(String nodeGridId) throws DaoException
listAllNodes in interface NodeDaoDaoExceptionpublic List<Node> listNodesOfUser(String userGridId, String userId) throws DaoException
listNodesOfUser in interface NodeDaoDaoExceptionpublic NodeSearchResult searchNodes(int startIndex, int maxCount, String nodeGridId, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchNodes in interface NodeDaoDaoExceptionpublic NodeAndUserSearchResult searchNodesAndUsers(int startIndex, int maxCount, String nodeGridId, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchNodesAndUsers in interface NodeDaoDaoExceptionpublic void addNode(Node node) throws DaoException, NodeAlreadyExistsException
addNode in interface NodeDaoDaoExceptionNodeAlreadyExistsExceptionpublic void deleteNode(String nodeGridId, String nodeId) throws NodeNotFoundException, DaoException
deleteNode in interface NodeDaoNodeNotFoundExceptionDaoExceptionpublic void deleteNodesOfGrid(String userGridId) throws DaoException
deleteNodesOfGrid in interface NodeDaoDaoExceptionpublic void deleteNodesOfUser(String userGridId, String userId) throws DaoException
deleteNodesOfUser in interface NodeDaoDaoExceptionpublic Node getNode(String nodeGridId, String nodeId) throws NodeNotFoundException, DaoException
getNode in interface NodeDaoNodeNotFoundExceptionDaoExceptionpublic boolean isNodeExist(String nodeGridId, String nodeId) throws DaoException
isNodeExist in interface NodeDaoDaoException