Package org.crank.crud.join

Examples of org.crank.crud.join.RelationshipJoin


      return "";
    }
    StringBuilder builder = new StringBuilder(255);
    for (Join join : joins) {
      if (join instanceof RelationshipJoin) {
        RelationshipJoin rj = (RelationshipJoin) join;

       
        if (rj.getJoinType() == JoinType.LEFT) {
          builder.append(" left ");
        }
       
        if (rj instanceof RelationshipFetch) {
          builder.append(" join fetch ");
        } else if (rj instanceof SimpleRelationshipJoin) {
          builder.append(" join ");
        }

        builder.append(rj.isAliasedRelationship() ? "" : "o.");
        builder.append(rj.getRelationshipProperty());
        builder.append(" ");
        builder.append(rj.getAlias().equals("") ? rj.getDefaultAlias()
            : rj.getAlias());
      }
    }

    return builder.toString();
  }
View Full Code Here

TOP

Related Classes of org.crank.crud.join.RelationshipJoin

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.