JDBaccess API 1.0

com.jdbaccess.transfer
Class FieldValue

java.lang.Object
  extended by com.jdbaccess.transfer.FieldValue
All Implemented Interfaces:
java.io.Serializable

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

Field value objects are part of row objects. They contain the value of a field.

See Also:
Serialized Form

Field Summary
protected  boolean modified
           
protected  java.lang.String name
           
protected  java.lang.Object value
           
 
Constructor Summary
FieldValue(java.lang.String fieldName, java.lang.Object value)
          Constructs a field value object with a field name and a value
FieldValue(java.lang.String fieldName, java.lang.Object value, boolean modified)
          Constructs a field value object with a field name, a value and a flag modified
 
Method Summary
 java.lang.String getName()
          Get the name of the fied value object
 java.lang.Object getValue()
          Get the value of the field value.
 boolean isModified()
          If field value object is modified then returns true else false.
 void setModified(boolean modified)
          Set the field value object modified or unmodified
 void setName(java.lang.String name)
          Set the name of the field value
 void setValue(java.lang.Object value)
          Set the value of the field value object
 java.lang.String toString()
          Get the value string representation of the field value object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

value

protected java.lang.Object value

modified

protected boolean modified
Constructor Detail

FieldValue

public FieldValue(java.lang.String fieldName,
                  java.lang.Object value)
Constructs a field value object with a field name and a value

Parameters:
fieldName - name of the field
value - value of the field

FieldValue

public FieldValue(java.lang.String fieldName,
                  java.lang.Object value,
                  boolean modified)
Constructs a field value object with a field name, a value and a flag modified

Parameters:
fieldName - name of the field
value - value of the field
modified - true if modified else false
Method Detail

isModified

public boolean isModified()
If field value object is modified then returns true else false.

Returns:
true if field value object is modified else false

setModified

public void setModified(boolean modified)
Set the field value object modified or unmodified

Parameters:
modified -

getName

public java.lang.String getName()
Get the name of the fied value object

Returns:
name of the field value object

setName

public void setName(java.lang.String name)
Set the name of the field value

Parameters:
name - the name of the field value object to set

getValue

public java.lang.Object getValue()
Get the value of the field value.

Returns:
the value of the field value object

setValue

public void setValue(java.lang.Object value)
Set the value of the field value object

Parameters:
value - value of the field value object to set

toString

public java.lang.String toString()
Get the value string representation of the field value object

Overrides:
toString in class java.lang.Object
Returns:
the value string representation of field value object

JDBaccess API 1.0

Copyright © 2005-2006 JDBaccess.com, Königsweg 210, D-14129 Berlin, Germany. All Rights Reserved.