Example usage for javax.persistence.criteria Join getFetches

List of usage examples for javax.persistence.criteria Join getFetches

Introduction

In this page you can find the example usage for javax.persistence.criteria Join getFetches.

Prototype

java.util.Set<Fetch<X, ?>> getFetches();

Source Link

Document

Return the fetch joins that have been made from this type.

Usage

From source file:org.apache.openjpa.persistence.criteria.CriteriaQueryImpl.java

private void renderJoins(StringBuilder buffer, Collection<Join<?, ?>> joins) {
    if (joins == null)
        return;/*from  w ww .ja  va  2s . c  o  m*/
    for (Join j : joins) {
        buffer.append(((CriteriaExpression) j).asVariable(this)).append(" ");
        renderJoins(buffer, j.getJoins());
        renderFetches(buffer, j.getFetches());
    }
}