public void setSpecifiedMapKey(String mapKey) { if (mapKey != null) { this.setSpecifiedMapKey_(mapKey); this.setNoMapKey_(false); this.setPkMapKey_(false); this.setCustomMapKey_(true); MapKey xmlMapKey = this.getXmlMapKey(); if (xmlMapKey == null) { xmlMapKey = this.buildXmlMapKey(); } xmlMapKey.setName(mapKey); } else { this.setPkMapKey(true); // hmmm... } }
public void setPkMapKey(boolean pkMapKey) { if (pkMapKey) { this.setSpecifiedMapKey_(null); this.setNoMapKey_(false); this.setPkMapKey_(true); this.setCustomMapKey_(false); MapKey xmlMapKey = this.getXmlMapKey(); if (xmlMapKey == null) { this.buildXmlMapKey(); } else { xmlMapKey.setName(null); } } else { this.setNoMapKey(true); // hmmm... } }
protected boolean buildCustomMapKey() { MapKey xmlMapKey = this.getXmlMapKey(); return (xmlMapKey != null) && (xmlMapKey.getName() != null); }
protected String buildSpecifiedMapKey() { MapKey xmlMapKey = this.getXmlMapKey(); return (xmlMapKey == null) ? null : xmlMapKey.getName(); }