public ONestedProjection copy() { ONestedProjection result = new ONestedProjection(-1); result.includeItems = includeItems.stream().map(x -> x.copy()).collect(Collectors.toList()); result.excludeItems = excludeItems.stream().map(x -> x.copy()).collect(Collectors.toList()); result.starItem = starItem == null ? null : starItem.copy(); result.recursion = recursion == null ? null : recursion.copy(); return result; }
final public ONestedProjection NestedProjection() throws ParseException { ONestedProjection jjtn000 = new ONestedProjection(JJTNESTEDPROJECTION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);
public void deserialize(OResult fromResult) { all = fromResult.getProperty("all"); if (fromResult.getProperty("alias") != null) { alias = OIdentifier.deserialize(fromResult.getProperty("alias")); } if (fromResult.getProperty("expression") != null) { expression = new OExpression(-1); expression.deserialize(fromResult.getProperty("expression")); } aggregate = fromResult.getProperty("aggregate"); if (fromResult.getProperty("nestedProjection") != null) { nestedProjection = new ONestedProjection(-1); nestedProjection.deserialize(fromResult.getProperty("nestedProjection")); } }
public void deserialize(OResult fromResult) { exclude = fromResult.getProperty("exclude"); star = fromResult.getProperty("star"); if (fromResult.getProperty("field") != null) { expression = new OExpression(-1); expression.deserialize(fromResult.getProperty("expression")); } rightWildcard = fromResult.getProperty("rightWildcard"); if (fromResult.getProperty("expansion") != null) { expansion = new ONestedProjection(-1); expansion.deserialize(fromResult.getProperty("expansion")); } if (fromResult.getProperty("alias") != null) { alias = OIdentifier.deserialize(fromResult.getProperty("alias")); } } }