|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.FieldCollection
Contains a group of Fields. The contained fields can be retrieved by index (the first field added to this FieldCollection has an index of 0, the second has an index of 1, etc), or by name.
Field Summary | |
static java.util.Comparator |
DISPLAY_ORDER_COMPARATOR
|
static java.util.Comparator |
NAME_COMPARATOR
|
Constructor Summary | |
FieldCollection()
FieldCollection constructor comment. |
Method Summary | |
void |
add(Field pField)
Adds the given field to this FieldCollection. |
void |
clearFields()
Removes all the Fields from this FieldCollection. |
protected FieldCollection |
cloneFieldCollection(Row pNewRow)
Clones this FieldCollection |
java.util.Map |
getAutoUpdateFields()
Returns a Map of Fields (keyed by name) that have been updated. |
java.util.Map |
getCopiedFieldValues()
Returns a Map of field values, keyed by field name. |
java.util.List |
getDisplayOrderedFields()
Returns a list of the fields in display order specified in the Field Descriptors. |
Field |
getField(int pIndex)
Returns the Field with the given index. |
Field |
getField(java.lang.String pFieldName)
Returns the Field with the given name. |
java.lang.String |
getFieldName(int pIndex)
Returns the Field name located at the specified index. |
java.util.List |
getFieldNames()
Gets a List containing the names of the contained Fields. |
java.util.Map |
getFields()
Returns a Map of Fields keyed by Field name. |
java.util.List |
getFields(java.lang.Class pFieldClass)
Returns a List with all the fields that are equal or subclasses to pFieldClass |
java.util.List |
getNamesOfUpdatedFields()
Returns a List of names of Fields that have been updated. |
java.util.List |
getOrderedFields()
Returns a list of the fields in order they were added to this FieldCollection Creation date: (12/11/2001 3:07:35 AM) |
java.util.List |
getPhysicalFieldNames()
Gets a List containing the names of contained Fields excluding those that are not physically present in the database |
java.util.Map |
getUpdatedFields()
Returns a Map of Fields (keyed by name) that have been updated. |
boolean |
isEmpty()
Returns whether or not this FieldCollection has any Fields. |
java.util.Iterator |
iterator()
Returns all the fields in an Iterator |
Field |
removeField(Field field)
Removes the specified field from this FieldCollection. |
Field |
removeField(java.lang.String fieldName)
Removes the field with the specified name from this FieldCollection. |
void |
replace(Field pField)
Replaces the Field with the name of the given Field. |
java.util.List |
replaceFieldValues(java.util.Map nameValueMap)
Replaces the values in one or more fields. |
int |
size()
Returns the number of Fields contained in this FieldCollection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.Comparator DISPLAY_ORDER_COMPARATOR
public static final java.util.Comparator NAME_COMPARATOR
Constructor Detail |
public FieldCollection()
Method Detail |
public void add(Field pField) throws DataEngineException
DataEngineException
public void clearFields()
protected FieldCollection cloneFieldCollection(Row pNewRow) throws CMException
CMException
public java.util.Map getAutoUpdateFields() throws CMException
CMException
public java.util.Map getCopiedFieldValues() throws CMException
CMException
public java.util.List getDisplayOrderedFields()
public Field getField(int pIndex)
public Field getField(java.lang.String pFieldName)
pFieldName
- String
public java.lang.String getFieldName(int pIndex)
pIndex
- int
public java.util.List getFieldNames()
public java.util.Map getFields()
public java.util.List getFields(java.lang.Class pFieldClass)
pFieldClass
- Class
public java.util.List getNamesOfUpdatedFields() throws CMException
CMException
public java.util.List getOrderedFields()
public java.util.List getPhysicalFieldNames() throws CMException
CMException
public java.util.Map getUpdatedFields() throws CMException
CMException
public boolean isEmpty()
public java.util.Iterator iterator()
public Field removeField(Field field)
public Field removeField(java.lang.String fieldName)
public void replace(Field pField) throws DataEngineException
pField
- Field
DataEngineException
public java.util.List replaceFieldValues(java.util.Map nameValueMap) throws CMException
nameValueMap
- A mapping of field names (String objects) to values. Every field whose name is in
the key set of the Map has its value replaced by the corresponding value in the Map.
CMException
public int size()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |