|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Record
This is a generic Record, in the relational sense.
Essentially, a Record is defined as an object whose state is entirely mutable through public methods; this makes them easily saved, restored, edited, and cloned.
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the Record. |
java.util.Iterator |
editableFields()
A list of PropertyDescriptors describing all the editable (readable and writable) in this Record. |
java.util.Map |
getAllFieldValues()
Field values for all readable fields. |
FieldDef |
getField(java.lang.String fieldName)
Returns a PropertyDescriptor for the given field. |
java.lang.Object |
getFieldValue(java.lang.String fieldName)
Gets the value for a given field. |
java.util.Map |
getFieldValues()
Field values for all editable fields. |
java.util.Iterator |
readableFields()
A list of PropertyDescriptors describing all the readable fields in this Record. |
void |
setFieldValue(java.lang.String fieldName,
java.lang.Object value)
Sets the value for a given field. |
void |
setFieldValues(java.util.Map newFields)
Sets field values. |
| Method Detail |
|---|
FieldDef getField(java.lang.String fieldName)
java.util.Iterator readableFields()
java.util.Iterator editableFields()
java.lang.Object getFieldValue(java.lang.String fieldName)
throws NoSuchFieldInRecordException
NoSuchFieldInRecordException
void setFieldValue(java.lang.String fieldName,
java.lang.Object value)
throws NoSuchFieldInRecordException,
java.lang.IllegalArgumentException
NoSuchFieldInRecordException
java.lang.IllegalArgumentExceptionjava.util.Map getFieldValues()
java.util.Map getAllFieldValues()
void setFieldValues(java.util.Map newFields)
Invalid fields are ignored.
newFields - A dictionary of fieldnames associated with their values.java.lang.Object clone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||