Examples of PropertyPath


Examples of com.tll.util.PropertyPath

    Map<String, ISchemaProperty> classMap = getSchemaProperties(entityClass);

    if(!classMap.containsKey(propertyName)) {

      final PropertyPath p = new PropertyPath(propertyName);
      if(p.depth() > 1) {
        // attempt to resolve the given path to a relational property and a
        // localized path
        ISchemaProperty sp;
        for(int i = 0; i < p.depth(); i++) {
          sp = classMap.get(p.pathAt(i));
          if(sp == null || !sp.getPropertyType().isRelational()) break;
          final RelationInfo ri = (RelationInfo) sp;
          if(!schemaMap.containsKey(ri.getRelatedType())) {
            load(ri.getRelatedType());
          }
          classMap = schemaMap.get(ri.getRelatedType());
          final String np = p.clip(i + 1);
          sp = classMap.get(np);
          if(sp != null) return sp;
        }
      }
View Full Code Here

Examples of com.tll.util.PropertyPath

    }
    else {
      assert field instanceof IFieldWidget<?>;
      final IFieldWidget<?> fw = ((IFieldWidget<?>) field);
      final String pname = fw.getPropertyName();
      final PropertyPath p = new PropertyPath(pname);
      p.replace(old, repl);
      fw.setPropertyName(p.toString());
    }
  }
View Full Code Here

Examples of org.apache.any23.extractor.TagSoupExtractionResult.PropertyPath

            List<ResourceRoot> resourceRoots,
            List<PropertyPath> propertyPaths,
            ExtractionContext context
    ) throws TripleHandlerException {
        ResourceRoot currentResourceRoot;
        PropertyPath currentPropertyPath;
        for (int r = 0; r < resourceRoots.size(); r++) {
            currentResourceRoot = resourceRoots.get(r);
            for (int p = 0; p < propertyPaths.size(); p++) {
                currentPropertyPath = propertyPaths.get(p);
                Class<? extends MicroformatExtractor> currentResourceRootExtractor = currentResourceRoot.getExtractor();
                Class<? extends MicroformatExtractor> currentPropertyPathExtractor = currentPropertyPath.getExtractor();
                // Avoid wrong nesting relationships.
                if (currentResourceRootExtractor.equals(currentPropertyPathExtractor)) {
                    continue;
                }
                // Avoid self declaring relationships
                if(MicroformatExtractor.includes(currentPropertyPathExtractor, currentResourceRootExtractor)) {
                    continue;
                }
                if (subPath(currentResourceRoot.getPath(), currentPropertyPath.getPath())) {
                    createNestingRelationship(currentPropertyPath, currentResourceRoot, output, context);
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.any23.extractor.TagSoupExtractionResult.PropertyPath

            List<ResourceRoot> resourceRoots,
            List<PropertyPath> propertyPaths,
            ExtractionContext context
    ) throws TripleHandlerException {
        ResourceRoot currentResourceRoot;
        PropertyPath currentPropertyPath;
        for (int r = 0; r < resourceRoots.size(); r++) {
            currentResourceRoot = resourceRoots.get(r);
            for (int p = 0; p < propertyPaths.size(); p++) {
                currentPropertyPath = propertyPaths.get(p);
                Class<? extends MicroformatExtractor> currentResourceRootExtractor = currentResourceRoot.getExtractor();
                Class<? extends MicroformatExtractor> currentPropertyPathExtractor = currentPropertyPath.getExtractor();
                // Avoid wrong nesting relationships.
                if (currentResourceRootExtractor.equals(currentPropertyPathExtractor)) {
                    continue;
                }
                // Avoid self declaring relationships
                if(MicroformatExtractor.includes(currentPropertyPathExtractor, currentResourceRootExtractor)) {
                    continue;
                }
                if (subPath(currentResourceRoot.getPath(), currentPropertyPath.getPath())) {
                    createNestingRelationship(currentPropertyPath, currentResourceRoot, output, context);
                }
            }
        }
    }
View Full Code Here

Examples of org.hibernate.hql.ast.origin.hql.resolve.path.PropertyPath

        GeneratedHQLResolver.terminalIndexOperation_return terminalIndexOperation377 =null;




            ((propertyReferencePath_scope)propertyReferencePath_stack.peek()).path = new PropertyPath();
         
        try {
            // org/hibernate/hql/ast/origin/hql/resolve/GeneratedHQLResolver.g:532:2: ({...}? unqualifiedPropertyReference | pathedPropertyReference | terminalIndexOperation )
            int alt73=3;
            switch ( input.LA(1) ) {
View Full Code Here

Examples of org.hibernate.hql.ast.origin.hql.resolve.path.PropertyPath

        GeneratedHQLResolver.terminalIndexOperation_return terminalIndexOperation377 =null;




            ((propertyReferencePath_scope)propertyReferencePath_stack.peek()).path = new PropertyPath();
         
        try {
            // org/hibernate/hql/ast/origin/hql/resolve/GeneratedHQLResolver.g:532:2: ({...}? unqualifiedPropertyReference | pathedPropertyReference | terminalIndexOperation )
            int alt73=3;
            switch ( input.LA(1) ) {
View Full Code Here

Examples of org.hibernate.hql.ast.origin.hql.resolve.path.PropertyPath

        GeneratedHQLResolver.terminalIndexOperation_return terminalIndexOperation377 =null;




            ((propertyReferencePath_scope)propertyReferencePath_stack.peek()).path = new PropertyPath();
         
        try {
            // org/hibernate/hql/ast/origin/hql/resolve/GeneratedHQLResolver.g:532:2: ({...}? unqualifiedPropertyReference | pathedPropertyReference | terminalIndexOperation )
            int alt73=3;
            switch ( input.LA(1) ) {
View Full Code Here

Examples of org.hibernate.hql.ast.origin.hql.resolve.path.PropertyPath

        GeneratedHQLResolver.terminalIndexOperation_return terminalIndexOperation377 =null;




            ((propertyReferencePath_scope)propertyReferencePath_stack.peek()).path = new PropertyPath();
         
        try {
            // org/hibernate/hql/ast/origin/hql/resolve/GeneratedHQLResolver.g:532:2: ({...}? unqualifiedPropertyReference | pathedPropertyReference | terminalIndexOperation )
            int alt73=3;
            switch ( input.LA(1) ) {
View Full Code Here

Examples of org.hibernate.loader.PropertyPath

      throw new WalkingException(
          "Fetch owner stack was not empty on start; " +
              "be sure to not use LoadPlanBuilderStrategy instances concurrently"
      );
    }
    propertyPathStack.push( new PropertyPath() );
  }
View Full Code Here

Examples of org.hibernate.loader.PropertyPath

      return path == null ? "<no-path>" : path.getFullPath();
    }

    public void pop() {
      pathStack.removeFirst();
      PropertyPath newHead = pathStack.peekFirst();
      MDC.put( MDC_KEY, extractFullPath( newHead ) );
    }
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.