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

io.katharsis.jpa.internal.query.backend.JpaQueryBackend Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.katharsis.jpa.internal.query.backend;

import java.util.List;

import javax.persistence.criteria.JoinType;

import io.katharsis.jpa.internal.meta.MetaAttribute;
import io.katharsis.jpa.internal.meta.MetaAttributePath;
import io.katharsis.queryspec.Direction;
import io.katharsis.queryspec.FilterOperator;

public interface JpaQueryBackend {

	public void distinct();

	public F getRoot();

	public void setOrder(List orderSpecListToOrderArray);

	public List getOrderList();

	public O newSort(E expression, Direction dir);

	public void addPredicate(P predicate);

	public E getAttribute(MetaAttributePath attrPath);

	public void addParentPredicate(MetaAttribute primaryKeyAttr);

	public boolean hasManyRootsFetchesOrJoins();

	public void addSelection(E expression, String name);

	public E getExpression(O order);

	public boolean containsRelation(E expression);

	public P buildPredicate(FilterOperator operator, MetaAttributePath path, Object value);

	public P and(List

predicates); public P not(P predicate); public P or(List

predicates); public Class getJavaElementType(E currentCriteriaPath); public E getAttribute(E currentCriteriaPath, MetaAttribute pathElement); public E joinSubType(E currentCriteriaPath, Class entityType); public E joinMapValue(E currentCriteriaPath, MetaAttribute pathElement, Object key); public E joinMapValues(E currentCriteriaPath, MetaAttribute pathElement); public E joinMapKey(E currentCriteriaPath, MetaAttribute pathElement); public F doJoin(MetaAttribute targetAttr, JoinType joinType, F parent); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy