/** * INTERNAL: * Returns the fields that should be compared in the where clause. * In this case, it is all the fields, except for the primary key * and class indicator fields. * This is called durring lazy initialization */ protected Vector buildAllNonPrimaryKeyFields() { Vector fields = new Vector(); for (Enumeration enumtr = descriptor.getFields().elements(); enumtr.hasMoreElements();) { DatabaseField dbField = (DatabaseField)enumtr.nextElement(); if (!isPrimaryKey(dbField)) { if (descriptor.hasInheritance()) { DatabaseField classField = descriptor.getInheritancePolicy().getClassIndicatorField(); if (!((classField == null) || dbField.equals(classField))) { fields.addElement(dbField); } } else { fields.addElement(dbField); } } } /* CR#... nullpoint occurs if null is returned, not sure why this was here. if (fields.isEmpty()) { return null; }*/ return fields; }
/** * INTERNAL: * Returns the fields that should be compared in the where clause. * In this case, it is all the fields, except for the primary key * and class indicator fields. * This is called during lazy initialization. */ protected List buildAllNonPrimaryKeyFields() { List fields = new ArrayList(); for (DatabaseField dbField : descriptor.getSelectionFields()) { if (!isPrimaryKey(dbField)) { if (descriptor.hasInheritance()) { DatabaseField classField = descriptor.getInheritancePolicy().getClassIndicatorField(); if (!((classField == null) || dbField.equals(classField))) { fields.add(dbField); } } else { fields.add(dbField); } } } /* CR#... nullpoint occurs if null is returned, not sure why this was here. if (fields.isEmpty()) { return null; }*/ return fields; }
/** * INTERNAL: * Returns the fields that should be compared in the where clause. * In this case, it is all the fields, except for the primary key * and class indicator fields. * This is called during lazy initialization. */ protected List buildAllNonPrimaryKeyFields() { List fields = new ArrayList(); for (DatabaseField dbField : descriptor.getSelectionFields()) { if (!isPrimaryKey(dbField)) { if (descriptor.hasInheritance()) { DatabaseField classField = descriptor.getInheritancePolicy().getClassIndicatorField(); if (!((classField == null) || dbField.equals(classField))) { fields.add(dbField); } } else { fields.add(dbField); } } } /* CR#... nullpoint occurs if null is returned, not sure why this was here. if (fields.isEmpty()) { return null; }*/ return fields; }