Constructor and Description |
---|
JsonicNodeDao(JsonicDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addNode(Node node) |
void |
clear() |
void |
deleteNode(String nodeGridId,
String nodeId) |
void |
deleteNodesOfGrid(String gridId) |
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) |
public JsonicNodeDao(JsonicDaoContext context)
public void clear() throws DaoException
clear
in interface NodeDao
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 gridId) 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