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, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateNodeDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface NodeDao
clear
in class HibernateCRUDDao<Node>
DaoException
public List<Node> listAllNodes(String nodeGridId) throws DaoException
listAllNodes
in interface NodeDao
DaoException
public List<Node> listNodesOfUser(String userGridId, String userId) throws DaoException
listNodesOfUser
in interface NodeDao
DaoException
public NodeSearchResult searchNodes(int startIndex, int maxCount, String nodeGridId, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchNodes
in interface NodeDao
DaoException
public NodeAndUserSearchResult searchNodesAndUsers(int startIndex, int maxCount, String nodeGridId, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchNodesAndUsers
in interface NodeDao
DaoException
public void addNode(Node node) throws DaoException, NodeAlreadyExistsException
addNode
in interface NodeDao
DaoException
NodeAlreadyExistsException
public void deleteNode(String nodeGridId, String nodeId) throws NodeNotFoundException, DaoException
deleteNode
in interface NodeDao
NodeNotFoundException
DaoException
public void deleteNodesOfGrid(String userGridId) throws DaoException
deleteNodesOfGrid
in interface NodeDao
DaoException
public void deleteNodesOfUser(String userGridId, String userId) throws DaoException
deleteNodesOfUser
in interface NodeDao
DaoException
public Node getNode(String nodeGridId, String nodeId) throws NodeNotFoundException, DaoException
getNode
in interface NodeDao
NodeNotFoundException
DaoException
public boolean isNodeExist(String nodeGridId, String nodeId) throws DaoException
isNodeExist
in interface NodeDao
DaoException