Package org.hibernate.internal.util.collections

Examples of org.hibernate.internal.util.collections.JoinedIterator


      classes[0] = startNode.elementIterator( "class" );
      classes[1] = startNode.elementIterator( "subclass" );
      classes[2] = startNode.elementIterator( "joined-subclass" );
      classes[3] = startNode.elementIterator( "union-subclass" );

      Iterator classIterator = new JoinedIterator( classes );
      while ( classIterator.hasNext() ) {
        Element element = ( Element ) classIterator.next();
        String entityName = element.attributeValue( "entity-name" );
        if ( entityName == null ) {
          entityName = getClassName( element.attribute( "name" ), defaultPackage );
        }
        names.add( entityName );
View Full Code Here


      if ( many ) {
        results[i] = result;
      }
    }

    return many ? new JoinedIterator(results) : result;
  }
View Full Code Here

    }

    StringBuilder buf = new StringBuilder()
      .append("( ");

    Iterator siter = new JoinedIterator(
      new SingletonIterator(model),
      model.getSubclassIterator()
    );

    while ( siter.hasNext() ) {
      PersistentClass clazz = (PersistentClass) siter.next();
      Table table = clazz.getTable();
      if ( !table.isAbstractUnionTable() ) {
        //TODO: move to .sql package!!
        buf.append("select ");
        Iterator citer = columns.iterator();
View Full Code Here

    // against the already processed mappings.
    subclasses[0] = hmNode.elementIterator( "subclass" );
    subclasses[1] = hmNode.elementIterator( "joined-subclass" );
    subclasses[2] = hmNode.elementIterator( "union-subclass" );

    Iterator iterator = new JoinedIterator( subclasses );
    while ( iterator.hasNext() ) {
      final Element element = (Element) iterator.next();
      final String extendsName = element.attributeValue( "extends" );
      // mappings might contain either the "raw" extends name (in the case of
      // an entity-name mapping) or a FQN (in the case of a POJO mapping).
      if ( mappings.getClass( extendsName ) == null && mappings.getClass( getClassName( extendsName, mappings ) ) == null ) {
        extendz.add( extendsName );
View Full Code Here

    classes[0] = startNode.elementIterator( "class" );
    classes[1] = startNode.elementIterator( "subclass" );
    classes[2] = startNode.elementIterator( "joined-subclass" );
    classes[3] = startNode.elementIterator( "union-subclass" );

    Iterator classIterator = new JoinedIterator( classes );
    while ( classIterator.hasNext() ) {
      Element element = (Element) classIterator.next();
      handler.handleEntity(
          element.attributeValue( "entity-name" ),
                element.attributeValue( "name" ),
              mappings
      );
View Full Code Here

      classes[0] = startNode.elementIterator( "class" );
      classes[1] = startNode.elementIterator( "subclass" );
      classes[2] = startNode.elementIterator( "joined-subclass" );
      classes[3] = startNode.elementIterator( "union-subclass" );

      Iterator classIterator = new JoinedIterator( classes );
      while ( classIterator.hasNext() ) {
        Element element = ( Element ) classIterator.next();
        String entityName = element.attributeValue( "entity-name" );
        if ( entityName == null ) {
          entityName = getClassName( element.attribute( "name" ), defaultPackage );
        }
        names.add( entityName );
View Full Code Here

      if ( many ) {
        results[i] = result;
      }
    }

    return many ? new JoinedIterator( results ) : result;
  }
View Full Code Here

    Iterator iter = getPropertyIterator();
    int i=0;
    while ( iter.hasNext() ) {
      iters[i++] = ( (Property) iter.next() ).getColumnIterator();
    }
    return new JoinedIterator( iters );
  }
View Full Code Here

    super.addJoin(j);
    getSuperclass().addSubclassJoin(j);
  }

  public Iterator getPropertyClosureIterator() {
    return new JoinedIterator(
        getSuperclass().getPropertyClosureIterator(),
        getPropertyIterator()
      );
  }
View Full Code Here

        getSuperclass().getPropertyClosureIterator(),
        getPropertyIterator()
      );
  }
  public Iterator getTableClosureIterator() {
    return new JoinedIterator(
        getSuperclass().getTableClosureIterator(),
        new SingletonIterator( getTable() )
      );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.internal.util.collections.JoinedIterator

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.