JDBaccess API 1.0

com.jdbaccess.transfer
Class Row

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

public class Row
extends TransferObject

Rows are transfer objects for database rows. Rows contain values of database rows (of type FieldValue)

See Also:
Serialized Form

Constructor Summary
Row()
           
 
Method Summary
 java.util.ArrayList getFields()
          Gets all fields of this row
 java.util.ArrayList getModifiedFieldNames()
          Returns all modified field names of this row as an ArrayList of String
 java.lang.Object getValue(java.lang.String fieldName)
          Gets the value of the field with that field name
 boolean hasIdField()
          Returns true if this row has an id field else false
 boolean hasModifiedFields()
          Returns true if at least one field value is modified else false
 boolean isModified(java.lang.String fieldName)
          Returns true if the field with this field name is modified
 void setAllFieldsModified()
          Sets all field values modified
 void setAllFieldsUnmodified()
          Sets all field values unmodified
 void setValue(java.lang.String fieldName, java.lang.Object value)
          Sets the value of the field with that fieldName (not modified)
 void setValueModified(java.lang.String fieldName, java.lang.Object value)
          Sets the value of the field with that fieldName modified
 java.lang.String toString()
          Returns a String representation of this transfer object
 
Methods inherited from class com.jdbaccess.transfer.TransferObject
getEntity, getField, getIdentifierFieldName, getSequenceName, getWhereCondition, setEntity, setSequenceName, setWhereCondition, xxxxxInternalGetTOHelper
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Row

public Row()
Method Detail

getValue

public java.lang.Object getValue(java.lang.String fieldName)
Gets the value of the field with that field name

Overrides:
getValue in class TransferObject
Parameters:
fieldName - case insensitive
Returns:
value of the field with that field name

setValue

public void setValue(java.lang.String fieldName,
                     java.lang.Object value)
Sets the value of the field with that fieldName (not modified)

Overrides:
setValue in class TransferObject
Parameters:
fieldName - field name is case insensitive
value - value to set
See Also:
TransferObject.setValueModified(String, Object)

setValueModified

public void setValueModified(java.lang.String fieldName,
                             java.lang.Object value)
Sets the value of the field with that fieldName modified

Overrides:
setValueModified in class TransferObject
Parameters:
fieldName - is case insensitive
value - value to set
See Also:
TransferObject.setValue(String, Object)

getFields

public java.util.ArrayList getFields()
Gets all fields of this row

Overrides:
getFields in class TransferObject
Returns:
ArrayList of Field: all fields of this row

hasModifiedFields

public boolean hasModifiedFields()
Returns true if at least one field value is modified else false

Overrides:
hasModifiedFields in class TransferObject
Returns:
true if at least one field value is modified else false

getModifiedFieldNames

public java.util.ArrayList getModifiedFieldNames()
Returns all modified field names of this row as an ArrayList of String

Overrides:
getModifiedFieldNames in class TransferObject
Returns:
all modified field names of this row as an ArrayList of String

setAllFieldsUnmodified

public void setAllFieldsUnmodified()
Sets all field values unmodified

Overrides:
setAllFieldsUnmodified in class TransferObject

setAllFieldsModified

public void setAllFieldsModified()
Sets all field values modified

Overrides:
setAllFieldsModified in class TransferObject

hasIdField

public boolean hasIdField()
Returns true if this row has an id field else false

Overrides:
hasIdField in class TransferObject
Returns:
true if this row has an id field else false

isModified

public boolean isModified(java.lang.String fieldName)
Returns true if the field with this field name is modified

Overrides:
isModified in class TransferObject
Parameters:
fieldName - name of the field
Returns:
true if the field with this field name is modified

toString

public java.lang.String toString()
Returns a String representation of this transfer object

Overrides:
toString in class TransferObject
Returns:
String representation of this transfer object

JDBaccess API 1.0

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