Examples of PathedPropertyReference


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

    throw new UnsupportedOperationException( "Not implemented yet" );
  }

  @Override
  public PathedPropertyReferenceSource normalizePropertyPathTerminus(PropertyPath path, Tree propertyNameNode) {
    return new PathedPropertyReference( propertyNameNode.getText(), null, false );
  }
View Full Code Here

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

      if (entityNamesResolver.getClassFromName(entityNameForAlias) == null) {
         throw new IllegalStateException("Unknown entity name " + entityNameForAlias);
      }

      return new PathedPropertyReference(root.getText(), new FilterEntityTypeDescriptor(entityNameForAlias, propertyHelper), true);
   }
View Full Code Here

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

      }

      List<String> newPath = new LinkedList<String>(path.getNodeNamesWithoutAlias());
      newPath.add(propertyName.getText());

      return new PathedPropertyReference(propertyName.getText(), new FilterEmbeddedEntityTypeDescriptor(sourceType.getEntityType(), newPath, propertyHelper), false);
   }
View Full Code Here

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

      }

      if (type.hasEmbeddedProperty(propertyName)) {
         List<String> newPath = new LinkedList<String>(path);
         newPath.add(propertyName);
         return new PathedPropertyReference(propertyName, new FilterEmbeddedEntityTypeDescriptor(type.getEntityType(), newPath, propertyHelper), false);
      }

      return new PathedPropertyReference(propertyName, new FilterPropertyTypeDescriptor(), false);
   }
View Full Code Here

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

      if (propertyHelper.getEntityNamesResolver().getClassFromName(entityNameForAlias) == null) {
         throw new IllegalStateException("Unknown entity name " + entityNameForAlias);
      }

      return new PathedPropertyReference(root.getText(), new FilterEntityTypeDescriptor(entityNameForAlias, propertyHelper), true);
   }
View Full Code Here

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

      }

      List<String> newPath = new LinkedList<String>(path.getNodeNamesWithoutAlias());
      newPath.add(propertyName.getText());

      return new PathedPropertyReference(propertyName.getText(), new FilterEmbeddedEntityTypeDescriptor(sourceType.getEntityType(), newPath, propertyHelper), false);
   }
View Full Code Here

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

      }

      if (type.hasEmbeddedProperty(propertyName)) {
         List<String> newPath = new LinkedList<String>(path);
         newPath.add(propertyName);
         return new PathedPropertyReference(propertyName, new FilterEmbeddedEntityTypeDescriptor(type.getEntityType(), newPath, propertyHelper), false);
      }

      return new PathedPropertyReference(propertyName, new FilterPropertyTypeDescriptor(), false);
   }
View Full Code Here

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

      throw log.getUnknownAliasException( root.getText() );
    }

    Class<?> entityType = entityNames.getClassFromName( entityNameForAlias );

    return new PathedPropertyReference(
        root.getText(),
        new HSearchIndexedEntityTypeDescriptor( entityType, propertyHelper ),
        true
    );
  }
View Full Code Here

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

    }

    List<String> newPath = new LinkedList<String>( path.getNodeNamesWithoutAlias() );
    newPath.add( propertyName.getText() );

    PathedPropertyReference property = new PathedPropertyReference(
        propertyName.getText(),
        new HSearchEmbeddedEntityTypeDescriptor(
            sourceType.getIndexedEntityType(),
            newPath,
            propertyHelper
View Full Code Here

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

    }

    if ( type.isEmbedded( propertyName ) ) {
      List<String> newPath = new LinkedList<String>( path );
      newPath.add( propertyName );
      return new PathedPropertyReference(
          propertyName,
          new HSearchEmbeddedEntityTypeDescriptor( type.getIndexedEntityType(), newPath, propertyHelper ),
          false)
      ;
    }
    else {
      return new PathedPropertyReference(
          propertyName,
          new HSearchPropertyTypeDescriptor(),
          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.