Examples of MapEntryExpression


Examples of org.eclipse.persistence.internal.expressions.MapEntryExpression

      IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression();

      // Create the Expression for the identification variable
      identificationVariable.accept(ExpressionBuilderVisitor.this);
      localExpression = new MapEntryExpression(queryExpression);

      // Retrieve the mapping's key mapping's descriptor
      descriptor = queryContext.resolveDescriptor(expression);
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.expressions.MapEntryExpression

        if (!(expression.isQueryKeyExpression())) {
            return null;
        }
       
        if (expression.isMapEntryExpression()){
            MapEntryExpression teExpression = (MapEntryExpression)expression;
           
            // get the expression that we want the table entry for
            QueryKeyExpression baseExpression = (QueryKeyExpression)teExpression.getBaseExpression();
           
            // get the expression that owns the mapping for the table entry
            Expression owningExpression = baseExpression.getBaseExpression();
            ClassDescriptor owningDescriptor = getLeafDescriptorFor(owningExpression, rootDescriptor);
           
            // Get the mapping that owns the table
            CollectionMapping mapping = (CollectionMapping)owningDescriptor.getObjectBuilder().getMappingForAttributeName(baseExpression.getName());
           
            if (teExpression.shouldReturnMapEntry()){
                return mapping;
            }
            if (mapping.getContainerPolicy().isMappedKeyMapPolicy()){
                MappedKeyMapContainerPolicy policy = (MappedKeyMapContainerPolicy)mapping.getContainerPolicy();
                return (DatabaseMapping)policy.getKeyMapping();
View Full Code Here

Examples of org.eclipse.persistence.internal.expressions.MapEntryExpression

     * INTERNAL
     * Generate the a new EclipseLink TableEntryExpression for this node.
     */
    public Expression generateExpression(GenerationContext context) {
        Expression owningExpression = getLeft().generateExpression(context);
        MapEntryExpression whereClause = new MapEntryExpression(owningExpression);
        return whereClause;
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.expressions.MapEntryExpression

        if (!(expression.isQueryKeyExpression())) {
            return null;
        }
       
        if (expression.isMapEntryExpression()){
            MapEntryExpression teExpression = (MapEntryExpression)expression;
           
            // get the expression that we want the table entry for
            QueryKeyExpression baseExpression = (QueryKeyExpression)teExpression.getBaseExpression();
           
            // get the expression that owns the mapping for the table entry
            Expression owningExpression = baseExpression.getBaseExpression();
            ClassDescriptor owningDescriptor = getLeafDescriptorFor(owningExpression, rootDescriptor);
           
            // Get the mapping that owns the table
            CollectionMapping mapping = (CollectionMapping)owningDescriptor.getObjectBuilder().getMappingForAttributeName(baseExpression.getName());
           
            if (teExpression.shouldReturnMapEntry()){
                return mapping;
            }
            if (mapping.getContainerPolicy().isMappedKeyMapPolicy()){
                MappedKeyMapContainerPolicy policy = (MappedKeyMapContainerPolicy)mapping.getContainerPolicy();
                return (DatabaseMapping)policy.getKeyMapping();
View Full Code Here

Examples of org.eclipse.persistence.internal.expressions.MapEntryExpression

     * INTERNAL
     * Generate the a new EclipseLink TableEntryExpression for this node.
     */
    public Expression generateExpression(GenerationContext context) {
        Expression owningExpression = getLeft().generateExpression(context);
        MapEntryExpression whereClause = new MapEntryExpression(owningExpression);
        whereClause.returnMapEntry();
        return whereClause;
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.expressions.MapEntryExpression

     * INTERNAL
     * Generate the a new EclipseLink TableEntryExpression for this node.
     */
    public Expression generateExpression(GenerationContext context) {
        Expression owningExpression = getLeft().generateExpression(context);
        MapEntryExpression whereClause = new MapEntryExpression(owningExpression);
        whereClause.returnMapEntry();
        return whereClause;
    }
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.MapEntryExpression

  /**
   * {@inheritDoc}
   */
  @SuppressWarnings({ "unchecked" })
  public Expression<Map.Entry<K, V>> entry() {
    return new MapEntryExpression( criteriaBuilder(), Map.Entry.class, this, getAttribute() );
  }
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.MapEntryExpression

  /**
   * {@inheritDoc}
   */
  @SuppressWarnings({ "unchecked" })
  public Expression<Map.Entry<K, V>> entry() {
    return new MapEntryExpression( criteriaBuilder(), Map.Entry.class, this, getAttribute() );
  }
View Full Code Here

Examples of org.hibernate.ejb.criteria.expression.MapEntryExpression

  /**
   * {@inheritDoc}
   */
  @SuppressWarnings({ "unchecked" })
  public Expression<Map.Entry<K, V>> entry() {
    return new MapEntryExpression( criteriaBuilder(), Map.Entry.class, this, getAttribute() );
  }
View Full Code Here

Examples of org.hibernate.jpa.criteria.expression.MapEntryExpression

  }

  @Override
  @SuppressWarnings({ "unchecked" })
  public Expression<Map.Entry<K, V>> entry() {
    return new MapEntryExpression( criteriaBuilder(), Map.Entry.class, this, getAttribute() );
  }
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.