public JDOField[] getDeclaredManagedFields() {
// Get the list of declared fields, skip the non managed fields
// and store the remaining fields into a list
List fieldList = new ArrayList();
for (Iterator i = declaredFields.values().iterator(); i.hasNext();) {
JDOField field = (JDOField)i.next();
if (field.isManaged())
fieldList.add(field);
}
// Sort all declared fields. JDOFieldImpl implements Comparable.
// It uses the field name for comparison.