vle.domain.node
Class Node
java.lang.Object
vle.domain.PersistableDomain
vle.domain.node.Node
public class Node
- extends PersistableDomain
- Author:
- hirokiterashima
|
Constructor Summary |
Node()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fromQuery
protected static String fromQuery
Node
public Node()
getId
public Long getId()
getNodeId
public String getNodeId()
- Returns:
- the nodeId
setNodeId
public void setNodeId(String nodeId)
- Parameters:
nodeId - the nodeId to set
getRunId
public String getRunId()
- Returns:
- the runId
setRunId
public void setRunId(String runId)
- Parameters:
runId - the runId to set
getNodeType
public String getNodeType()
setNodeType
public void setNodeType(String nodeType)
- Parameters:
nodeType -
getObjectClass
protected Class<?> getObjectClass()
- Specified by:
getObjectClass in class PersistableDomain
- See Also:
PersistableDomain.getObjectClass()
getByNodeIdAndRunId
public static Node getByNodeIdAndRunId(String nodeId,
String runId)
- Parameters:
nodeId - runId -
- Returns:
- node
getByNodeIdAndRunId
public static Node getByNodeIdAndRunId(String nodeId,
String runId,
boolean createIfNotFound)
- Works similar to getByNodeIdAndRunId, except
- Parameters:
nodeId - runId - createIfNotFound - true iff a new Node should be created and persisted if
it is not found
- Returns:
getByNodeIdsAndRunId
public static List<Node> getByNodeIdsAndRunId(List<String> nodeIds,
String runId)
- Get a List of Node objects given a list of node ids and the run id
- Parameters:
nodeIds - a List of node id stringsrunId - the run id as a string
- Returns:
- a List of Node objects
getByRunId
public static List<Node> getByRunId(String runId)
- Returns all nodes that are in the specified runId.
- Parameters:
runId -
- Returns:
Copyright © 2012. All Rights Reserved.