Package org.hibernate.graph.spi

Examples of org.hibernate.graph.spi.AttributeNodeImplementor


   */
  @Override
  public boolean startingAttribute(AttributeDefinition attributeDefinition) {
    Map<String, AttributeNodeImplementor> attributeMap = attributeMapStack.peekLast();
    final String attrName = attributeDefinition.getName();
    AttributeNodeImplementor attributeNode = NON_EXIST_ATTRIBUTE_NODE;
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    //the attribute is in the EntityGraph, so, let's continue
    if ( attributeMap.containsKey( attrName ) ) {
      attributeNode = attributeMap.get( attrName );
      //here we need to check if there is a subgraph (or sub key graph if it is an indexed attribute )
      Map<Class, Subgraph> subGraphs = attributeNode.getSubgraphs();
      Class javaType = attributeDefinition.getType().getReturnedClass();
      if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
        subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
      }

View Full Code Here



  @Override
  public void startingCollectionElements(
      final CollectionElementDefinition elementDefinition) {
    AttributeNodeImplementor attributeNode = attributeStack.peekLast();
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    Map<Class, Subgraph> subGraphs = attributeNode.getSubgraphs();
    Class javaType = elementDefinition.getType().getReturnedClass();
    if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
      subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
    }
    graphStack.addLast( subGraphNode );
View Full Code Here

  }


  @Override
  public void startingCollectionIndex(final CollectionIndexDefinition indexDefinition) {
    AttributeNodeImplementor attributeNode = attributeStack.peekLast();
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    Map<Class, Subgraph> subGraphs = attributeNode.getKeySubgraphs();
    Class javaType = indexDefinition.getType().getReturnedClass();
    if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
      subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
    }
    graphStack.addLast( subGraphNode );
View Full Code Here

   * when we're finish visiting an attribute, these two will be poped from each stack.
   */
  @Override
  public boolean startingAttribute(AttributeDefinition attributeDefinition) {
    final String attrName = attributeDefinition.getName();
    AttributeNodeImplementor attributeNode = NON_EXIST_ATTRIBUTE_NODE;
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    //the attribute is in the EntityGraph, so, let's continue
    if ( attributeNodeImplementorMap.containsKey( attrName ) ) {
      attributeNode = attributeNodeImplementorMap.get( attrName );
      //here we need to check if there is a subgraph (or sub key graph if it is an indexed attribute )
      Map<Class, Subgraph> subGraphs = attributeNode.getSubgraphs();
      Class javaType = attributeDefinition.getType().getReturnedClass();
      if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
        subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
      }

View Full Code Here

  }


  @Override
  public void startingCollectionIndex(final CollectionIndexDefinition indexDefinition) {
    AttributeNodeImplementor attributeNode = attributeStack.peekLast();
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    Map<Class, Subgraph> subGraphs = attributeNode.getKeySubgraphs();
    Class javaType = indexDefinition.getType().getReturnedClass();
    if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
      subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
    }
    graphStack.addLast( subGraphNode );
View Full Code Here

   * when we're finish visiting an attribute, these two will be poped from each stack.
   */
  @Override
  public boolean startingAttribute(AttributeDefinition attributeDefinition) {
    final String attrName = attributeDefinition.getName();
    AttributeNodeImplementor attributeNode = NON_EXIST_ATTRIBUTE_NODE;
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    //the attribute is in the EntityGraph, so, let's continue
    if ( attributeNodeImplementorMap.containsKey( attrName ) ) {
      attributeNode = attributeNodeImplementorMap.get( attrName );
      //here we need to check if there is a subgraph (or sub key graph if it is an indexed attribute )
      Map<Class, Subgraph> subGraphs = attributeNode.getSubgraphs();
      Class javaType = attributeDefinition.getType().getReturnedClass();
      if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
        subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
      }

View Full Code Here

  }


  @Override
  public void startingCollectionIndex(final CollectionIndexDefinition indexDefinition) {
    AttributeNodeImplementor attributeNode = attributeStack.peekLast();
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    Map<Class, Subgraph> subGraphs = attributeNode.getKeySubgraphs();
    Class javaType = indexDefinition.getType().getReturnedClass();
    if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
      subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
    }
    graphStack.addLast( subGraphNode );
View Full Code Here

   */
  @Override
  public boolean startingAttribute(AttributeDefinition attributeDefinition) {
    Map<String, AttributeNodeImplementor> attributeMap = attributeMapStack.peekLast();
    final String attrName = attributeDefinition.getName();
    AttributeNodeImplementor attributeNode = NON_EXIST_ATTRIBUTE_NODE;
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    //the attribute is in the EntityGraph, so, let's continue
    if ( attributeMap.containsKey( attrName ) ) {
      attributeNode = attributeMap.get( attrName );
      //here we need to check if there is a subgraph (or sub key graph if it is an indexed attribute )
      Map<Class, Subgraph> subGraphs = attributeNode.getSubgraphs();
      Class javaType = attributeDefinition.getType().getReturnedClass();
      if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
        subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
      }

View Full Code Here


  @Override
  public void startingCollectionElements(
      final CollectionElementDefinition elementDefinition) {
    AttributeNodeImplementor attributeNode = attributeStack.peekLast();
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    Map<Class, Subgraph> subGraphs = attributeNode.getSubgraphs();
    Class javaType = elementDefinition.getType().getReturnedClass();
    if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
      subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
    }
    graphStack.addLast( subGraphNode );
View Full Code Here

  }


  @Override
  public void startingCollectionIndex(final CollectionIndexDefinition indexDefinition) {
    AttributeNodeImplementor attributeNode = attributeStack.peekLast();
    GraphNodeImplementor subGraphNode = NON_EXIST_SUBGRAPH_NODE;
    Map<Class, Subgraph> subGraphs = attributeNode.getKeySubgraphs();
    Class javaType = indexDefinition.getType().getReturnedClass();
    if ( !subGraphs.isEmpty() && subGraphs.containsKey( javaType ) ) {
      subGraphNode = (GraphNodeImplementor) subGraphs.get( javaType );
    }
    graphStack.addLast( subGraphNode );
View Full Code Here

TOP

Related Classes of org.hibernate.graph.spi.AttributeNodeImplementor

Copyright © 2018 www.massapicom. 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.