ch.tatool.app.data
Class DataEntryImpl

java.lang.Object
  extended by ch.tatool.app.data.DataEntryImpl
All Implemented Interfaces:
DataContainer.Entry, Comparable<DataEntryImpl>

public class DataEntryImpl
extends Object
implements DataContainer.Entry, Comparable<DataEntryImpl>

Encapsulates a single property value for an item. The values are stored as triple (item id, name, value) and are stored either in the module or the trial.

Author:
Michael Ruflin

Constructor Summary
DataEntryImpl()
           
 
Method Summary
 int compareTo(DataEntryImpl other)
          Compare this property to another property.
 Long getId()
          Get the id of this object.
 String getName()
          Get the property name.
 String getNodeId()
          Get the item id.
 String getValue()
          Get the property value.
 void setId(Long id)
          Set the id of this object.
 void setName(String name)
          Set the property name.
 void setNodeId(String item)
          Set the item id.
 void setValue(String value)
          Set the property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataEntryImpl

public DataEntryImpl()
Method Detail

getNodeId

public String getNodeId()
Get the item id.

Specified by:
getNodeId in interface DataContainer.Entry

setNodeId

public void setNodeId(String item)
Set the item id.


getName

public String getName()
Get the property name.

Specified by:
getName in interface DataContainer.Entry

setName

public void setName(String name)
Set the property name.


getValue

public String getValue()
Get the property value.

Specified by:
getValue in interface DataContainer.Entry

setValue

public void setValue(String value)
Set the property value.


getId

public Long getId()
Get the id of this object. Note that this property is normally set the database layer (e.g. hibernate)


setId

public void setId(Long id)
Set the id of this object. Note that this property is normally set the database layer (e.g. hibernate)


compareTo

public int compareTo(DataEntryImpl other)
Compare this property to another property. First compares the item names, then the property names.

Specified by:
compareTo in interface Comparable<DataEntryImpl>


Copyright © 2012. All Rights Reserved.