io.crnk.jpa.internal.query.AbstractQueryExecutorImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crnk-jpa Show documentation
Show all versions of crnk-jpa Show documentation
JSON API framework for Java
package io.crnk.jpa.internal.query;
import io.crnk.core.engine.internal.utils.ClassUtils;
import io.crnk.jpa.query.JpaQueryExecutor;
import io.crnk.meta.model.MetaAttributePath;
import io.crnk.meta.model.MetaDataObject;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import java.util.*;
public abstract class AbstractQueryExecutorImpl implements JpaQueryExecutor {
private static final String ENTITY_GRAPH_BUILDER_IMPL = "io.crnk.jpa.internal.query.EntityGraphBuilderImpl";
protected int offset = 0;
protected int limit = -1;
protected boolean cached = false;
protected EntityManager em;
protected int numAutoSelections;
protected Set fetchPaths = new HashSet<>();
protected MetaDataObject meta;
protected Map selectionBindings;
public AbstractQueryExecutorImpl(EntityManager em, MetaDataObject meta, int numAutoSelections,
Map selectionBindings) {
this.em = em;
this.meta = meta;
this.numAutoSelections = numAutoSelections;
this.selectionBindings = selectionBindings;
}
protected static List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy