T
- The builder type that is returned on terminal operationsFromBaseBuilder<SubqueryBuilder<T>>
QuantifiableBinaryPredicateBuilder<T>
public interface SubqueryInitiator<T> extends FromBaseBuilder<SubqueryBuilder<T>>
Modifier and Type | Method | Description |
---|---|---|
SubqueryBuilder<T> |
from(Class<?> entityClass) |
Like
from(java.lang.Class, java.lang.String) with the
alias equivalent to the camel cased result of what Class.getSimpleName() of the entity class returns. |
SubqueryBuilder<T> |
from(Class<?> entityClass,
String alias) |
Creates a new subquery builder with the given entity class as entity in the FROM clause with the given alias.
|
SubqueryBuilder<T> |
from(String correlationPath) |
Like
from(String, String) with the
alias equivalent to the camel cased result of the class of the correlation parent. |
SubqueryBuilder<T> |
from(String correlationPath,
String alias) |
Creates a new subquery builder with the given correlation path in the FROM clause with the given alias.
|
SubqueryBuilder<T> |
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. |
SubqueryBuilder<T> |
from(javax.persistence.metamodel.EntityType<?> entityType,
String alias) |
Creates a new subquery builder with the entity class on which the query should be based on with the given alias.
|
SubqueryBuilder<T> |
fromIdentifiableValues(Class<?> valueClass,
String alias,
int valueCount) |
Creates a new subquery builder with a VALUES clause for values of the given value class in the from clause.
|
<X> SubqueryBuilder<T> |
fromIdentifiableValues(Class<X> valueClass,
String alias,
Collection<X> 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) . |
SubqueryBuilder<T> |
fromNew(Class<?> entityClass) |
Like
from(Class) but explicitly queries the data after any side effects happen because of CTEs. |
SubqueryBuilder<T> |
fromNew(Class<?> entityClass,
String alias) |
Like
from(Class, String) but explicitly queries the data after any side effects happen because of CTEs. |
SubqueryBuilder<T> |
fromOld(Class<?> entityClass) |
Like
from(Class) but explicitly queries the data before any side effects happen because of CTEs. |
SubqueryBuilder<T> |
fromOld(Class<?> entityClass,
String alias) |
Like
from(Class, String) but explicitly queries the data before any side effects happen because of CTEs. |
SubqueryBuilder<T> |
fromValues(Class<?> valueClass,
String alias,
int valueCount) |
Creates a new subquery builder with a VALUES clause for values of the given value class in the from clause.
|
SubqueryBuilder<T> |
fromValues(Class<?> entityBaseClass,
String attributeName,
String alias,
int valueCount) |
Creates a new subquery builder with a VALUES clause for values of the type as determined by the given entity attribute to the from clause.
|
SubqueryBuilder<T> |
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) . |
<X> SubqueryBuilder<T> |
fromValues(Class<X> valueClass,
String alias,
Collection<X> 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) . |
CommonQueryBuilder<?> |
getParentQueryBuilder() |
Returns the parent query builder.
|
StartOngoingSetOperationSubqueryBuilder<T,LeafOngoingFinalSetOperationSubqueryBuilder<T>> |
startSet() |
Starts a nested set operation builder which is used as subquery.
|
CommonQueryBuilder<?> getParentQueryBuilder()
SubqueryBuilder<T> from(String correlationPath)
from(String, String)
with the
alias equivalent to the camel cased result of the class of the correlation parent.correlationPath
- The correlation path which should be queriedSubqueryBuilder<T> from(String correlationPath, String alias)
correlationPath
- The correlation path which should be queriedalias
- The alias for the entityStartOngoingSetOperationSubqueryBuilder<T,LeafOngoingFinalSetOperationSubqueryBuilder<T>> startSet()
SubqueryBuilder<T> from(Class<?> entityClass)
from(java.lang.Class, java.lang.String)
with the
alias equivalent to the camel cased result of what Class.getSimpleName()
of the entity class returns.from
in interface FromBaseBuilder<T>
entityClass
- The entity class which should be the entitySubqueryBuilder<T> from(Class<?> entityClass, String alias)
from
in interface FromBaseBuilder<T>
entityClass
- The entity class which should be the entityalias
- The alias for the entitySubqueryBuilder<T> 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.from
in interface FromBaseBuilder<T>
entityType
- The entity type which should be queriedSubqueryBuilder<T> from(javax.persistence.metamodel.EntityType<?> entityType, String alias)
from
in interface FromBaseBuilder<T>
entityType
- The entity type which should be queriedalias
- The alias for the entitySubqueryBuilder<T> fromOld(Class<?> entityClass)
from(Class)
but explicitly queries the data before any side effects happen because of CTEs.fromOld
in interface FromBaseBuilder<T>
entityClass
- The entity class which should be queriedSubqueryBuilder<T> fromOld(Class<?> entityClass, String alias)
from(Class, String)
but explicitly queries the data before any side effects happen because of CTEs.fromOld
in interface FromBaseBuilder<T>
entityClass
- The entity class which should be queriedalias
- The alias for the entitySubqueryBuilder<T> fromNew(Class<?> entityClass)
from(Class)
but explicitly queries the data after any side effects happen because of CTEs.fromNew
in interface FromBaseBuilder<T>
entityClass
- The entity class which should be queriedSubqueryBuilder<T> fromNew(Class<?> entityClass, String alias)
from(Class, String)
but explicitly queries the data after any side effects happen because of CTEs.fromNew
in interface FromBaseBuilder<T>
entityClass
- The entity class which should be queriedalias
- The alias for the entitySubqueryBuilder<T> fromValues(Class<?> valueClass, String alias, int valueCount)
ParameterHolder.setParameter(String, Object)
or Query.setParameter(String, Object)
with the alias and a collection.fromValues
in interface FromBaseBuilder<T>
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 clauseSubqueryBuilder<T> fromValues(Class<?> entityBaseClass, String attributeName, String alias, int valueCount)
ParameterHolder.setParameter(String, Object)
or Query.setParameter(String, Object)
with the alias and a collection.fromValues
in interface FromBaseBuilder<T>
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 clauseSubqueryBuilder<T> 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.fromIdentifiableValues
in interface FromBaseBuilder<T>
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 clause<X> SubqueryBuilder<T> fromValues(Class<X> valueClass, String alias, Collection<X> values)
fromValues(Class, String, int)
but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object)
.fromValues
in interface FromBaseBuilder<T>
X
- 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 clauseSubqueryBuilder<T> 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)
.fromValues
in interface FromBaseBuilder<T>
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<X> SubqueryBuilder<T> fromIdentifiableValues(Class<X> valueClass, String alias, Collection<X> values)
fromIdentifiableValues(Class, String, int)
but passes the collection size
as valueCount and directly binds the collection as parameter via ParameterHolder.setParameter(String, Object)
.fromIdentifiableValues
in interface FromBaseBuilder<T>
X
- 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 clauseCopyright © 2014–2019 Blazebit. All rights reserved.