public String getAlias() { for (OMatchFilterItem item : items) { if (item.alias != null) { return item.alias.getStringValue(); } } return null; }
protected OIdentifier getNextAlias() { OIdentifier result = new OIdentifier(GENERATED_ALIAS_PREFIX + (nextAliasId++)); result.internalAlias = true; return result; }
@Override public OCreateFunctionStatement copy() { OCreateFunctionStatement result = new OCreateFunctionStatement(-1); result.name = name == null ? null : name.copy(); result.codeQuoted = codeQuoted; result.code = code; result.parameters = parameters == null ? null : parameters.stream().map(x -> x.copy()).collect(Collectors.toList()); result.idempotent = idempotent; result.language = language == null ? null : language.copy(); return result; }
public OIdentifier getDefaultAlias() { OIdentifier identifier; if (isBaseIdentifier()) { identifier = new OIdentifier(((OBaseExpression) mathExpression).identifier.getSuffix().identifier.getStringValue()); } else { identifier = new OIdentifier(this.toString()); } return identifier; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; OBeginStatement that = (OBeginStatement) o; if (isolation != null ? !isolation.equals(that.isolation) : that.isolation != null) return false; return true; }
@Override public int hashCode() { int result = name != null ? name.hashCode() : 0; result = 31 * result + (type != null ? type.hashCode() : 0); result = 31 * result + (sourceClass != null ? sourceClass.hashCode() : 0); result = 31 * result + (sourceField != null ? sourceField.hashCode() : 0); result = 31 * result + (sourceRecordAttr != null ? sourceRecordAttr.hashCode() : 0); result = 31 * result + (destClass != null ? destClass.hashCode() : 0); result = 31 * result + (destField != null ? destField.hashCode() : 0); result = 31 * result + (destRecordAttr != null ? destRecordAttr.hashCode() : 0); result = 31 * result + (inverse ? 1 : 0); return result; }
public void deserialize(OResult fromResult) { if (fromResult.getProperty("clusters") != null) { clusters = new ArrayList<>(); List<OResult> ser = fromResult.getProperty("clusters"); for (OResult item : ser) { OIdentifier id = OIdentifier.deserialize(item); clusters.add(id); } } } }
@Override public OResultSet executeSimple(OCommandContext ctx) { execute(ctx); OInternalResultSet rs = new OInternalResultSet(); OResultInternal result = new OResultInternal(); result.setProperty("operation", "create link"); result.setProperty("name", name.getValue()); result.setProperty("fromClass", sourceClass.getStringValue()); result.setProperty("toClass", destClass.getStringValue()); rs.add(result); return rs; }
final public OIdentifier Identifier() throws ParseException { OIdentifier jjtn000 = new OIdentifier(JJTIDENTIFIER); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); jjtn000.jjtSetFirstToken(getToken(1));Token quotedToken = null; Token token = null; try { jjtn000.jjtSetLastToken(getToken(0)); if(token!=null){ jjtn000.value = token.image; if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); jjtn000.jjtSetLastToken(getToken(0));
public OCreateVertexExecutionPlanner(OCreateVertexStatement statement) { this.targetClass = statement.getTargetClass() == null ? null : statement.getTargetClass().copy(); this.targetClusterName = statement.getTargetClusterName() == null ? null : statement.getTargetClusterName().copy(); this.targetCluster = statement.getTargetCluster() == null ? null : statement.getTargetCluster().copy(); if (this.targetClass == null && this.targetCluster == null && this.targetClusterName == null) { this.targetClass = new OIdentifier("V"); } this.insertBody = statement.getInsertBody() == null ? null : statement.getInsertBody().copy(); this.returnStatement = statement.getReturnStatement() == null ? null : statement.getReturnStatement().copy(); }
public boolean isEarlyCalculated(OCommandContext ctx) { if (identifier != null && identifier.isEarlyCalculated(ctx)) { return true; } return false; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; OCommandLineOption that = (OCommandLineOption) o; if (name != null ? !name.equals(that.name) : that.name != null) return false; return true; }
@Override public int hashCode() { int result = name != null ? name.hashCode() : 0; result = 31 * result + (recordAttribute != null ? recordAttribute.hashCode() : 0); result = 31 * result + (byKey ? 1 : 0); result = 31 * result + (byValue ? 1 : 0); result = 31 * result + (collate != null ? collate.hashCode() : 0); return result; }
public void deserialize(OResult fromResult) { if (fromResult.getProperty("items") != null) { List<OResult> ser = fromResult.getProperty("items"); items = new ArrayList<>(); for (OResult r : ser) { OIdentifier exp = OIdentifier.deserialize(r); items.add(exp); } } } }
public String getDepthAlias() { for (OMatchFilterItem item : items) { if (item.depthAlias != null) { return item.depthAlias.getStringValue(); } } return null; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ODropUserStatement that = (ODropUserStatement) o; return name != null ? name.equals(that.name) : that.name == null; }
@Override public OCreatePropertyStatement copy() { OCreatePropertyStatement result = new OCreatePropertyStatement(-1); result.className = className == null ? null : className.copy(); result.propertyName = propertyName == null ? null : propertyName.copy(); result.propertyType = propertyType == null ? null : propertyType.copy(); result.linkedType = linkedType == null ? null : linkedType.copy(); result.unsafe = unsafe; result.ifNotExists = ifNotExists; result.attributes = attributes == null ? null : attributes.stream().map(x -> x.copy()).collect(Collectors.toList()); return result; }
@Override public int hashCode() { int result = name != null ? name.hashCode() : 0; result = 31 * result + (attributeName != null ? attributeName.hashCode() : 0); result = 31 * result + (starred ? 1 : 0); result = 31 * result + (attributeValue != null ? attributeValue.hashCode() : 0); return result; } }