|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcon.data.ArrayListRecord
public abstract class ArrayListRecord
This is a Record whose values are maintained in an internal ArrayList. It should be less space-intensive than a HashRecord.
| Constructor Summary | |
|---|---|
ArrayListRecord()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the Record. |
java.util.Iterator |
editableFields()
A list of FieldDefs describing all the editable (readable and writable) fields in this Record. |
protected abstract java.util.Map |
editableFieldsDict()
|
java.util.Map |
getAllFieldValues()
Field values for all editable fields. |
FieldDef |
getField(java.lang.String fieldName)
Returns a FieldDef 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 readable fields. |
protected int |
indexOf(java.lang.String fieldName)
|
java.util.Iterator |
readableFields()
A list of FieldDefs describing all the readable fields in this Record. |
protected abstract java.util.Map |
readableFieldsDict()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayListRecord()
| Method Detail |
|---|
public FieldDef getField(java.lang.String fieldName)
getField in interface Recordpublic java.util.Iterator readableFields()
readableFields in interface Recordpublic java.util.Iterator editableFields()
editableFields in interface Record
public java.lang.Object getFieldValue(java.lang.String fieldName)
throws NoSuchFieldInRecordException
getFieldValue in interface RecordNoSuchFieldInRecordException
public void setFieldValue(java.lang.String fieldName,
java.lang.Object value)
throws NoSuchFieldInRecordException,
java.lang.IllegalArgumentException
setFieldValue in interface RecordNoSuchFieldInRecordException
java.lang.IllegalArgumentExceptionpublic java.util.Map getFieldValues()
getFieldValues in interface Recordpublic java.util.Map getAllFieldValues()
getAllFieldValues in interface Recordpublic void setFieldValues(java.util.Map newFields)
Invalid fields are ignored.
setFieldValues in interface RecordnewFields - A dictionary of fieldnames associated with their values.public java.lang.Object clone()
clone in interface Recordclone in class java.lang.Objectprotected abstract java.util.Map readableFieldsDict()
protected abstract java.util.Map editableFieldsDict()
protected int indexOf(java.lang.String fieldName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||