public void clearMapping() { _handler = null; _cols = Schemas.EMPTY_COLUMNS; _unq = null; _idx = null; _fk = null; _join = JOIN_FORWARD; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
public void clearMapping() { _handler = null; _cols = Schemas.EMPTY_COLUMNS; _unq = null; _idx = null; _fk = null; _join = JOIN_FORWARD; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
public void clearMapping() { _handler = null; _cols = Schemas.EMPTY_COLUMNS; _unq = null; _idx = null; _fk = null; _join = JOIN_FORWARD; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
public void clearMapping() { _handler = null; _cols = Schemas.EMPTY_COLUMNS; _unq = null; _idx = null; _fk = null; _join = JOIN_FORWARD; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
public void clearMapping() { _handler = null; _cols = Schemas.EMPTY_COLUMNS; _unq = null; _idx = null; _fk = null; _join = JOIN_FORWARD; _info.clear(); setResolve(MODE_MAPPING | MODE_MAPPING_INIT, false); }
/** * Extend to clear annotation mapping info. */ @Override protected void startFieldMapping(FieldMetaData field, Attributes attrs) throws SAXException { super.startFieldMapping(field, attrs); if (getAnnotationParser() != null) { FieldMapping fm = (FieldMapping) field; fm.getMappingInfo().clear(); fm.getValueInfo().clear(); fm.getElementMapping().getValueInfo().clear(); fm.getKeyMapping().getValueInfo().clear(); } }
/** * Extend to clear annotation mapping info. */ @Override protected void startFieldMapping(FieldMetaData field, Attributes attrs) throws SAXException { super.startFieldMapping(field, attrs); if (getAnnotationParser() != null) { FieldMapping fm = (FieldMapping) field; fm.getMappingInfo().clear(); fm.getValueInfo().clear(); fm.getElementMapping().getValueInfo().clear(); fm.getKeyMapping().getValueInfo().clear(); } }
/** * Extend to clear annotation mapping info. */ @Override protected void startFieldMapping(FieldMetaData field, Attributes attrs) throws SAXException { super.startFieldMapping(field, attrs); if (getAnnotationParser() != null) { FieldMapping fm = (FieldMapping) field; fm.getMappingInfo().clear(); fm.getValueInfo().clear(); fm.getElementMapping().getValueInfo().clear(); fm.getKeyMapping().getValueInfo().clear(); } }
/** * Extend to clear annotation mapping info. */ @Override protected void startFieldMapping(FieldMetaData field, Attributes attrs) throws SAXException { super.startFieldMapping(field, attrs); if (getAnnotationParser() != null) { FieldMapping fm = (FieldMapping) field; fm.getMappingInfo().clear(); fm.getValueInfo().clear(); fm.getElementMapping().getValueInfo().clear(); fm.getKeyMapping().getValueInfo().clear(); } }
public void syncMappingInfo() { if (getValueMappedBy() != null) _info.clear(); else { _info.syncWith(this); ClassMapping embed = getEmbeddedMapping(); if (embed != null) embed.syncMappingInfo(); } }
public void syncMappingInfo() { if (getValueMappedBy() != null) _info.clear(); else { _info.syncWith(this); ClassMapping embed = getEmbeddedMapping(); if (embed != null) embed.syncMappingInfo(); } }
public void syncMappingInfo() { if (getValueMappedBy() != null) _info.clear(); else { _info.syncWith(this); ClassMapping embed = getEmbeddedMapping(); if (embed != null) embed.syncMappingInfo(); } }
public void syncMappingInfo() { if (getValueMappedBy() != null) _info.clear(); else { _info.syncWith(this); ClassMapping embed = getEmbeddedMapping(); if (embed != null) embed.syncMappingInfo(); } }
public void syncMappingInfo() { if (getValueMappedBy() != null) _info.clear(); else { _info.syncWith(this); ClassMapping embed = getEmbeddedMapping(); if (embed != null) embed.syncMappingInfo(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { _info.syncWith(this); // setup the version field with our mapping info FieldMapping fm = _mapping.getVersionFieldMapping(); if (fm != null) { // erase explicit strategy if it is standard version strategy for // field type if (_info.getStrategy() != null && _info.getStrategy().equals(getMappingRepository(). defaultStrategy(this, fm).getAlias())) _info.setStrategy(null); fm.getMappingInfo().clear(); fm.getValueInfo().clear(); fm.getKeyMapping().getValueInfo().clear(); fm.getElementMapping().getValueInfo().clear(); fm.getValueInfo().copy(_info); _info.clear(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { _info.syncWith(this); // setup the version field with our mapping info FieldMapping fm = _mapping.getVersionFieldMapping(); if (fm != null) { // erase explicit strategy if it is standard version strategy for // field type if (_info.getStrategy() != null && _info.getStrategy().equals(getMappingRepository(). defaultStrategy(this, fm).getAlias())) _info.setStrategy(null); fm.getMappingInfo().clear(); fm.getValueInfo().clear(); fm.getKeyMapping().getValueInfo().clear(); fm.getElementMapping().getValueInfo().clear(); fm.getValueInfo().copy(_info); _info.clear(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { _info.syncWith(this); // setup the version field with our mapping info FieldMapping fm = _mapping.getVersionFieldMapping(); if (fm != null) { // erase explicit strategy if it is standard version strategy for // field type if (_info.getStrategy() != null && _info.getStrategy().equals(getMappingRepository(). defaultStrategy(this, fm).getAlias())) _info.setStrategy(null); fm.getMappingInfo().clear(); fm.getValueInfo().clear(); fm.getKeyMapping().getValueInfo().clear(); fm.getElementMapping().getValueInfo().clear(); fm.getValueInfo().copy(_info); _info.clear(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { _info.syncWith(this); // setup the version field with our mapping info FieldMapping fm = _mapping.getVersionFieldMapping(); if (fm != null) { // erase explicit strategy if it is standard version strategy for // field type if (_info.getStrategy() != null && _info.getStrategy().equals(getMappingRepository(). defaultStrategy(this, fm).getAlias())) _info.setStrategy(null); fm.getMappingInfo().clear(); fm.getValueInfo().clear(); fm.getKeyMapping().getValueInfo().clear(); fm.getElementMapping().getValueInfo().clear(); fm.getValueInfo().copy(_info); _info.clear(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { _info.syncWith(this); // setup the version field with our mapping info FieldMapping fm = _mapping.getVersionFieldMapping(); if (fm != null) { // erase explicit strategy if it is standard version strategy for // field type if (_info.getStrategy() != null && _info.getStrategy().equals(getMappingRepository(). defaultStrategy(this, fm).getAlias())) _info.setStrategy(null); fm.getMappingInfo().clear(); fm.getValueInfo().clear(); fm.getKeyMapping().getValueInfo().clear(); fm.getElementMapping().getValueInfo().clear(); fm.getValueInfo().copy(_info); _info.clear(); } }
/** * Update {@link MappingInfo} with our current mapping information. */ public void syncMappingInfo() { if (isVersion()) { // we rely on the fact that the version will setup our mapping // info correctly when it is synced } else if (getMappedByMapping() != null) { _info.clear(); _val.getValueInfo().clear(); _key.getValueInfo().clear(); _elem.getValueInfo().clear(); FieldMapping mapped = getMappedByMapping(); _info.syncStrategy(this); if (_orderCol.getColumn() != null && mapped.getOrderColumn() == null) _info.syncOrderColumn(this); _val.getValueInfo().setUseClassCriteria (_val.getUseClassCriteria()); _key.getValueInfo().setUseClassCriteria (_key.getUseClassCriteria()); _elem.getValueInfo().setUseClassCriteria (_elem.getUseClassCriteria()); } else { _info.syncWith(this); _val.syncMappingInfo(); _key.syncMappingInfo(); _elem.syncMappingInfo(); } }