Examples of AttributeBinding


Examples of oracle.binding.AttributeBinding

                new FacesMessage(FacesMessage.SEVERITY_WARN, methodName,
                                 msgText);
            FacesContext.getCurrentInstance().addMessage(null, msg);
        }

        AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("resultCount")
        logger.fine("Total result: "+attr.getInputValue().toString())
    }
View Full Code Here

Examples of org.hibernate.metamodel.binding.AttributeBinding

  public String getIdentifierPropertyName(String entityName) throws MappingException {
    EntityBinding entityBinding = getEntityBinding( entityName );
    if ( entityBinding == null ) {
      throw new MappingException( "Entity binding not known: " + entityName );
    }
    AttributeBinding idBinding = entityBinding.getHierarchyDetails().getEntityIdentifier().getValueBinding();
    return idBinding == null ? null : idBinding.getAttribute().getName();
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.AttributeBinding

    EntityBinding entityBinding = getEntityBinding( entityName );
    if ( entityBinding == null ) {
      throw new MappingException( "Entity binding not known: " + entityName );
    }
    // TODO: should this call EntityBinding.getReferencedAttributeBindingString), which does not exist yet?
    AttributeBinding attributeBinding = entityBinding.locateAttributeBinding( propertyName );
    if ( attributeBinding == null ) {
      throw new MappingException( "unknown property: " + entityName + '.' + propertyName );
    }
    return attributeBinding.getHibernateTypeDescriptor().getResolvedTypeMapping();
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.AttributeBinding

  public String getIdentifierPropertyName(String entityName) throws MappingException {
    EntityBinding entityBinding = getEntityBinding( entityName );
    if ( entityBinding == null ) {
      throw new MappingException( "Entity binding not known: " + entityName );
    }
    AttributeBinding idBinding = entityBinding.getHierarchyDetails().getEntityIdentifier().getValueBinding();
    return idBinding == null ? null : idBinding.getAttribute().getName();
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.AttributeBinding

    EntityBinding entityBinding = getEntityBinding( entityName );
    if ( entityBinding == null ) {
      throw new MappingException( "Entity binding not known: " + entityName );
    }
    // TODO: should this call EntityBinding.getReferencedAttributeBindingString), which does not exist yet?
    AttributeBinding attributeBinding = entityBinding.locateAttributeBinding( propertyName );
    if ( attributeBinding == null ) {
      throw new MappingException( "unknown property: " + entityName + '.' + propertyName );
    }
    return attributeBinding.getHibernateTypeDescriptor().getResolvedTypeMapping();
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.AttributeBinding

  public String getIdentifierPropertyName(String entityName) throws MappingException {
    EntityBinding entityBinding = getEntityBinding( entityName );
    if ( entityBinding == null ) {
      throw new MappingException( "Entity binding not known: " + entityName );
    }
    AttributeBinding idBinding = entityBinding.getHierarchyDetails().getEntityIdentifier().getValueBinding();
    return idBinding == null ? null : idBinding.getAttribute().getName();
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.AttributeBinding

    EntityBinding entityBinding = getEntityBinding( entityName );
    if ( entityBinding == null ) {
      throw new MappingException( "Entity binding not known: " + entityName );
    }
    // TODO: should this call EntityBinding.getReferencedAttributeBindingString), which does not exist yet?
    AttributeBinding attributeBinding = entityBinding.locateAttributeBinding( propertyName );
    if ( attributeBinding == null ) {
      throw new MappingException( "unknown property: " + entityName + '.' + propertyName );
    }
    return attributeBinding.getHibernateTypeDescriptor().getResolvedTypeMapping();
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.AttributeBinding

              attributeBinding.getAttribute().getName(),
              attributeBinding.getReferencedEntityName()
          )
      );
    }
    AttributeBinding referencedAttributeBinding =
        attributeBinding.isPropertyReference() ?
            entityBinding.locateAttributeBinding( attributeBinding.getReferencedAttributeName() ) :
            entityBinding.getHierarchyDetails().getEntityIdentifier().getValueBinding();
    if ( referencedAttributeBinding == null ) {
      // TODO: does attribute name include path w/ entity name?
      throw new org.hibernate.MappingException(
          String.format(
              "Attribute [%s] refers to unknown attribute: [%s]",
              attributeBinding.getAttribute().getName(),
              attributeBinding.getReferencedEntityName()
          )
      );
    }
    attributeBinding.resolveReference( referencedAttributeBinding );
    referencedAttributeBinding.addEntityReferencingAttributeBinding( attributeBinding );
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.AttributeBinding

  public String getIdentifierPropertyName(String entityName) throws MappingException {
    EntityBinding entityBinding = getEntityBinding( entityName );
    if ( entityBinding == null ) {
      throw new MappingException( "Entity binding not known: " + entityName );
    }
    AttributeBinding idBinding = entityBinding.getHierarchyDetails().getEntityIdentifier().getValueBinding();
    return idBinding == null ? null : idBinding.getAttribute().getName();
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.AttributeBinding

    EntityBinding entityBinding = getEntityBinding( entityName );
    if ( entityBinding == null ) {
      throw new MappingException( "Entity binding not known: " + entityName );
    }
    // TODO: should this call EntityBinding.getReferencedAttributeBindingString), which does not exist yet?
    AttributeBinding attributeBinding = entityBinding.locateAttributeBinding( propertyName );
    if ( attributeBinding == null ) {
      throw new MappingException( "unknown property: " + entityName + '.' + propertyName );
    }
    return attributeBinding.getHibernateTypeDescriptor().getResolvedTypeMapping();
  }
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.