All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.server.querydefn.OrmQuerySecondary Maven / Gradle / Ivy

There is a newer version: 15.6.0
Show newest version
package io.ebeaninternal.server.querydefn;

import io.ebeaninternal.api.SpiQuerySecondary;

import java.util.List;

/**
 * The secondary query paths for 'query joins' and 'lazy loading'.
 */
class OrmQuerySecondary implements SpiQuerySecondary {

  private final List queryJoins;

  private final List lazyJoins;

  /**
   * Construct with the 'query join' and 'lazy join' path properties.
   */
  OrmQuerySecondary(List queryJoins, List lazyJoins) {
    this.queryJoins = queryJoins;
    this.lazyJoins = lazyJoins;
  }

  /**
   * Return a list of path/properties that are query join loaded.
   */
  @Override
  public List getQueryJoins() {
    return queryJoins;
  }

  /**
   * Return the list of path/properties that are lazy loaded.
   */
  @Override
  public List getLazyJoins() {
    return lazyJoins;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy