X
- The concrete builder typepublic interface FromBuilder<X extends FromBuilder<X>>
Modifier and Type | Method and Description |
---|---|
X |
from(Class<?> entityClass)
Like
FromBuilder#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(String correlationPath)
Like
FromBuilder#from(String, String)) with the
alias equivalent to the camel cased result of the class of the correlation parent. |
X |
from(String correlationPath,
String alias)
Sets the correlation path on which the query should be based on with the given alias.
|
X |
fromNew(Class<?> entityClass)
Like
FromBuilder#from(Class)) but explicitly queries the data after any side effects happen because of CTEs. |
X |
fromNew(Class<?> entityClass,
String alias)
Like
FromBuilder#from(Class, String)) but explicitly queries the data after any side effects happen because of CTEs. |
X |
fromOld(Class<?> entityClass)
Like
FromBuilder#from(Class)) but explicitly queries the data before any side effects happen because of CTEs. |
X |
fromOld(Class<?> entityClass,
String alias)
Like
FromBuilder#from(Class, String)) but explicitly queries the data before any side effects happen because of CTEs. |
X |
fromValues(Class<?> entityClass,
String alias,
int valueCount)
Add a VALUES clause for values of the given entity class to the from clause.
|
<T> X |
fromValues(Class<T> entityClass,
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 CommonQueryBuilder.setParameter(String, Object) . |
Set<Root> |
getRoots()
Returns the query roots
|
X |
innerJoin(String path,
String alias)
|
X |
innerJoinDefault(String path,
String alias)
|
JoinOnBuilder<X> |
innerJoinDefaultOn(String path,
String alias)
|
JoinOnBuilder<X> |
innerJoinOn(Class<?> entityClass,
String alias)
|
JoinOnBuilder<X> |
innerJoinOn(String base,
Class<?> entityClass,
String alias)
|
JoinOnBuilder<X> |
innerJoinOn(String path,
String alias)
|
X |
join(String path,
String alias,
JoinType type)
Adds a join to the query, possibly specializing implicit joins, and giving the joined element an alias.
|
X |
joinDefault(String path,
String alias,
JoinType type)
Adds a join to the query, possibly specializing implicit joins, and giving the joined element an alias.
|
JoinOnBuilder<X> |
joinDefaultOn(String path,
String alias,
JoinType type)
Adds a join with an on-clause to the query, possibly specializing implicit joins, and giving the joined element an alias.
|
JoinOnBuilder<X> |
joinOn(Class<?> entityClass,
String alias,
JoinType type)
Like
joinOn(java.lang.String, java.lang.Class, java.lang.String, com.blazebit.persistence.JoinType) but with
the query root assumed as base. |
JoinOnBuilder<X> |
joinOn(String base,
Class<?> entityClass,
String alias,
JoinType type)
Adds an entity join with an on-clause to the query and giving the joined element an alias.
|
JoinOnBuilder<X> |
joinOn(String path,
String alias,
JoinType type)
Adds a join with an on-clause to the query, possibly specializing implicit joins, and giving the joined element an alias.
|
X |
leftJoin(String path,
String alias)
|
X |
leftJoinDefault(String path,
String alias)
|
JoinOnBuilder<X> |
leftJoinDefaultOn(String path,
String alias)
|
JoinOnBuilder<X> |
leftJoinOn(Class<?> entityClass,
String alias)
|
JoinOnBuilder<X> |
leftJoinOn(String base,
Class<?> entityClass,
String alias)
|
JoinOnBuilder<X> |
leftJoinOn(String path,
String alias)
|
X |
rightJoin(String path,
String alias)
|
X |
rightJoinDefault(String path,
String alias)
|
JoinOnBuilder<X> |
rightJoinDefaultOn(String path,
String alias)
|
JoinOnBuilder<X> |
rightJoinOn(Class<?> entityClass,
String alias)
|
JoinOnBuilder<X> |
rightJoinOn(String base,
Class<?> entityClass,
String alias)
|
JoinOnBuilder<X> |
rightJoinOn(String path,
String alias)
|
X from(Class<?> entityClass)
FromBuilder#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(String correlationPath)
FromBuilder#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 queriedX from(String correlationPath, String alias)
correlationPath
- The correlation path which should be queriedalias
- The alias for the entityX fromOld(Class<?> entityClass)
FromBuilder#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)
FromBuilder#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)
FromBuilder#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)
FromBuilder#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<?> entityClass, String alias, int valueCount)
CommonQueryBuilder.setParameter(String, Object)
withentityClass
- The entity class which should be queriedalias
- The alias for the entityvalueCount
- The number of values to use for the values clause<T> X fromValues(Class<T> entityClass, String alias, Collection<T> values)
fromValues(Class, String, int)
but passes the collection size
as valueCount and directly binds the collection as parameter via CommonQueryBuilder.setParameter(String, Object)
.entityClass
- The entity class which should be queriedalias
- The alias for the entityvalues
- The values to use for the values clauseX join(String path, String alias, JoinType type)
path
- The path to joinalias
- The alias for the joined elementtype
- The join typeX joinDefault(String path, String alias, JoinType type)
path
- The path to joinalias
- The alias for the joined elementtype
- The join typeJoinOnBuilder<X> joinOn(String path, String alias, JoinType type)
The resulting join is different from a default join because it can only be referred to via it's alias. The absolute path can only be used if the joined path is a map and the on-clause contains a EQ predicate with the KEY on the left hand side.
path
- The path to joinalias
- The alias for the joined elementtype
- The join typeJoinOnBuilder<X> joinDefaultOn(String path, String alias, JoinType type)
path
- The path to joinalias
- The alias for the joined elementtype
- The join typeJoinOnBuilder<X> joinOn(Class<?> entityClass, String alias, JoinType type)
joinOn(java.lang.String, java.lang.Class, java.lang.String, com.blazebit.persistence.JoinType)
but with
the query root assumed as base.entityClass
- The entity class to joinalias
- The alias for the joined elementtype
- The join typeJoinOnBuilder<X> joinOn(String base, Class<?> entityClass, String alias, JoinType type)
base
- The base node on which to joinentityClass
- The entity class to joinalias
- The alias for the joined elementtype
- The join typeX innerJoin(String path, String alias)
join(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.INNER
.path
- The path to joinalias
- The alias for the joined elementX innerJoinDefault(String path, String alias)
joinDefault(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.INNER
.path
- The path to joinalias
- The alias for the joined elementJoinOnBuilder<X> innerJoinOn(String path, String alias)
joinOn(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.INNER
.path
- The path to joinalias
- The alias for the joined elementJoinOnBuilder<X> innerJoinDefaultOn(String path, String alias)
joinDefaultOn(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.INNER
.path
- The path to joinalias
- The alias for the joined elementJoinOnBuilder<X> innerJoinOn(Class<?> entityClass, String alias)
joinOn(java.lang.Class, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.INNER
.entityClass
- The entity class to joinalias
- The alias for the joined elementJoinOnBuilder<X> innerJoinOn(String base, Class<?> entityClass, String alias)
joinOn(java.lang.String, java.lang.Class, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.INNER
.base
- The base node on which to joinentityClass
- The entity class to joinalias
- The alias for the joined elementX leftJoin(String path, String alias)
join(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.LEFT
.path
- The path to joinalias
- The alias for the joined elementX leftJoinDefault(String path, String alias)
joinDefault(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.LEFT
.path
- The path to joinalias
- The alias for the joined elementJoinOnBuilder<X> leftJoinOn(String path, String alias)
joinOn(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.LEFT
.path
- The path to joinalias
- The alias for the joined elementJoinOnBuilder<X> leftJoinDefaultOn(String path, String alias)
joinDefaultOn(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.LEFT
.path
- The path to joinalias
- The alias for the joined elementJoinOnBuilder<X> leftJoinOn(Class<?> entityClass, String alias)
joinOn(java.lang.Class, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.LEFT
.entityClass
- The entity class to joinalias
- The alias for the joined elementJoinOnBuilder<X> leftJoinOn(String base, Class<?> entityClass, String alias)
joinOn(java.lang.String, java.lang.Class, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.LEFT
.base
- The base node on which to joinentityClass
- The entity class to joinalias
- The alias for the joined elementX rightJoin(String path, String alias)
join(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.RIGHT
.path
- The path to joinalias
- The alias for the joined elementX rightJoinDefault(String path, String alias)
joinDefault(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.RIGHT
.path
- The path to joinalias
- The alias for the joined elementJoinOnBuilder<X> rightJoinOn(String path, String alias)
joinOn(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.RIGHT
.path
- The path to joinalias
- The alias for the joined elementJoinOnBuilder<X> rightJoinDefaultOn(String path, String alias)
joinDefaultOn(java.lang.String, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.RIGHT
.path
- The path to joinalias
- The alias for the joined elementJoinOnBuilder<X> rightJoinOn(Class<?> entityClass, String alias)
joinOn(java.lang.Class, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.RIGHT
.entityClass
- The entity class to joinalias
- The alias for the joined elementJoinOnBuilder<X> rightJoinOn(String base, Class<?> entityClass, String alias)
joinOn(java.lang.String, java.lang.Class, java.lang.String, com.blazebit.persistence.JoinType)
but with
JoinType.RIGHT
.base
- The base node on which to joinentityClass
- The entity class to joinalias
- The alias for the joined elementCopyright © 2016 Blazebit. All Rights Reserved.