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 |
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 |
innerJoin(String path,
String alias)
|
X |
innerJoinDefault(String path,
String alias)
|
JoinOnBuilder<X> |
innerJoinDefaultOn(String path,
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(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(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(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 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 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 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 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 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 elementCopyright © 2015 Blazebit. All Rights Reserved.