Examples of NodePath


Examples of org.jboss.dna.graph.query.model.NodePath

            if (!mapping.isMappedToSingleSelector()) return depth;
            node.addSelector(mapping.getSingleMappedSelectorName());
            return new NodeDepth(mapping.getSingleMappedSelectorName());
        }
        if (operand instanceof NodePath) {
            NodePath path = (NodePath)operand;
            if (!mapping.getOriginalName().equals(path.getSelectorName())) return path;
            if (!mapping.isMappedToSingleSelector()) return path;
            node.addSelector(mapping.getSingleMappedSelectorName());
            return new NodePath(mapping.getSingleMappedSelectorName());
        }
        return operand;
    }
View Full Code Here

Examples of org.jboss.dna.graph.query.model.NodePath

         * {@inheritDoc}
         *
         * @see org.jboss.dna.graph.query.QueryBuilder.OrderByOperandBuilder#path(java.lang.String)
         */
        public OrderByBuilder path( String table ) {
            return addOrdering(new NodePath(selector(table)));
        }
View Full Code Here

Examples of org.jboss.dna.graph.query.model.NodePath

         * {@inheritDoc}
         *
         * @see org.jboss.dna.graph.query.QueryBuilder.DynamicOperandBuilder#path(java.lang.String)
         */
        public ComparisonBuilder path( String table ) {
            return comparisonBuilder(new NodePath(selector(table)));
        }
View Full Code Here

Examples of org.jboss.dna.graph.query.model.NodePath

            result = new NodeDepth(parseSelectorName(tokens));
            tokens.consume(")");
        } else if (tokens.canConsume("PATH", "(")) {
            if (tokens.canConsume(")")) {
                if (source instanceof Selector) {
                    return new NodePath(((Selector)source).getName());
                }
                String msg = GraphI18n.functionIsAmbiguous.text("PATH()", pos.getLine(), pos.getColumn());
                throw new ParsingException(pos, msg);
            }
            result = new NodePath(parseSelectorName(tokens));
            tokens.consume(")");
        } else {
            result = parsePropertyValue(tokens, typeSystem, source);
        }
View Full Code Here

Examples of org.jboss.dna.graph.query.model.NodePath

                    return new Long(path.size());
                }
            };
        }
        if (operand instanceof NodePath) {
            NodePath nodePath = (NodePath)operand;
            final int locationIndex = columns.getLocationIndex(nodePath.getSelectorName().getName());
            return new DynamicOperation() {
                public String getExpectedType() {
                    return stringFactory.getTypeName();
                }
View Full Code Here

Examples of org.jitterbit.integration.structure.mapping.NodePath

        String pattern = "if(IsNull({0}), {0} = {1});\n{0}[SourceInstanceCount() - 1]";
        return MessageFormat.format(pattern, deName, path);
    }

    private String constructArrayDataElementName(Node node) {
        NodePath path = new NodePath(node.m_deName);
        String leaf = path.getLeafName();
        String deName = "$jitterbit.connect.upsert." + leaf;
        if (!leaf.endsWith("s")) {
            deName += "s";
        }
        return deName;
View Full Code Here

Examples of org.modeshape.jcr.query.model.NodePath

    protected NodePath nodePath( String selectorName ) {
        return nodePath(selector(selectorName));
    }

    protected NodePath nodePath( SelectorName selectorName ) {
        return new NodePath(selectorName);
    }
View Full Code Here

Examples of org.neo4j.rest.graphdb.traversal.NodePath

        }
        return null;
    }

    protected Path toPath(Object value, Class<?> sourceType) {
        if (Node.class.isAssignableFrom(sourceType)) return new NodePath((Node) value);
        if (Relationship.class.isAssignableFrom(sourceType)) return new RelationshipPath((Relationship) value);
        return null;
    }
View Full Code Here

Examples of org.springframework.data.neo4j.support.path.NodePath

        }
        return null;
    }

    protected Path toPath(Object value, Class<?> sourceType) {
        if (Node.class.isAssignableFrom(sourceType)) return new NodePath((Node) value);
        if (Relationship.class.isAssignableFrom(sourceType)) return new RelationshipPath((Relationship) value);
        return null;
    }
View Full Code Here

Examples of org.talend.esb.servicelocator.client.internal.NodePath

        zkBackend.ensurePathDeleted(this, true);       
    }

    public void setLive(boolean persistent) throws ServiceLocatorException, InterruptedException {
        CreateMode mode = persistent ? CreateMode.PERSISTENT : CreateMode.EPHEMERAL;
        NodePath endpointStatusNodePath = child(LIVE);
        zkBackend.ensurePathExists(endpointStatusNodePath, mode);
       
        // the old expiration time is not valid after re-registering the endpoint
        zkBackend.ensurePathDeleted(child(TIMETOLIVE), false);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.