|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.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 1, the second has an index of 2, etc), or by name.
Field Summary | |
static Comparator |
DISPLAY_ORDER_COMPARATOR
|
static 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. |
Map |
getAutoUpdateFields()
Returns a Map of Fields (keyed by name) that have been updated. |
Map |
getCopiedFieldValues()
Returns a Map of field values, keyed by field name. |
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(String pFieldName)
Returns the Field with the given name. |
String |
getFieldName(int pIndex)
Returns the Field name located at the specified index. |
List |
getFieldNames()
Gets a List containing the names of the contained Fields. |
Map |
getFields()
Returns a Map of Fields keyed by Field name. |
List |
getFields(Class pFieldClass)
Returns a List with all the fields that are equal or subclasses to pFieldClass |
List |
getNamesOfUpdatedFields()
Returns a List of names of Fields that have been updated. |
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) |
List |
getPhysicalFieldNames()
Gets a List containing the names of contained Fields excluding those that are not physically present in the database |
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. |
Iterator |
iterator()
Returns all the fields in an Iterator |
void |
replace(Field pField)
Replaces the Field with the name of the given Field. |
List |
replaceFieldValues(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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Comparator DISPLAY_ORDER_COMPARATOR
public static final Comparator NAME_COMPARATOR
Constructor Detail |
public FieldCollection()
Method Detail |
public void add(Field pField) throws DataEngineException
DataEngineException
public void clearFields()
public Map getAutoUpdateFields() throws CMException
CMException
public Map getCopiedFieldValues() throws CMException
CMException
public List getDisplayOrderedFields()
public Field getField(int pIndex)
public Field getField(String pFieldName)
pFieldName
- String
public String getFieldName(int pIndex)
pIndex
- int
public List getFieldNames()
public Map getFields()
public List getFields(Class pFieldClass)
pFieldClass
- Class
public List getNamesOfUpdatedFields() throws CMException
CMException
public List getOrderedFields()
public List getPhysicalFieldNames() throws CMException
CMException
public Map getUpdatedFields() throws CMException
CMException
public boolean isEmpty()
public Iterator iterator()
public void replace(Field pField) throws DataEngineException
pField
- Field
DataEngineException
public List replaceFieldValues(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 |