|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jdbaccess.transfer.TransferObject
com.jdbaccess.transfer.Row
public class Row
Rows are transfer objects for database rows. Rows contain values of database rows (of type FieldValue)
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 |
---|
public Row()
Method Detail |
---|
public java.lang.Object getValue(java.lang.String fieldName)
getValue
in class TransferObject
fieldName
- case insensitive
public void setValue(java.lang.String fieldName, java.lang.Object value)
setValue
in class TransferObject
fieldName
- field name is case insensitivevalue
- value to setTransferObject.setValueModified(String, Object)
public void setValueModified(java.lang.String fieldName, java.lang.Object value)
setValueModified
in class TransferObject
fieldName
- is case insensitivevalue
- value to setTransferObject.setValue(String, Object)
public java.util.ArrayList getFields()
getFields
in class TransferObject
public boolean hasModifiedFields()
hasModifiedFields
in class TransferObject
public java.util.ArrayList getModifiedFieldNames()
getModifiedFieldNames
in class TransferObject
public void setAllFieldsUnmodified()
setAllFieldsUnmodified
in class TransferObject
public void setAllFieldsModified()
setAllFieldsModified
in class TransferObject
public boolean hasIdField()
hasIdField
in class TransferObject
public boolean isModified(java.lang.String fieldName)
isModified
in class TransferObject
fieldName
- name of the field
public java.lang.String toString()
toString
in class TransferObject
|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |