|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
public interface NodeDao
ノード情報の入出力を行うDAOクラスのインターフェース。
| メソッドの概要 | |
|---|---|
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)
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)
ノードとその所有者を検索する。 |
| メソッドの詳細 |
|---|
void clear()
throws DaoException
DaoException - 情報の削除に失敗した
List<Node> listAllNodes(String nodeGridId)
throws DaoException
nodeGridId - ノードのグリッドID
DaoException - 処理に失敗した
List<Node> listNodesOfUser(String userGridId,
String userId)
throws DaoException
userGridId - ユーザのグリッドIDuserId - ユーザID
DaoException - 処理に失敗した
NodeSearchResult searchNodes(int startIndex,
int maxCount,
String nodeGridId,
MatchingCondition[] conditions,
Order[] orders)
throws DaoException
startIndex - 開始インデックスmaxCount - 最大件数nodeGridId - ノードのグリッドIDconditions - 条件orders - ソート順
DaoException - 処理に失敗した
NodeAndUserSearchResult searchNodesAndUsers(int startIndex,
int maxCount,
String nodeGridId,
MatchingCondition[] conditions,
Order[] orders)
throws DaoException
startIndex - 開始インデックスmaxCount - 最大件数nodeGridId - ノードのグリッドIDconditions - ノードの検索条件orders - ソート順
DaoException - 処理に失敗した
void addNode(Node node)
throws DaoException,
NodeAlreadyExistsException
node - 追加するノードの情報
DaoException - 情報の書き出しに失敗した
NodeAlreadyExistsException - 既にノードが存在する
void deleteNode(String nodeGridId,
String nodeId)
throws NodeNotFoundException,
DaoException
nodeGridId - 削除するノードのグリッドIDnodeId - 削除するノードのID
DaoException - 情報の読み込みに失敗した
NodeNotFoundException - 指定されたノードが見つからない
void deleteNodesOfGrid(String gridId)
throws DaoException
gridId - グリッドID
DaoException - 処理に失敗した
void deleteNodesOfUser(String userGridId,
String userId)
throws DaoException
userGridId - ユーザのグリッドIDuserId - ユーザID
DaoException - 処理に失敗した
Node getNode(String nodeGridId,
String nodeId)
throws NodeNotFoundException,
DaoException
nodeGridId - 取得するノードのグリッドIDnodeId - 取得するノードのID
NodeNotFoundException - 指定されたノードが見つからない
DaoException - 情報の読み込みに失敗した
boolean isNodeExist(String nodeGridId,
String nodeId)
throws DaoException
nodeGridId - 取得するノードのグリッドIDnodeId - ノードID
DaoException - 処理に失敗した
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||