public Object visit(RelationQueryNode node, Object data) throws RepositoryException { StringBuffer buffer = (StringBuffer) data; buffer.append(PADDING, 0, indent); buffer.append("+ RelationQueryNode: Op: "); buffer.append(QueryConstants.OPERATION_NAMES.getName(node.getOperation())); buffer.append(" Prop=["); PathQueryNode relPath = node.getRelativePath(); if (relPath == null) { buffer.append(relPath); } else { visit(relPath, buffer); } buffer.append("] Type=").append(QueryConstants.TYPE_NAMES.getName(node.getValueType())); if (node.getValueType() == QueryConstants.TYPE_DATE) { buffer.append(" Value=").append(node.getDateValue()); } else if (node.getValueType() == QueryConstants.TYPE_DOUBLE) { buffer.append(" Value=").append(node.getDoubleValue()); } else if (node.getValueType() == QueryConstants.TYPE_LONG) { buffer.append(" Value=").append(node.getLongValue()); } else if (node.getValueType() == QueryConstants.TYPE_POSITION) { buffer.append(" Value=").append(node.getPositionValue()); } else if (node.getValueType() == QueryConstants.TYPE_STRING) { buffer.append(" Value=").append(node.getStringValue()); } else if (node.getValueType() == QueryConstants.TYPE_TIMESTAMP) { buffer.append(" Value=").append(node.getDateValue()); } buffer.append("\n"); traverse(node.getOperands(), buffer); return buffer; }
public Object visit(RelationQueryNode node, Object data) throws RepositoryException { StringBuffer buffer = (StringBuffer) data; buffer.append(PADDING, 0, indent); buffer.append("+ RelationQueryNode: Op: "); buffer.append(QueryConstants.OPERATION_NAMES.getName(node.getOperation())); buffer.append(" Prop=["); PathQueryNode relPath = node.getRelativePath(); if (relPath == null) { buffer.append(relPath); } else { visit(relPath, buffer); } buffer.append("] Type=").append(QueryConstants.TYPE_NAMES.getName(node.getValueType())); if (node.getValueType() == QueryConstants.TYPE_DATE) { buffer.append(" Value=").append(node.getDateValue()); } else if (node.getValueType() == QueryConstants.TYPE_DOUBLE) { buffer.append(" Value=").append(node.getDoubleValue()); } else if (node.getValueType() == QueryConstants.TYPE_LONG) { buffer.append(" Value=").append(node.getLongValue()); } else if (node.getValueType() == QueryConstants.TYPE_POSITION) { buffer.append(" Value=").append(node.getPositionValue()); } else if (node.getValueType() == QueryConstants.TYPE_STRING) { buffer.append(" Value=").append(node.getStringValue()); } else if (node.getValueType() == QueryConstants.TYPE_TIMESTAMP) { buffer.append(" Value=").append(node.getDateValue()); } buffer.append("\n"); traverse(node.getOperands(), buffer); return buffer; }
PathQueryNode relPath = node.getRelativePath(); if (relPath == null) { propPath.append(".");
PathQueryNode relPath = node.getRelativePath(); if (relPath == null) { propPath.append(".");
try { StringBuffer propName = new StringBuffer(); PathQueryNode relPath = node.getRelativePath(); if (relPath == null) { propName.append(".");
try { StringBuffer propName = new StringBuffer(); PathQueryNode relPath = node.getRelativePath(); if (relPath == null) { propName.append(".");
if (like.getRelativePath() == null) { exceptions.add(new InvalidQueryException("Wrong first argument type for jcr:like")); } else if (queryNode.getType() == QueryNode.TYPE_RELATION) { RelationQueryNode relNode = (RelationQueryNode) queryNode; DerefQueryNode deref = createDerefQueryNode(node, descendant, relNode.getRelativePath()); relNode.getRelativePath().addPathStep(deref); } else { exceptions.add(new InvalidQueryException("Unsupported location for jcr:deref()"));
if (like.getRelativePath() == null) { exceptions.add(new InvalidQueryException("Wrong first argument type for jcr:like")); } else if (queryNode.getType() == QueryNode.TYPE_RELATION) { RelationQueryNode relNode = (RelationQueryNode) queryNode; DerefQueryNode deref = createDerefQueryNode(node, descendant, relNode.getRelativePath()); relNode.getRelativePath().addPathStep(deref); } else { exceptions.add(new InvalidQueryException("Unsupported location for jcr:deref()"));
public Object visit(RelationQueryNode node, Object data) throws RepositoryException { PathQueryNode relPath = node.getRelativePath(); if (relPath == null && node.getOperation() != QueryConstants.OPERATION_SIMILAR
public Object visit(RelationQueryNode node, Object data) throws RepositoryException { PathQueryNode relPath = node.getRelativePath(); if (relPath == null && node.getOperation() != QueryConstants.OPERATION_SIMILAR
tmpRelPath = new PathBuilder(); PathQueryNode relPath = tmp.getRelativePath(); LocationStepQueryNode[] steps = relPath.getPathSteps();
tmpRelPath = new PathBuilder(); PathQueryNode relPath = tmp.getRelativePath(); LocationStepQueryNode[] steps = relPath.getPathSteps();