X - The concrete builder typeBaseCriteriaBuilder<T,X>, BaseCTECriteriaBuilder<X>, BaseInsertCriteriaBuilder<T,X>, BaseQueryBuilder<T,X>, BaseSubqueryBuilder<X>, CorrelationQueryBuilder<X>, CriteriaBuilder<T>, FromBuilder<X>, FullQueryBuilder<T,X>, FullSelectCTECriteriaBuilder<X>, InsertCriteriaBuilder<T>, LeafOngoingSetOperationCriteriaBuilder<X>, LeafOngoingSetOperationCTECriteriaBuilder<X>, LeafOngoingSetOperationSubqueryBuilder<X>, OngoingSetOperationCriteriaBuilder<T,Y>, OngoingSetOperationCTECriteriaBuilder<T,Y>, OngoingSetOperationSubqueryBuilder<T,Y>, PaginatedCriteriaBuilder<T>, QuantifiableBinaryPredicateBuilder<T>, QueryBuilder<T,X>, ReturningInsertCriteriaBuilder<T,X>, SelectBaseCTECriteriaBuilder<X>, SelectCTECriteriaBuilder<X>, SelectRecursiveCTECriteriaBuilder<X>, StartOngoingSetOperationCriteriaBuilder<X,Y>, StartOngoingSetOperationCTECriteriaBuilder<X,Y>, StartOngoingSetOperationSubqueryBuilder<X,Y>, SubqueryBuilder<T>, SubqueryInitiator<T>public interface FromBaseBuilder<X extends FromBaseBuilder<X>>
| Modifier and Type | Method | Description |
|---|---|---|
X |
from(Class<?> entityClass) |
Like
from(Class, String) with the
alias equivalent to the camel cased result of what Class.getSimpleName() of the entity class returns. |
X |
from(Class<?> entityClass,
String alias) |
Sets the entity class on which the query should be based on with the given alias.
|
X |
from(javax.persistence.metamodel.EntityType<?> entityType) |
Like
from(EntityType, String) with the
alias equivalent to the camel cased result of what EntityType.getName() of the entity class returns. |
X |
from(javax.persistence.metamodel.EntityType<?> entityType,
String alias) |
Sets the entity class on which the query should be based on with the given alias.
|
FullSelectCTECriteriaBuilder<X> |
fromEntitySubquery(Class<?> cteClass) |
Like
fromEntitySubquery(Class, String) with the
alias equivalent to the camel cased result of what Class.getSimpleName() of the entity class returns. |
FullSelectCTECriteriaBuilder<X> |
fromEntitySubquery(Class<?> cteClass,
String alias) |
|
FullSelectCTECriteriaBuilder<X> |
fromEntitySubquery(Class<?> cteClass,
String alias,
String subqueryAlias) |
|
X |
fromIdentifiableValues(Class<?> valueClass,
String alias,
int valueCount) |
Add a VALUES clause for values of the given value class to the from clause.
|
X |
fromIdentifiableValues(Class<?> valueClass,
String identifierAttribute,
String alias,
int valueCount) |
Add a VALUES clause for values of the given value class to the from clause.
|
<T> X |
fromIdentifiableValues(Class<T> valueClass,
String identifierAttribute,
String alias,
Collection<T> values) |
Like
fromIdentifiableValues(Class, String, String, int) but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object). |
<T> X |
fromIdentifiableValues(Class<T> valueClass,
String alias,
Collection<T> values) |
Like
fromIdentifiableValues(Class, String, int) but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object). |
X |
fromNew(Class<?> entityClass) |
Like
from(Class) but explicitly queries the data after any side effects happen because of CTEs. |
X |
fromNew(Class<?> entityClass,
String alias) |
Like
from(Class, String) but explicitly queries the data after any side effects happen because of CTEs. |
X |
fromOld(Class<?> entityClass) |
Like
from(Class) but explicitly queries the data before any side effects happen because of CTEs. |
X |
fromOld(Class<?> entityClass,
String alias) |
Like
from(Class, String) but explicitly queries the data before any side effects happen because of CTEs. |
FullSelectCTECriteriaBuilder<X> |
fromSubquery(Class<?> cteClass) |
Like
fromSubquery(Class, String) with the
alias equivalent to the camel cased result of what Class.getSimpleName() of the entity class returns. |
FullSelectCTECriteriaBuilder<X> |
fromSubquery(Class<?> cteClass,
String alias) |
|
X |
fromValues(Class<?> valueClass,
String alias,
int valueCount) |
Add a VALUES clause for values of the given value class to the from clause.
|
X |
fromValues(Class<?> entityBaseClass,
String attributeName,
String alias,
int valueCount) |
Add a VALUES clause for values of the type as determined by the given entity attribute to the from clause.
|
X |
fromValues(Class<?> entityBaseClass,
String attributeName,
String alias,
Collection<?> values) |
Like
fromValues(Class, String, String, int) but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object). |
<T> X |
fromValues(Class<T> valueClass,
String alias,
Collection<T> values) |
Like
fromValues(Class, String, int) but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object). |
X from(Class<?> entityClass)
from(Class, String) with the
alias equivalent to the camel cased result of what Class.getSimpleName() of the entity class returns.entityClass - The entity class which should be queriedX from(Class<?> entityClass, String alias)
entityClass - The entity class which should be queriedalias - The alias for the entityX from(javax.persistence.metamodel.EntityType<?> entityType)
from(EntityType, String) with the
alias equivalent to the camel cased result of what EntityType.getName() of the entity class returns.entityType - The entity type which should be queriedX from(javax.persistence.metamodel.EntityType<?> entityType, String alias)
entityType - The entity type which should be queriedalias - The alias for the entityX fromOld(Class<?> entityClass)
from(Class) but explicitly queries the data before any side effects happen because of CTEs.entityClass - The entity class which should be queriedX fromOld(Class<?> entityClass, String alias)
from(Class, String) but explicitly queries the data before any side effects happen because of CTEs.entityClass - The entity class which should be queriedalias - The alias for the entityX fromNew(Class<?> entityClass)
from(Class) but explicitly queries the data after any side effects happen because of CTEs.entityClass - The entity class which should be queriedX fromNew(Class<?> entityClass, String alias)
from(Class, String) but explicitly queries the data after any side effects happen because of CTEs.entityClass - The entity class which should be queriedalias - The alias for the entityX fromValues(Class<?> valueClass, String alias, int valueCount)
ParameterHolder.setParameter(String, Object)
or Query.setParameter(String, Object) with the alias and a collection.valueClass - The class of the basic or managed type for which to create a VALUES clausealias - The alias for the entityvalueCount - The number of values to use for the values clauseX fromValues(Class<?> entityBaseClass, String attributeName, String alias, int valueCount)
ParameterHolder.setParameter(String, Object)
or Query.setParameter(String, Object) with the alias and a collection.entityBaseClass - The entity class on which the attribute is locatedattributeName - The attribute name within the entity class which to use for determining the values typealias - The alias for the entityvalueCount - The number of values to use for the values clauseX fromIdentifiableValues(Class<?> valueClass, String alias, int valueCount)
fromValues(Class, String, int) this will only bind the id attribute.
To set the values invoke ParameterHolder.setParameter(String, Object)
or Query.setParameter(String, Object) with the alias and a collection.valueClass - The class of the identifiable type for which to create a VALUES clausealias - The alias for the entityvalueCount - The number of values to use for the values clauseX fromIdentifiableValues(Class<?> valueClass, String identifierAttribute, String alias, int valueCount)
fromValues(Class, String, int) this will only bind the identifier attribute.
To set the values invoke ParameterHolder.setParameter(String, Object)
or Query.setParameter(String, Object) with the alias and a collection.valueClass - The class of the identifiable type for which to create a VALUES clauseidentifierAttribute - The attribute of the entity type to consider as identifier attributealias - The alias for the entityvalueCount - The number of values to use for the values clause<T> X fromValues(Class<T> valueClass, String alias, Collection<T> values)
fromValues(Class, String, int) but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object).T - The type of the valuesvalueClass - The class of the basic or managed type for which to create a VALUES clausealias - The alias for the entityvalues - The values to use for the values clauseX fromValues(Class<?> entityBaseClass, String attributeName, String alias, Collection<?> values)
fromValues(Class, String, String, int) but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object).entityBaseClass - The entity class on which the attribute is locatedattributeName - The attribute name within the entity class which to use for determining the values typealias - The alias for the entityvalues - The values to use for the values clause<T> X fromIdentifiableValues(Class<T> valueClass, String alias, Collection<T> values)
fromIdentifiableValues(Class, String, int) but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object).T - The type of the valuesvalueClass - The class of the identifiable type for which to create a VALUES clausealias - The alias for the entityvalues - The values to use for the values clause<T> X fromIdentifiableValues(Class<T> valueClass, String identifierAttribute, String alias, Collection<T> values)
fromIdentifiableValues(Class, String, String, int) but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object).T - The type of the valuesvalueClass - The class of the identifiable type for which to create a VALUES clauseidentifierAttribute - The attribute of the entity type to consider as identifier attributealias - The alias for the entityvalues - The values to use for the values clauseFullSelectCTECriteriaBuilder<X> fromSubquery(Class<?> cteClass)
fromSubquery(Class, String) with the
alias equivalent to the camel cased result of what Class.getSimpleName() of the entity class returns.cteClass - The CTE entity type for the subquery in the FROM clauseFullSelectCTECriteriaBuilder<X> fromSubquery(Class<?> cteClass, String alias)
from(Class, String) followed by CTEBuilder.with(Class, boolean) with inline = true.
Registers the given CTE entity type as FROM clause node under the given alias and returns a CTE builder that will be inlined.cteClass - The CTE entity type for the subquery in the FROM clausealias - The alias for the FROM clause itemFullSelectCTECriteriaBuilder<X> fromEntitySubquery(Class<?> cteClass)
fromEntitySubquery(Class, String) with the
alias equivalent to the camel cased result of what Class.getSimpleName() of the entity class returns.cteClass - The entity type for the subquery in the FROM clauseFullSelectCTECriteriaBuilder<X> fromEntitySubquery(Class<?> cteClass, String alias)
from(Class, String) followed by CTEBuilder.with(Class, boolean) with inline = true.
Registers the given entity type as FROM clause node under the given alias and returns a CTE builder that will be inlined with all attributes bound.cteClass - The entity type for the subquery in the FROM clausealias - The alias for the FROM clause itemFullSelectCTECriteriaBuilder<X> fromEntitySubquery(Class<?> cteClass, String alias, String subqueryAlias)
from(Class, String) followed by CTEBuilder.with(Class, boolean) with inline = true.
Registers the given entity type as FROM clause node under the given alias and returns a CTE builder that will be inlined with all attributes bound.cteClass - The entity type for the subquery in the FROM clausealias - The alias for the FROM clause itemsubqueryAlias - The alias for the FROM clause item in the subqueryCopyright © 2014–2020 Blazebit. All rights reserved.