/** * PUBLIC: * Specify the primary key field. * This should be called for each field that make up the primary key. * For EIS XML Descriptors use the addPrimaryKeyField(DatabaseField) API * and supply an org.eclipse.persistence.oxm.XMLField parameter instead of using this method */ @Override public void addPrimaryKeyFieldName(String fieldName) { if (isXMLFormat()) { addPrimaryKeyField(new XMLField(fieldName)); } else { super.addPrimaryKeyFieldName(fieldName); } }
/** * PUBLIC: * Specify the primary key field. * This should be called for each field that make up the primary key. * For EIS XML Descriptors use the addPrimaryKeyField(DatabaseField) API * and supply an org.eclipse.persistence.oxm.XMLField parameter instead of using this method */ public void addPrimaryKeyFieldName(String fieldName) { if (getDataFormat() == EISDescriptor.XML) { addPrimaryKeyField(new XMLField(fieldName)); } else { super.addPrimaryKeyFieldName(fieldName); } }
/** * PUBLIC: * Specify the primary key field. * This should be called for each field that make up the primary key. * For EIS XML Descriptors use the addPrimaryKeyField(DatabaseField) API * and supply an org.eclipse.persistence.oxm.XMLField parameter instead of using this method */ @Override public void addPrimaryKeyFieldName(String fieldName) { if (isXMLFormat()) { addPrimaryKeyField(new XMLField(fieldName)); } else { super.addPrimaryKeyFieldName(fieldName); } }