vle.domain.node
Class Node

java.lang.Object
  extended by vle.domain.PersistableDomain
      extended by vle.domain.node.Node

public class Node
extends PersistableDomain

Author:
hirokiterashima

Field Summary
protected static String fromQuery
           
 
Constructor Summary
Node()
           
 
Method Summary
static Node getByNodeIdAndRunId(String nodeId, String runId)
           
static Node getByNodeIdAndRunId(String nodeId, String runId, boolean createIfNotFound)
          Works similar to getByNodeIdAndRunId, except
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
static List<Node> getByRunId(String runId)
          Returns all nodes that are in the specified runId.
 Long getId()
           
 String getNodeId()
           
 String getNodeType()
           
protected  Class<?> getObjectClass()
           
 String getRunId()
           
 void setNodeId(String nodeId)
           
 void setNodeType(String nodeType)
           
 void setRunId(String runId)
           
 
Methods inherited from class vle.domain.PersistableDomain
delete, getById, getList, saveOrUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fromQuery

protected static String fromQuery
Constructor Detail

Node

public Node()
Method Detail

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 strings
runId - 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.