public XFlattenedColumnTable(XFlattenedColumns flattenedColumns, String table) { this.table = table; for (XFlattenedColumn column : flattenedColumns.getFlattenedColumn()) { XField field = firstNonNull(column.getDimAttribute(), column.getMeasure(), column.getExpression()); if (field != null) { if (!tables.containsKey(field.getClass())) { tables.put(field.getClass(), CollectionTableFactory.getCollectionTable(field.getClass(), table)); } tables.get(field.getClass()).getCollection().add(column); } else { if (column.getChainName() != null) { chainNames.add(column.getChainName()); } if (column.getTableName() != null) { tableNames.add(column.getTableName()); } } } }
public XFlattenedColumnTable(XFlattenedColumns flattenedColumns, String table) { this.table = table; for (XFlattenedColumn column : flattenedColumns.getFlattenedColumn()) { XField field = firstNonNull(column.getDimAttribute(), column.getMeasure(), column.getExpression()); if (field != null) { if (!tables.containsKey(field.getClass())) { tables.put(field.getClass(), CollectionTableFactory.getCollectionTable(field.getClass(), table)); } tables.get(field.getClass()).getCollection().add(column); } else { if (column.getChainName() != null) { chainNames.add(column.getChainName()); } if (column.getTableName() != null) { tableNames.add(column.getTableName()); } } } }
private void populateActualTablesAndCols(List<XFlattenedColumn> columns, Set<String> tables, Set<String> colSet) { for (XFlattenedColumn colObject : columns) { String colStr; tables.add(colObject.getTableName()); if (colObject.getMeasure() != null) { colStr = colObject.getTableName() + "." + colObject.getMeasure().getName(); } else if (colObject.getDimAttribute() != null) { colStr = (colObject.getChainName() != null ? colObject.getChainName() + "-" : "") + colObject.getTableName() + "." + colObject.getDimAttribute().getName(); } else { // it will be expression colStr = (colObject.getChainName() != null ? colObject.getChainName() + "-" : "") + colObject.getTableName() + "." + colObject.getExpression().getName(); } colSet.add(colStr); } }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XMeasure theMeasure; theMeasure = this.getMeasure(); strategy.appendField(locator, this, "measure", buffer, theMeasure); } { XExprColumn theExpression; theExpression = this.getExpression(); strategy.appendField(locator, this, "expression", buffer, theExpression); } { XDimAttribute theDimAttribute; theDimAttribute = this.getDimAttribute(); strategy.appendField(locator, this, "dimAttribute", buffer, theDimAttribute); } { String theTableName; theTableName = this.getTableName(); strategy.appendField(locator, this, "tableName", buffer, theTableName); } { String theChainName; theChainName = this.getChainName(); strategy.appendField(locator, this, "chainName", buffer, theChainName); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XMeasure theMeasure; theMeasure = this.getMeasure(); strategy.appendField(locator, this, "measure", buffer, theMeasure); } { XExprColumn theExpression; theExpression = this.getExpression(); strategy.appendField(locator, this, "expression", buffer, theExpression); } { XDimAttribute theDimAttribute; theDimAttribute = this.getDimAttribute(); strategy.appendField(locator, this, "dimAttribute", buffer, theDimAttribute); } { String theTableName; theTableName = this.getTableName(); strategy.appendField(locator, this, "tableName", buffer, theTableName); } { String theChainName; theChainName = this.getChainName(); strategy.appendField(locator, this, "chainName", buffer, theChainName); } return buffer; }
lhsMeasure = this.getMeasure(); XMeasure rhsMeasure; rhsMeasure = that.getMeasure(); if (!strategy.equals(LocatorUtils.property(thisLocator, "measure", lhsMeasure), LocatorUtils.property(thatLocator, "measure", rhsMeasure), lhsMeasure, rhsMeasure)) { return false;
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XMeasure theMeasure; theMeasure = this.getMeasure(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "measure", theMeasure), currentHashCode, theMeasure); } { XExprColumn theExpression; theExpression = this.getExpression(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expression", theExpression), currentHashCode, theExpression); } { XDimAttribute theDimAttribute; theDimAttribute = this.getDimAttribute(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dimAttribute", theDimAttribute), currentHashCode, theDimAttribute); } { String theTableName; theTableName = this.getTableName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tableName", theTableName), currentHashCode, theTableName); } { String theChainName; theChainName = this.getChainName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "chainName", theChainName), currentHashCode, theChainName); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XMeasure theMeasure; theMeasure = this.getMeasure(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "measure", theMeasure), currentHashCode, theMeasure); } { XExprColumn theExpression; theExpression = this.getExpression(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expression", theExpression), currentHashCode, theExpression); } { XDimAttribute theDimAttribute; theDimAttribute = this.getDimAttribute(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dimAttribute", theDimAttribute), currentHashCode, theDimAttribute); } { String theTableName; theTableName = this.getTableName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tableName", theTableName), currentHashCode, theTableName); } { String theChainName; theChainName = this.getChainName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "chainName", theChainName), currentHashCode, theChainName); } return currentHashCode; }
lhsMeasure = this.getMeasure(); XMeasure rhsMeasure; rhsMeasure = that.getMeasure(); if (!strategy.equals(LocatorUtils.property(thisLocator, "measure", lhsMeasure), LocatorUtils.property(thatLocator, "measure", rhsMeasure), lhsMeasure, rhsMeasure)) { return false;