/** * Parse join-column. */ private boolean startJoinColumn(Attributes attrs) throws SAXException { // only join cols in a join table join field table to class table; // others act as data fk cols Object currentParent = currentParent(); if (currentParent == COLLECTION_TABLE) { FieldMapping fm = (FieldMapping) peekElement(); Column col = parseColumn(attrs); List<Column> colList = fm.getMappingInfo().getColumns(); if (colList.isEmpty()) { colList = new ArrayList<Column>(); fm.getMappingInfo().setColumns(colList); } colList.add(col); fm.getMappingInfo().setColumns(colList); return true; } if (currentParent != JOIN_TABLE) return startColumn(attrs); if (_joinCols == null) _joinCols = new ArrayList<Column>(3); _joinCols.add(parseColumn(attrs)); return true; }
/** * Parse join-column. */ private boolean startJoinColumn(Attributes attrs) throws SAXException { // only join cols in a join table join field table to class table; // others act as data fk cols Object currentParent = currentParent(); if (currentParent == COLLECTION_TABLE) { FieldMapping fm = (FieldMapping) peekElement(); Column col = parseColumn(attrs); List<Column> colList = fm.getMappingInfo().getColumns(); if (colList.isEmpty()) { colList = new ArrayList<Column>(); fm.getMappingInfo().setColumns(colList); } colList.add(col); fm.getMappingInfo().setColumns(colList); return true; } if (currentParent != JOIN_TABLE) return startColumn(attrs); if (_joinCols == null) _joinCols = new ArrayList<Column>(3); _joinCols.add(parseColumn(attrs)); return true; }
/** * Parse join-column. */ private boolean startJoinColumn(Attributes attrs) throws SAXException { // only join cols in a join table join field table to class table; // others act as data fk cols Object currentParent = currentParent(); if (currentParent == COLLECTION_TABLE) { FieldMapping fm = (FieldMapping) peekElement(); Column col = parseColumn(attrs); List<Column> colList = fm.getMappingInfo().getColumns(); if (colList.isEmpty()) { colList = new ArrayList<Column>(); fm.getMappingInfo().setColumns(colList); } colList.add(col); fm.getMappingInfo().setColumns(colList); return true; } if (currentParent != JOIN_TABLE) return startColumn(attrs); if (_joinCols == null) _joinCols = new ArrayList<Column>(3); _joinCols.add(parseColumn(attrs)); return true; }
/** * Set the join table information back. */ private void endJoinTable() { FieldMapping fm = (FieldMapping) currentElement(); if (_joinCols != null) fm.getMappingInfo().setColumns(_joinCols); if (_cols != null) fm.getElementMapping().getValueInfo().setColumns(_cols); clearColumnInfo(); }
fm.getMappingInfo().setColumns(defMap._defJoinCols); if (defMap._defElemJoinCols != null) fm.getElementMapping().getValueInfo().setColumns(
fm.getMappingInfo().setColumns(defMap._defJoinCols); if (defMap._defElemJoinCols != null) fm.getElementMapping().getValueInfo().setColumns(
fm.getMappingInfo().setColumns(defMap._defJoinCols); if (defMap._defElemJoinCols != null) fm.getElementMapping().getValueInfo().setColumns(
public void setBi1MJoinTableInfo() { if (getAssociationType() == FieldMetaData.ONE_TO_MANY) { FieldMapping mapped = getBi_MTo1_JTField(); if (mapped != null) { FieldMappingInfo info = getMappingInfo(); FieldMappingInfo mappedInfo = mapped.getMappingInfo(); info.setTableIdentifier(mappedInfo.getTableIdentifier()); info.setColumns(mapped.getElementMapping().getValueInfo().getColumns()); getElementMapping().getValueInfo().setColumns( mappedInfo.getColumns()); } } }
public void setBi1MJoinTableInfo() { if (getAssociationType() == FieldMetaData.ONE_TO_MANY) { FieldMapping mapped = getBi_MTo1_JTField(); if (mapped != null) { FieldMappingInfo info = getMappingInfo(); FieldMappingInfo mappedInfo = mapped.getMappingInfo(); info.setTableIdentifier(mappedInfo.getTableIdentifier()); info.setColumns(mapped.getElementMapping().getValueInfo().getColumns()); getElementMapping().getValueInfo().setColumns( mappedInfo.getColumns()); } } }
public void setBi1MJoinTableInfo() { if (getAssociationType() == FieldMetaData.ONE_TO_MANY) { FieldMapping mapped = getBi_MTo1_JTField(); if (mapped != null) { FieldMappingInfo info = getMappingInfo(); FieldMappingInfo mappedInfo = mapped.getMappingInfo(); info.setTableIdentifier(mappedInfo.getTableIdentifier()); info.setColumns(mapped.getElementMapping().getValueInfo().getColumns()); getElementMapping().getValueInfo().setColumns( mappedInfo.getColumns()); } } }
public void setBi1MJoinTableInfo() { if (getAssociationType() == FieldMetaData.ONE_TO_MANY) { FieldMapping mapped = getBi_MTo1_JTField(); if (mapped != null) { FieldMappingInfo info = getMappingInfo(); FieldMappingInfo mappedInfo = mapped.getMappingInfo(); info.setTableIdentifier(mappedInfo.getTableIdentifier()); info.setColumns(mapped.getElementMapping().getValueInfo().getColumns()); getElementMapping().getValueInfo().setColumns( mappedInfo.getColumns()); } } }
fm.getMappingInfo().setColumns(_joinCols); if (_cols != null) fm.getElementMapping().getValueInfo().setColumns(_cols);
fm.getMappingInfo().setColumns(_joinCols); if (_cols != null) fm.getElementMapping().getValueInfo().setColumns(_cols);
fm.getMappingInfo().setColumns(_joinCols); if (_cols != null) fm.getElementMapping().getValueInfo().setColumns(_cols);
vinfo.setColumns(field.getMappingInfo().getColumns()); field.getMappingInfo().setTableName(null); field.getMappingInfo().setColumns(null);
vinfo.setColumns(field.getMappingInfo().getColumns()); field.getMappingInfo().setTableIdentifier(DBIdentifier.NULL); field.getMappingInfo().setColumns(null);
vinfo.setColumns(field.getMappingInfo().getColumns()); field.getMappingInfo().setTableIdentifier(DBIdentifier.NULL); field.getMappingInfo().setColumns(null);
vinfo.setColumns(field.getMappingInfo().getColumns()); field.getMappingInfo().setTableIdentifier(DBIdentifier.NULL); field.getMappingInfo().setColumns(null);
vinfo.setColumns(field.getMappingInfo().getColumns()); field.getMappingInfo().setTableIdentifier(DBIdentifier.NULL); field.getMappingInfo().setColumns(null);