public String getUniqueNameSsas() { return Util.makeFqName(dimension, name); }
protected LevelBase( Hierarchy hierarchy, String name, String caption, boolean visible, String description, int depth, LevelType levelType) { this.hierarchy = hierarchy; this.name = name; this.caption = caption; this.visible = visible; this.description = description; this.uniqueName = Util.makeFqName(hierarchy, name); this.depth = depth; this.levelType = levelType; }
/** * Creates a DimensionBase. * * @param name Name * @param dimensionType Type * @param highCardinality Whether high-cardinality */ protected DimensionBase( String name, String caption, boolean visible, String description, DimensionType dimensionType, boolean highCardinality) { this.name = name; this.caption = caption; this.visible = visible; this.uniqueName = Util.makeFqName(name); this.description = description; this.dimensionType = dimensionType; this.highCardinality = highCardinality; }
private String calcMemberFqName(MondrianDef.CalculatedMember xmlCalcMember) { if (xmlCalcMember.dimension != null) { return Util.makeFqName( Util.quoteMdxIdentifier(xmlCalcMember.dimension), xmlCalcMember.name); } else { return Util.makeFqName( xmlCalcMember.hierarchy, xmlCalcMember.name); } }
private void preNamedSet( MondrianDef.NamedSet xmlNamedSet, Set<String> nameSet, StringBuilder buf) { if (!nameSet.add(xmlNamedSet.name)) { throw MondrianResource.instance().NamedSetNotUnique.ex( xmlNamedSet.name, getName()); } buf.append("SET ") .append(Util.makeFqName(xmlNamedSet.name)) .append(Util.nl) .append(" AS "); Util.singleQuoteString(xmlNamedSet.getFormula(), buf); buf.append(Util.nl); }
private String getUniqueNameWithoutAll(Member member) { // build unique string Member parentMember = member.getParentMember(); if ((parentMember != null) && !parentMember.isAll()) { return Util.makeFqName( getUniqueNameWithoutAll(parentMember), member.getName()); } else { return Util.makeFqName(member.getHierarchy(), member.getName()); } }
void makeUniqueName(HierarchyUsage hierarchyUsage) { if (parentMember == null && key != null) { String n = hierarchyUsage.getName(); if (n != null) { String name = keyToString(key); n = Util.quoteMdxIdentifier(n); this.uniqueName = Util.makeFqName(n, name); if (getLogger().isDebugEnabled()) { getLogger().debug( "RolapMember.makeUniqueName: uniqueName=" + uniqueName); } } } }
this.uniqueName = Util.makeFqName(dimension, name); } else { if (name.equals(level.getName())) { this.uniqueName = Util.makeFqName( Util.makeFqName( hierarchy.getUniqueName(), level.getName()), name); } else { this.uniqueName = Util.makeFqName(hierarchy, name); this.uniqueName = Util.makeFqName(parentMember, name);
subName.equals(name) ? dimension.getUniqueName() : Util.makeFqName(dimension, this.name); } else { this.subName = subName; } else { this.uniqueName = Util.makeFqName(this.name);
this.uniqueName = Util.makeFqName(getDimension(), name); } else { this.uniqueName = Util.makeFqName(getHierarchy(), name);
final String fqName = Util.makeFqName(parentFqName, xmlCalcMember.name); for (int i = 0; i < calculatedMemberList.size(); i++) { Formula formula = calculatedMemberList.get(i);