Examples of fromJoinFragment()


Examples of org.hibernate.persister.collection.QueryableCollection.fromJoinFragment()

        queryableCollection.getKeyColumnNames(),
        JoinType.LEFT_OUTER_JOIN,
        filterFragment
    );
    joinFragment.addJoins(
        queryableCollection.fromJoinFragment( collectionTableAlias, false, true ),
        queryableCollection.whereJoinFragment( collectionTableAlias, false, true )
    );
  }

  private void renderManyToManyJoin(
View Full Code Here

Examples of org.hibernate.persister.entity.Joinable.fromJoinFragment()

            queryableCollection.getKeyColumnNames(),
            fetch.isNullable() ? JoinType.LEFT_OUTER_JOIN : JoinType.INNER_JOIN,
            filterFragment
        );
        joinFragment.addJoins(
            joinableCollection.fromJoinFragment( collectionTableAlias, false, true ),
            joinableCollection.whereJoinFragment( collectionTableAlias, false, true )
        );

        // add select fragments from the collection table ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        selectStatementBuilder.appendSelectClauseFragment(
View Full Code Here

Examples of org.hibernate.persister.entity.OuterJoinLoadable.fromJoinFragment()

        (OuterJoinLoadable) getElementEntityReference().getEntityPersister();
    //final String tableAlias = getCollectionReferenceAliases().getCollectionTableAlias();
    final String tableAlias = getElementEntityReferenceAliases().getTableAlias();
    final String fragment =
        elementOuterJoinLoadable.fromTableFragment( tableAlias ) +
            elementOuterJoinLoadable.fromJoinFragment( tableAlias, true, true);
    selectStatementBuilder.appendFromClauseFragment( fragment );
  }

  private EntityReference getElementEntityReference() {
    return getRootCollectionReturn().getElementGraph().resolveEntityReference();
View Full Code Here

Examples of org.hibernate.persister.entity.OuterJoinLoadable.fromJoinFragment()

      select.setLockMode( getQueryBuildingParameters().getLockMode() );
    }
    else {
      fromTableFragment = outerJoinLoadable.fromTableFragment( rootAlias );
    }
    select.appendFromClauseFragment( fromTableFragment + outerJoinLoadable.fromJoinFragment( rootAlias, true, true ) );
  }

  protected void applyRootReturnFilterRestrictions(SelectStatementBuilder selectStatementBuilder) {
    final Queryable rootQueryable = (Queryable) getRootEntityReturn().getEntityPersister();
    selectStatementBuilder.appendRestrictions(
View Full Code Here

Examples of org.hibernate.persister.entity.OuterJoinLoadable.fromJoinFragment()

        (OuterJoinLoadable) getElementEntityReference().getEntityPersister();
    //final String tableAlias = getCollectionReferenceAliases().getCollectionTableAlias();
    final String tableAlias = getElementEntityReferenceAliases().getTableAlias();
    final String fragment =
        elementOuterJoinLoadable.fromTableFragment( tableAlias ) +
            elementOuterJoinLoadable.fromJoinFragment( tableAlias, true, true);
    selectStatementBuilder.appendFromClauseFragment( fragment );
  }

  private EntityReference getElementEntityReference() {
    return getRootCollectionReturn().getElementGraph().resolveEntityReference();
View Full Code Here

Examples of org.hibernate.persister.entity.OuterJoinLoadable.fromJoinFragment()

      select.setLockMode( getQueryBuildingParameters().getLockMode() );
    }
    else {
      fromTableFragment = outerJoinLoadable.fromTableFragment( rootAlias );
    }
    select.appendFromClauseFragment( fromTableFragment + outerJoinLoadable.fromJoinFragment( rootAlias, true, true ) );
  }

  protected void applyRootReturnFilterRestrictions(SelectStatementBuilder selectStatementBuilder) {
    final Queryable rootQueryable = (Queryable) getRootEntityReturn().getEntityPersister();
    selectStatementBuilder.appendRestrictions(
View Full Code Here

Examples of org.hibernate.persister.entity.OuterJoinLoadable.fromJoinFragment()

      select.setLockMode( buildingParameters.getLockMode() );
    }
    else {
      fromTableFragment = rootLoadable.fromTableFragment( rootAlias );
    }
    select.appendFromClauseFragment( fromTableFragment + rootLoadable.fromJoinFragment( rootAlias, true, true ) );
  }

  private void applyKeyRestriction(SelectStatementBuilder select, String alias, String[] keyColumnNames, int batchSize) {
    if ( keyColumnNames.length==1 ) {
      // NOT A COMPOSITE KEY
View Full Code Here

Examples of org.hibernate.persister.entity.OuterJoinLoadable.fromJoinFragment()

      select.setLockMode( buildingParameters.getLockMode() );
    }
    else {
      fromTableFragment = rootLoadable.fromTableFragment( rootAlias );
    }
    select.appendFromClauseFragment( fromTableFragment + rootLoadable.fromJoinFragment( rootAlias, true, true ) );
  }

  private void applyKeyRestriction(SelectStatementBuilder select, String alias, String[] keyColumnNames, int batchSize) {
    if ( keyColumnNames.length==1 ) {
      // NOT A COMPOSITE KEY
View Full Code Here

Examples of org.hibernate.persister.entity.OuterJoinLoadable.fromJoinFragment()

      .setWhereClause( innerQuery.getWhereCondition() )
      .setGroupByClause( innerQuery.getGroupBy() )
      .setSelectClause( innerQuery.getSelect() )
      .setFromClause(
          persister.fromTableFragment( innerQuery.getRootSQLALias() ) +  
          persister.fromJoinFragment( innerQuery.getRootSQLALias(), true, false )
        )
      .toStatementString();
   
    final StringBuffer buf = new StringBuffer()
      .append( toLeftSqlString(criteria, criteriaQuery) );
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.