/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _fk = null; _unq = null; _idx = null; _outer = false; _orderCol.setColumn(null); _val.clearMapping(); _key.clearMapping(); _elem.clearMapping(); _info.clear(); setResolve(MODE_MAPPING, false); }
/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _fk = null; _unq = null; _idx = null; _outer = false; _orderCol.setColumn(null); _val.clearMapping(); _key.clearMapping(); _elem.clearMapping(); _info.clear(); setResolve(MODE_MAPPING, false); }
/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _fk = null; _unq = null; _idx = null; _outer = false; _orderCol.setColumn(null); _val.clearMapping(); _key.clearMapping(); _elem.clearMapping(); _info.clear(); setResolve(MODE_MAPPING, false); }
/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _fk = null; _unq = null; _idx = null; _outer = false; _orderCol.setColumn(null); _val.clearMapping(); _key.clearMapping(); _elem.clearMapping(); _info.clear(); setResolve(MODE_MAPPING, false); }
/** * Clear mapping information, including strategy. */ public void clearMapping() { _strategy = null; _fk = null; _unq = null; _idx = null; _outer = false; _orderCol.setColumn(null); _val.clearMapping(); _key.clearMapping(); _elem.clearMapping(); _info.clear(); setResolve(MODE_MAPPING, 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(); } }
/** * 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(); } }
/** * Synchronize internal information with the mapping data for the given * field. */ public void syncWith(FieldMapping field) { clear(false); if (field.getJoinForeignKey() != null) _tableName = field.getMappingRepository().getDBDictionary(). getFullName(field.getTable(), true); ClassMapping def = field.getDefiningMapping(); setColumnIO(field.getJoinColumnIO()); if (field.getJoinForeignKey() != null && def.getTable() != null) syncForeignKey(field, field.getJoinForeignKey(), field.getTable(), def.getTable()); _outer = field.isJoinOuter(); syncIndex(field, field.getJoinIndex()); syncUnique(field, field.getJoinUnique()); syncOrderColumn(field); syncStrategy(field); }
/** * Synchronize internal information with the mapping data for the given * field. */ public void syncWith(FieldMapping field) { clear(false); if (field.getJoinForeignKey() != null) _tableName = field.getMappingRepository().getDBDictionary(). getFullIdentifier(field.getTable(), true); ClassMapping def = field.getDefiningMapping(); setColumnIO(field.getJoinColumnIO()); if (field.getJoinForeignKey() != null && def.getTable() != null) syncForeignKey(field, field.getJoinForeignKey(), field.getTable(), def.getTable()); _outer = field.isJoinOuter(); syncIndex(field, field.getJoinIndex()); syncUnique(field, field.getJoinUnique()); syncJoinTableUniques(field, field.getJoinTableUniques()); syncOrderColumn(field); syncStrategy(field); }
/** * Synchronize internal information with the mapping data for the given * field. */ public void syncWith(FieldMapping field) { clear(false); if (field.getJoinForeignKey() != null) _tableName = field.getMappingRepository().getDBDictionary(). getFullIdentifier(field.getTable(), true); ClassMapping def = field.getDefiningMapping(); setColumnIO(field.getJoinColumnIO()); if (field.getJoinForeignKey() != null && def.getTable() != null) syncForeignKey(field, field.getJoinForeignKey(), field.getTable(), def.getTable()); _outer = field.isJoinOuter(); syncIndex(field, field.getJoinIndex()); syncUnique(field, field.getJoinUnique()); syncJoinTableUniques(field, field.getJoinTableUniques()); syncOrderColumn(field); syncStrategy(field); }
/** * Synchronize internal information with the mapping data for the given * field. */ public void syncWith(FieldMapping field) { clear(false); if (field.getJoinForeignKey() != null) _tableName = field.getMappingRepository().getDBDictionary(). getFullIdentifier(field.getTable(), true); ClassMapping def = field.getDefiningMapping(); setColumnIO(field.getJoinColumnIO()); if (field.getJoinForeignKey() != null && def.getTable() != null) syncForeignKey(field, field.getJoinForeignKey(), field.getTable(), def.getTable()); _outer = field.isJoinOuter(); syncIndex(field, field.getJoinIndex()); syncUnique(field, field.getJoinUnique()); syncJoinTableUniques(field, field.getJoinTableUniques()); syncOrderColumn(field); syncStrategy(field); }
/** * Synchronize internal information with the mapping data for the given * field. */ public void syncWith(FieldMapping field) { clear(false); if (field.getJoinForeignKey() != null) _tableName = field.getMappingRepository().getDBDictionary(). getFullIdentifier(field.getTable(), true); ClassMapping def = field.getDefiningMapping(); setColumnIO(field.getJoinColumnIO()); if (field.getJoinForeignKey() != null && def.getTable() != null) syncForeignKey(field, field.getJoinForeignKey(), field.getTable(), def.getTable()); _outer = field.isJoinOuter(); syncIndex(field, field.getJoinIndex()); syncUnique(field, field.getJoinUnique()); syncJoinTableUniques(field, field.getJoinTableUniques()); syncOrderColumn(field); syncStrategy(field); }
/** * 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(); } }