T - The builder type that is returned on terminal operationspublic interface SubqueryInitiator<T>
| Modifier and Type | Method and 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> |
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.
|
<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). |
StartOngoingSetOperationSubqueryBuilder<T,LeafOngoingFinalSetOperationSubqueryBuilder<T>> |
startSet()
Starts a nested set operation builder which is used as subquery.
|
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.entityClass - The entity class which should be the entitySubqueryBuilder<T> from(Class<?> entityClass, String alias)
entityClass - The entity class which should be the entityalias - The alias for the entitySubqueryBuilder<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> 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 queriedSubqueryBuilder<T> 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 entitySubqueryBuilder<T> 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 queriedSubqueryBuilder<T> 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 entitySubqueryBuilder<T> 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 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.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).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 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).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–2018 Blazebit. All rights reserved.