edu.iastate.metnet.dao
Class MyVersionNode

java.lang.Object
  extended by edu.iastate.metnet.dao.MyVersionNode
All Implemented Interfaces:
java.io.Serializable

public class MyVersionNode
extends java.lang.Object
implements java.io.Serializable

a simple node graph support transfering over network.

Author:
Jie Li
See Also:
Serialized Form

Field Summary
(package private)  java.lang.Object dataObject
          untyped data object
(package private)  java.util.Date importDate
          when the data is input
(package private)  java.lang.String information
          information to display in the interface
(package private)  java.lang.String username
          who imput the data
 
Constructor Summary
MyVersionNode()
          default constructor
MyVersionNode(java.lang.Integer recordid)
          constructor by the record id
 
Method Summary
 void addDownstreamNodeId(java.lang.Integer nodeId)
          add a downstream node
 void addUpstreamNodeId(java.lang.Integer nodeId)
          add an upstream node
 java.lang.Integer getBlockId()
           
 java.lang.Object getDataObject()
           
 java.util.Set getDownstreamNodeIdSet()
           
 java.util.Date getImportDate()
           
 java.lang.String getImportDateRepresentation()
           
 java.lang.String getInformation()
           
 java.lang.Integer getRecordId()
           
 java.util.Set getUpstreamNodeIdSet()
           
 java.lang.String getUsername()
           
 void setBlockId(java.lang.Integer blockId)
           
 void setDataObject(HistoryBlockunit history)
          constructor for metnet interaction structure
 void setDataObject(java.lang.Object dataObject)
           
 void setImportDate(java.util.Date importDate)
           
 void setInformation(java.lang.String information)
           
 void setRecordId(java.lang.Integer recordId)
           
 void setUsername(java.lang.String dataImporter)
           
 java.lang.String toString()
          display the information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

information

java.lang.String information
information to display in the interface


username

java.lang.String username
who imput the data


importDate

java.util.Date importDate
when the data is input


dataObject

java.lang.Object dataObject
untyped data object

Constructor Detail

MyVersionNode

public MyVersionNode()
default constructor


MyVersionNode

public MyVersionNode(java.lang.Integer recordid)
constructor by the record id

Parameters:
recordid - the version of the record
Method Detail

getRecordId

public java.lang.Integer getRecordId()
Returns:
Returns the recordId.

setRecordId

public void setRecordId(java.lang.Integer recordId)
Parameters:
recordId - The recordId to set.

getDownstreamNodeIdSet

public java.util.Set getDownstreamNodeIdSet()
Returns:
Returns the downstreamNodeIdSet.

getUpstreamNodeIdSet

public java.util.Set getUpstreamNodeIdSet()
Returns:
Returns the upstreamNodeIdSet.

addDownstreamNodeId

public void addDownstreamNodeId(java.lang.Integer nodeId)
add a downstream node

Parameters:
nodeId - the node id to be added

addUpstreamNodeId

public void addUpstreamNodeId(java.lang.Integer nodeId)
add an upstream node

Parameters:
nodeId - the node id to be added

setDataObject

public void setDataObject(HistoryBlockunit history)
constructor for metnet interaction structure

Parameters:
instance - the blockunit

setUsername

public void setUsername(java.lang.String dataImporter)
Parameters:
dataImporter - The dataImporter to set.

getImportDate

public java.util.Date getImportDate()
Returns:
Returns the importDate.

getImportDateRepresentation

public java.lang.String getImportDateRepresentation()

setImportDate

public void setImportDate(java.util.Date importDate)
Parameters:
importDate - The importDate to set.

getInformation

public java.lang.String getInformation()
Returns:
Returns the information.

setInformation

public void setInformation(java.lang.String information)
Parameters:
information - The information to set.

getDataObject

public java.lang.Object getDataObject()
Returns:
Returns the dataObject.

toString

public java.lang.String toString()
display the information

Overrides:
toString in class java.lang.Object
Returns:
the information to be displayed

getBlockId

public java.lang.Integer getBlockId()
Returns:
the blockId

setBlockId

public void setBlockId(java.lang.Integer blockId)
Parameters:
blockId - the blockId to set

getUsername

public java.lang.String getUsername()
Returns:
the username

setDataObject

public void setDataObject(java.lang.Object dataObject)
Parameters:
dataObject - the dataObject to set