/** * PUBLIC: * Add a direct to node mapping to the receiver. The new mapping specifies that * a variable accessed by the get and set methods of the class of objects which * the receiver describes maps in the default manner for its type to the indicated * database field. */ public DatabaseMapping addDirectMapping(String attributeName, String getMethodName, String setMethodName, String fieldName) { EISDirectMapping mapping = new EISDirectMapping(); mapping.setAttributeName(attributeName); mapping.setSetMethodName(setMethodName); mapping.setGetMethodName(getMethodName); if (getDataFormat() == EISDescriptor.XML) { mapping.setXPath(fieldName); } else { mapping.setFieldName(fieldName); } return addMapping(mapping); }
/** * PUBLIC: * Add a direct to node mapping to the receiver. The new mapping specifies that * a variable accessed by the get and set methods of the class of objects which * the receiver describes maps in the default manner for its type to the indicated * database field. */ @Override public DatabaseMapping addDirectMapping(String attributeName, String getMethodName, String setMethodName, String fieldName) { EISDirectMapping mapping = new EISDirectMapping(); mapping.setAttributeName(attributeName); mapping.setSetMethodName(setMethodName); mapping.setGetMethodName(getMethodName); if (isXMLFormat()) { mapping.setXPath(fieldName); } else { mapping.setFieldName(fieldName); } return addMapping(mapping); }
/** * PUBLIC: * Add a direct to node mapping to the receiver. The new mapping specifies that * a variable accessed by the get and set methods of the class of objects which * the receiver describes maps in the default manner for its type to the indicated * database field. */ @Override public DatabaseMapping addDirectMapping(String attributeName, String getMethodName, String setMethodName, String fieldName) { EISDirectMapping mapping = new EISDirectMapping(); mapping.setAttributeName(attributeName); mapping.setSetMethodName(setMethodName); mapping.setGetMethodName(getMethodName); if (isXMLFormat()) { mapping.setXPath(fieldName); } else { mapping.setFieldName(fieldName); } return addMapping(mapping); }