CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto.base
Class IdentifiableFieldValueDto

java.lang.Object
  extended by com.intland.codebeamer.persistence.dto.base.IdentifiableDto
      extended by com.intland.codebeamer.persistence.dto.base.IdentifiableFieldValueDto
All Implemented Interfaces:
BaseDto, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class IdentifiableFieldValueDto
extends IdentifiableDto
implements java.lang.Comparable

This class represents a field value of an IdentifiableDto.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
IdentifiableDto.IdComparator
 
Constructor Summary
IdentifiableFieldValueDto()
           
IdentifiableFieldValueDto(IdentifiableDto object, java.lang.Integer fieldId, java.lang.Comparable value, java.lang.Integer typeId)
           
IdentifiableFieldValueDto(IdentifiableFieldValueDto other)
           
IdentifiableFieldValueDto(java.lang.Integer objectId, java.lang.Integer fieldId, java.lang.Comparable value, java.lang.Integer typeId)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
static int compareValue(java.lang.Comparable o1, java.lang.Comparable o2)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Boolean getBooleanValue()
          Get the field value as a Boolean
 java.lang.Integer getFieldId()
           
 java.lang.Integer getIntValue()
          Get the field value as an Integer
 java.lang.String getStringValue()
          Get the field value as a String
 java.lang.Integer getTypeId()
          Get the optional type discriminator for the value
 java.lang.Comparable getValue()
           
 int hashCode()
           
 void setBooleanValue(java.lang.Boolean value)
          Set the field value as a Boolean
 void setFieldId(java.lang.Integer fieldId)
           
 void setIdentifiableFieldValue(IdentifiableFieldValueDto other)
           
 void setIntValue(java.lang.Integer intval)
          Set the field value as an Integer
 void setStringValue(java.lang.String value)
          Set the field value as a String
 void setTypeId(java.lang.Integer typeId)
          Get the optional type value discriminator
 void setValue(java.lang.Comparable value)
           
 java.lang.String toString()
           
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
clone, compare, compareInteger, equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentifiableFieldValueDto

public IdentifiableFieldValueDto()

IdentifiableFieldValueDto

public IdentifiableFieldValueDto(java.lang.Integer objectId,
                                 java.lang.Integer fieldId,
                                 java.lang.Comparable value,
                                 java.lang.Integer typeId)

IdentifiableFieldValueDto

public IdentifiableFieldValueDto(IdentifiableDto object,
                                 java.lang.Integer fieldId,
                                 java.lang.Comparable value,
                                 java.lang.Integer typeId)

IdentifiableFieldValueDto

public IdentifiableFieldValueDto(IdentifiableFieldValueDto other)
Method Detail

getFieldId

public java.lang.Integer getFieldId()
Returns:
the field

setFieldId

public void setFieldId(java.lang.Integer fieldId)
Parameters:
fieldId - the field to set

getTypeId

public java.lang.Integer getTypeId()
Get the optional type discriminator for the value

Returns:
the optional type discriminator for the value

setTypeId

public void setTypeId(java.lang.Integer typeId)
Get the optional type value discriminator

Parameters:
typeId - is an optional type discriminator for the value

getValue

public java.lang.Comparable getValue()
Returns:
the value

setValue

public void setValue(java.lang.Comparable value)
Parameters:
value - the value to set

setStringValue

public void setStringValue(java.lang.String value)
Set the field value as a String

Parameters:
value - is the String value to set

getStringValue

public java.lang.String getStringValue()
Get the field value as a String

Returns:
the value as a String or null if value is null

setIntValue

public void setIntValue(java.lang.Integer intval)
Set the field value as an Integer

Parameters:
intval - is the Integer value to set

getIntValue

public java.lang.Integer getIntValue()
Get the field value as an Integer

Returns:
the Integer value or null if value is null or not an Integer

getBooleanValue

public java.lang.Boolean getBooleanValue()
Get the field value as a Boolean

Returns:
the Boolean value or null if value is null or not a Boolean

setBooleanValue

public void setBooleanValue(java.lang.Boolean value)
Set the field value as a Boolean

Parameters:
value - is the Boolean value to set

setIdentifiableFieldValue

public void setIdentifiableFieldValue(IdentifiableFieldValueDto other)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class IdentifiableDto

hashCode

public int hashCode()
Overrides:
hashCode in class IdentifiableDto

toString

public java.lang.String toString()
Overrides:
toString in class IdentifiableDto

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class IdentifiableDto

compareValue

public static int compareValue(java.lang.Comparable o1,
                               java.lang.Comparable o2)

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.