public XJoinEdge withFrom(XTableReference value) { setFrom(value); return this; }
public XJoinEdge withTo(XTableReference value) { setTo(value); return this; }
/** * Create an instance of {@link XJoinEdge } * */ public XJoinEdge createXJoinEdge() { return new XJoinEdge(); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XTableReference theFrom; theFrom = this.getFrom(); strategy.appendField(locator, this, "from", buffer, theFrom); } { XTableReference theTo; theTo = this.getTo(); strategy.appendField(locator, this, "to", buffer, theTo); } return buffer; }
public static XJoinPath xJoinPathFromJoinPath(JoinChain.Path path) { XJoinPath xjp = XCF.createXJoinPath(); xjp.setEdges(new XJoinEdges()); for (JoinChain.Edge edge : path.getLinks()) { XJoinEdge xje = XCF.createXJoinEdge(); xje.setFrom(xTabReferenceFromTabReference(edge.getFrom())); xje.setTo(xTabReferenceFromTabReference(edge.getTo())); xjp.getEdges().getEdge().add(xje); } return xjp; }
private void testJoinChains(LensDimensionCommands command) { XJoinChains chains = new XJoinChains(); XJoinChain chain1 = new XJoinChain(); chain1.setPaths(new XJoinPaths()); XJoinPath path = new XJoinPath(); path.setEdges(new XJoinEdges()); XJoinEdge edge1 = new XJoinEdge(); XTableReference ref1 = new XTableReference(); ref1.setTable("test_dim"); ref1.setColumn("d2id"); XTableReference ref2 = new XTableReference(); ref2.setTable("test_detail"); ref2.setColumn("id"); edge1.setFrom(ref1); edge1.setTo(ref2); path.getEdges().getEdge().add(edge1); chain1.setName("dim2chain"); chain1.getPaths().getPath().add(path); chain1.setDestTable("test_detail"); chains.getJoinChain().add(chain1); assertEquals(command.showJoinChains("test_dim"), new XJoinChainTable(chains).toString()); }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public String toString() { final ToStringStrategy strategy = new YAMLToStringStrategy(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public static XJoinPath xJoinPathFromJoinPath(JoinChain.Path path) { XJoinPath xjp = XCF.createXJoinPath(); xjp.setEdges(new XJoinEdges()); for (JoinChain.Edge edge : path.getLinks()) { XJoinEdge xje = XCF.createXJoinEdge(); xje.setFrom(xTabReferenceFromTabReference(edge.getFrom())); xje.setTo(xTabReferenceFromTabReference(edge.getTo())); xjp.getEdges().getEdge().add(xje); } return xjp; }
XJoinPath path = new XJoinPath(); path.setEdges(new XJoinEdges()); XJoinEdge edge1 = new XJoinEdge(); XTableReference ref1 = new XTableReference(); ref1.setTable("sample_cube"); ref2.setTable("test_detail"); ref2.setColumn("id"); edge1.setFrom(ref1); edge1.setTo(ref2); path.getEdges().getEdge().add(edge1); chain1.setName("testdetailchain"); XJoinPath path2 = new XJoinPath(); path2.setEdges(new XJoinEdges()); XJoinEdge edge2 = new XJoinEdge(); XTableReference ref3 = new XTableReference(); ref3.setTable("sample_cube"); ref4.setTable("test_dim"); ref4.setColumn("id"); edge2.setFrom(ref3); edge2.setTo(ref4); path2.getEdges().getEdge().add(edge2); chain2.setName("testdimchain");
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XTableReference theFrom; theFrom = this.getFrom(); strategy.appendField(locator, this, "from", buffer, theFrom); } { XTableReference theTo; theTo = this.getTo(); strategy.appendField(locator, this, "to", buffer, theTo); } return buffer; }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public String toString() { final ToStringStrategy strategy = new YAMLToStringStrategy(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XTableReference theFrom; theFrom = this.getFrom(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "from", theFrom), currentHashCode, theFrom); } { XTableReference theTo; theTo = this.getTo(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "to", theTo), currentHashCode, theTo); } return currentHashCode; }
public XJoinEdge withFrom(XTableReference value) { setFrom(value); return this; }
public XJoinEdge withTo(XTableReference value) { setTo(value); return this; }
/** * Create an instance of {@link XJoinEdge } * */ public XJoinEdge createXJoinEdge() { return new XJoinEdge(); }
link2.setMapsToMany(true); XJoinEdge edge1 = cubeObjectFactory.createXJoinEdge(); edge1.setFrom(link1); edge1.setTo(link2); path1.getEdges().getEdge().add(edge1); xj1.getPaths().getPath().add(path1); link4.setTable("testdim2"); link4.setColumn("col1"); edge2.setFrom(link3); edge2.setTo(link4); path.getEdges().getEdge().add(edge2); xj2.getPaths().getPath().add(path);
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XTableReference theFrom; theFrom = this.getFrom(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "from", theFrom), currentHashCode, theFrom); } { XTableReference theTo; theTo = this.getTo(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "to", theTo), currentHashCode, theTo); } return currentHashCode; }