Interface BlazeFrom<Z,X>
- Type Parameters:
Z
- The source typeX
- The target type
- All Superinterfaces:
BlazeExpression<X>
,BlazeFetchParent<Z,
,X> BlazePath<X>
,Expression<X>
,FetchParent<Z,
,X> From<Z,
,X> Path<X>
,Selection<X>
,TupleElement<X>
- All Known Subinterfaces:
BlazeCollectionJoin<Z,
,E> BlazeJoin<Z,
,X> BlazeListJoin<Z,
,E> BlazeMapJoin<Z,
,K, V> BlazeRoot<X>
,BlazeSetJoin<Z,
E>
An extended version of
From
.- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionReturns all joins including fetches since fetches are just joins with the fetch flag set to true.LikeFrom.getCorrelationParent()
but returns the subtypeBlazeFrom
instead.Gets the entity type by the given entity type class and delegates tojoin(EntityType)
.Gets the entity type by the given entity type class and delegates tojoin(EntityType, String)
.Gets the entity type by the given entity type class and delegates tojoin(EntityType, String, JoinType)
.Gets the entity type by the given entity type class and delegates tojoin(EntityType, JoinType)
.<X,
Y> BlazeJoin<X, Y> LikeFrom.join(String)
but returns the subtypeBlazeJoin
instead.<X,
Y> BlazeJoin<X, Y> LikeFrom.join(String)
but allows to set the alias of theBlazeJoin
.<X,
Y> BlazeJoin<X, Y> LikeFrom.join(String, JoinType)
but allows to set the alias of theBlazeJoin
.<X,
Y> BlazeJoin<X, Y> LikeFrom.join(String, JoinType)
but returns the subtypeBlazeJoin
instead.<Y> BlazeCollectionJoin<X,
Y> LikeFrom.join(CollectionAttribute)
but returns the subtypeBlazeCollectionJoin
instead.<Y> BlazeCollectionJoin<X,
Y> LikeFrom.join(CollectionAttribute)
but allows to set the alias of theBlazeCollectionJoin
.<Y> BlazeCollectionJoin<X,
Y> join
(javax.persistence.metamodel.CollectionAttribute<? super X, Y> collection, String alias, JoinType joinType) LikeFrom.join(CollectionAttribute, JoinType)
but allows to set the alias of theBlazeCollectionJoin
.<Y> BlazeCollectionJoin<X,
Y> LikeFrom.join(CollectionAttribute, JoinType)
but returns the subtypeBlazeCollectionJoin
instead.join
(javax.persistence.metamodel.EntityType<Y> entityType) Creates an inner join to the specified entity type.Likejoin(EntityType)
but allows to set the alias of theBlazeJoin
.Likejoin(EntityType, JoinType)
but allows to set the alias of theBlazeJoin
.Creates a join of the specified join type to the specified entity type.<Y> BlazeListJoin<X,
Y> LikeFrom.join(ListAttribute)
but returns the subtypeBlazeListJoin
instead.<Y> BlazeListJoin<X,
Y> LikeFrom.join(ListAttribute)
but allows to set the alias of theBlazeListJoin
.<Y> BlazeListJoin<X,
Y> LikeFrom.join(ListAttribute, JoinType)
but allows to set the alias of theBlazeListJoin
.<Y> BlazeListJoin<X,
Y> LikeFrom.join(ListAttribute, JoinType)
but returns the subtypeBlazeListJoin
instead.<K,
V> BlazeMapJoin<X, K, V> LikeFrom.join(MapAttribute)
but returns the subtypeBlazeMapJoin
instead.<K,
V> BlazeMapJoin<X, K, V> LikeFrom.join(MapAttribute)
but allows to set the alias of theBlazeMapJoin
.<K,
V> BlazeMapJoin<X, K, V> LikeFrom.join(MapAttribute, JoinType)
but allows to set the alias of theBlazeMapJoin
.<K,
V> BlazeMapJoin<X, K, V> LikeFrom.join(MapAttribute, JoinType)
but returns the subtypeBlazeMapJoin
instead.<Y> BlazeSetJoin<X,
Y> LikeFrom.join(SetAttribute)
but returns the subtypeBlazeSetJoin
instead.<Y> BlazeSetJoin<X,
Y> LikeFrom.join(SetAttribute)
but allows to set the alias of theBlazeSetJoin
.<Y> BlazeSetJoin<X,
Y> LikeFrom.join(SetAttribute, JoinType)
but allows to set the alias of theBlazeSetJoin
.<Y> BlazeSetJoin<X,
Y> LikeFrom.join(SetAttribute, JoinType)
but returns the subtypeBlazeSetJoin
instead.LikeFrom.join(SingularAttribute)
but returns the subtypeBlazeJoin
instead.LikeFrom.join(SingularAttribute)
but allows to set the alias of theBlazeJoin
.join
(javax.persistence.metamodel.SingularAttribute<? super X, Y> attribute, String alias, JoinType joinType) LikeFrom.join(SingularAttribute, JoinType)
but allows to set the alias of theBlazeJoin
.LikeFrom.join(SingularAttribute, JoinType)
but returns the subtypeBlazeJoin
instead.<X,
Y> BlazeCollectionJoin<X, Y> joinCollection
(String attributeName) LikeFrom.joinCollection(String)
but returns the subtypeBlazeCollectionJoin
instead.<X,
Y> BlazeCollectionJoin<X, Y> joinCollection
(String attributeName, String alias) LikeFrom.joinCollection(String)
but allows to set the alias of theBlazeCollectionJoin
.<X,
Y> BlazeCollectionJoin<X, Y> joinCollection
(String attributeName, String alias, JoinType joinType) LikeFrom.joinCollection(String, JoinType)
but allows to set the alias of theBlazeCollectionJoin
.<X,
Y> BlazeCollectionJoin<X, Y> joinCollection
(String attributeName, JoinType joinType) LikeFrom.joinCollection(String, JoinType)
but returns the subtypeBlazeCollectionJoin
instead.<X,
Y> BlazeListJoin<X, Y> LikeFrom.joinList(String)
but returns the subtypeBlazeListJoin
instead.<X,
Y> BlazeListJoin<X, Y> LikeFrom.joinList(String)
but allows to set the alias of theBlazeListJoin
.<X,
Y> BlazeListJoin<X, Y> LikeFrom.joinList(String, JoinType)
but allows to set the alias of theBlazeListJoin
.<X,
Y> BlazeListJoin<X, Y> LikeFrom.joinList(String, JoinType)
but returns the subtypeBlazeListJoin
instead.<X,
K, V> BlazeMapJoin<X, K, V> LikeFrom.joinMap(String)
but returns the subtypeBlazeMapJoin
instead.<X,
K, V> BlazeMapJoin<X, K, V> LikeFrom.joinMap(String)
but allows to set the alias of theBlazeMapJoin
.<X,
K, V> BlazeMapJoin<X, K, V> LikeFrom.joinMap(String, JoinType)
but allows to set the alias of theBlazeMapJoin
.<X,
K, V> BlazeMapJoin<X, K, V> LikeFrom.joinMap(String, JoinType)
but returns the subtypeBlazeMapJoin
instead.<X,
Y> BlazeSetJoin<X, Y> LikeFrom.joinSet(String)
but returns the subtypeBlazeSetJoin
instead.<X,
Y> BlazeSetJoin<X, Y> LikeFrom.joinSet(String)
but allows to set the alias of theBlazeSetJoin
.<X,
Y> BlazeSetJoin<X, Y> LikeFrom.joinSet(String, JoinType)
but allows to set the alias of theBlazeSetJoin
.<X,
Y> BlazeSetJoin<X, Y> LikeFrom.joinSet(String, JoinType)
but returns the subtypeBlazeSetJoin
instead.Methods inherited from interface com.blazebit.persistence.criteria.BlazeExpression
as
Methods inherited from interface com.blazebit.persistence.criteria.BlazeFetchParent
fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch
Methods inherited from interface com.blazebit.persistence.criteria.BlazePath
get, get, get, get, getParentPath, type
Methods inherited from interface javax.persistence.criteria.Expression
in, in, in, in, isNotNull, isNull
Methods inherited from interface javax.persistence.criteria.FetchParent
getFetches
Methods inherited from interface javax.persistence.criteria.From
getJoins, isCorrelated
Methods inherited from interface javax.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
Methods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
-
Method Details
-
getBlazeJoins
Returns all joins including fetches since fetches are just joins with the fetch flag set to true.- Returns:
- All joins
-
join
<Y> BlazeJoin<X,Y> join(javax.persistence.metamodel.SingularAttribute<? super X, Y> attribute, String alias) LikeFrom.join(SingularAttribute)
but allows to set the alias of theBlazeJoin
.- Type Parameters:
Y
- The join target type- Parameters:
attribute
- The target of the joinalias
- The alias for theBlazeJoin
- Returns:
- The resulting join
-
join
<Y> BlazeJoin<X,Y> join(javax.persistence.metamodel.SingularAttribute<? super X, Y> attribute, String alias, JoinType joinType) LikeFrom.join(SingularAttribute, JoinType)
but allows to set the alias of theBlazeJoin
.- Type Parameters:
Y
- The join target type- Parameters:
attribute
- The target of the joinalias
- The alias for theBlazeJoin
joinType
- The join type- Returns:
- The resulting join
-
join
<Y> BlazeCollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X, Y> collection, String alias) LikeFrom.join(CollectionAttribute)
but allows to set the alias of theBlazeCollectionJoin
.- Type Parameters:
Y
- The join target type- Parameters:
collection
- The target of the joinalias
- The alias for theBlazeCollectionJoin
- Returns:
- The resulting join
-
join
LikeFrom.join(SetAttribute)
but allows to set the alias of theBlazeSetJoin
.- Type Parameters:
Y
- The join target type- Parameters:
set
- The target of the joinalias
- The alias for theBlazeSetJoin
- Returns:
- The resulting join
-
join
<Y> BlazeListJoin<X,Y> join(javax.persistence.metamodel.ListAttribute<? super X, Y> list, String alias) LikeFrom.join(ListAttribute)
but allows to set the alias of theBlazeListJoin
.- Type Parameters:
Y
- The join target type- Parameters:
list
- The target of the joinalias
- The alias for theBlazeListJoin
- Returns:
- The resulting join
-
join
<K,V> BlazeMapJoin<X,K, joinV> (javax.persistence.metamodel.MapAttribute<? super X, K, V> map, String alias) LikeFrom.join(MapAttribute)
but allows to set the alias of theBlazeMapJoin
.- Type Parameters:
K
- The join target key typeV
- The join target value type- Parameters:
map
- The target of the joinalias
- The alias for theBlazeMapJoin
- Returns:
- The resulting join
-
join
<Y> BlazeCollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X, Y> collection, String alias, JoinType joinType) LikeFrom.join(CollectionAttribute, JoinType)
but allows to set the alias of theBlazeCollectionJoin
.- Type Parameters:
Y
- The join target type- Parameters:
collection
- The target of the joinalias
- The alias for theBlazeCollectionJoin
joinType
- The join type- Returns:
- The resulting join
-
join
<Y> BlazeSetJoin<X,Y> join(javax.persistence.metamodel.SetAttribute<? super X, Y> set, String alias, JoinType joinType) LikeFrom.join(SetAttribute, JoinType)
but allows to set the alias of theBlazeSetJoin
.- Type Parameters:
Y
- The join target type- Parameters:
set
- The target of the joinalias
- The alias for theBlazeSetJoin
joinType
- The join type- Returns:
- The resulting join
-
join
<Y> BlazeListJoin<X,Y> join(javax.persistence.metamodel.ListAttribute<? super X, Y> list, String alias, JoinType joinType) LikeFrom.join(ListAttribute, JoinType)
but allows to set the alias of theBlazeListJoin
.- Type Parameters:
Y
- The join target type- Parameters:
list
- The target of the joinalias
- The alias for theBlazeListJoin
joinType
- The join type- Returns:
- The resulting join
-
join
<K,V> BlazeMapJoin<X,K, joinV> (javax.persistence.metamodel.MapAttribute<? super X, K, V> map, String alias, JoinType joinType) LikeFrom.join(MapAttribute, JoinType)
but allows to set the alias of theBlazeMapJoin
.- Type Parameters:
K
- The join target key typeV
- The join target value type- Parameters:
map
- The target of the joinalias
- The alias for theBlazeMapJoin
joinType
- The join type- Returns:
- The resulting join
-
join
LikeFrom.join(String)
but allows to set the alias of theBlazeJoin
.- Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeJoin
- Returns:
- The resulting join
-
join
Likejoin(EntityType)
but allows to set the alias of theBlazeJoin
.- Type Parameters:
Y
- The joined entity type- Parameters:
entityType
- The entity type to joinalias
- The alias for theBlazeJoin
- Returns:
- The resulting join
- Since:
- 1.3.0
-
join
Gets the entity type by the given entity type class and delegates tojoin(EntityType, String)
.- Type Parameters:
Y
- The joined entity type- Parameters:
entityTypeClass
- The entity type class to joinalias
- The alias for theBlazeJoin
- Returns:
- The resulting join
- Since:
- 1.3.0
-
joinCollection
LikeFrom.joinCollection(String)
but allows to set the alias of theBlazeCollectionJoin
.- Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeCollectionJoin
- Returns:
- The resulting join
-
joinSet
LikeFrom.joinSet(String)
but allows to set the alias of theBlazeSetJoin
.- Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeSetJoin
- Returns:
- The resulting join
-
joinList
LikeFrom.joinList(String)
but allows to set the alias of theBlazeListJoin
.- Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeListJoin
- Returns:
- The resulting join
-
joinMap
LikeFrom.joinMap(String)
but allows to set the alias of theBlazeMapJoin
.- Type Parameters:
X
- The join source typeK
- The join target key typeV
- The join target value type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeMapJoin
- Returns:
- The resulting join
-
join
LikeFrom.join(String, JoinType)
but allows to set the alias of theBlazeJoin
.- Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeJoin
joinType
- The join type- Returns:
- The resulting join
-
join
<Y> BlazeJoin<X,Y> join(javax.persistence.metamodel.EntityType<Y> entityType, String alias, JoinType joinType) Likejoin(EntityType, JoinType)
but allows to set the alias of theBlazeJoin
.- Type Parameters:
Y
- The joined entity type- Parameters:
entityType
- The entity type to joinalias
- The alias for theBlazeJoin
joinType
- The join type- Returns:
- The resulting join
- Since:
- 1.3.0
-
join
Gets the entity type by the given entity type class and delegates tojoin(EntityType, String, JoinType)
.- Type Parameters:
Y
- The joined entity type- Parameters:
entityTypeClass
- The entity type class to joinalias
- The alias for theBlazeJoin
joinType
- The join type- Returns:
- The resulting join
- Since:
- 1.3.0
-
joinCollection
<X,Y> BlazeCollectionJoin<X,Y> joinCollection(String attributeName, String alias, JoinType joinType) LikeFrom.joinCollection(String, JoinType)
but allows to set the alias of theBlazeCollectionJoin
.- Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeCollectionJoin
joinType
- The join type- Returns:
- The resulting join
-
joinSet
LikeFrom.joinSet(String, JoinType)
but allows to set the alias of theBlazeSetJoin
.- Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeSetJoin
joinType
- The join type- Returns:
- The resulting join
-
joinList
LikeFrom.joinList(String, JoinType)
but allows to set the alias of theBlazeListJoin
.- Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeListJoin
joinType
- The join type- Returns:
- The resulting join
-
joinMap
LikeFrom.joinMap(String, JoinType)
but allows to set the alias of theBlazeMapJoin
.- Type Parameters:
X
- The join source typeK
- The join target key typeV
- The join target value type- Parameters:
attributeName
- The name of the attribute for the target of the joinalias
- The alias for theBlazeMapJoin
joinType
- The join type- Returns:
- The resulting join
-
getCorrelationParent
LikeFrom.getCorrelationParent()
but returns the subtypeBlazeFrom
instead.- Specified by:
getCorrelationParent
in interfaceFrom<Z,
X> - Returns:
- The parent of the correlated From object
-
join
LikeFrom.join(SingularAttribute)
but returns the subtypeBlazeJoin
instead. -
join
<Y> BlazeJoin<X,Y> join(javax.persistence.metamodel.SingularAttribute<? super X, Y> attribute, JoinType joinType) LikeFrom.join(SingularAttribute, JoinType)
but returns the subtypeBlazeJoin
instead. -
join
<Y> BlazeCollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X, Y> collection) LikeFrom.join(CollectionAttribute)
but returns the subtypeBlazeCollectionJoin
instead. -
join
LikeFrom.join(SetAttribute)
but returns the subtypeBlazeSetJoin
instead. -
join
LikeFrom.join(ListAttribute)
but returns the subtypeBlazeListJoin
instead. -
join
LikeFrom.join(MapAttribute)
but returns the subtypeBlazeMapJoin
instead. -
join
<Y> BlazeCollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X, Y> collection, JoinType joinType) LikeFrom.join(CollectionAttribute, JoinType)
but returns the subtypeBlazeCollectionJoin
instead. -
join
<Y> BlazeSetJoin<X,Y> join(javax.persistence.metamodel.SetAttribute<? super X, Y> set, JoinType joinType) LikeFrom.join(SetAttribute, JoinType)
but returns the subtypeBlazeSetJoin
instead. -
join
<Y> BlazeListJoin<X,Y> join(javax.persistence.metamodel.ListAttribute<? super X, Y> list, JoinType joinType) LikeFrom.join(ListAttribute, JoinType)
but returns the subtypeBlazeListJoin
instead. -
join
<K,V> BlazeMapJoin<X,K, joinV> (javax.persistence.metamodel.MapAttribute<? super X, K, V> map, JoinType joinType) LikeFrom.join(MapAttribute, JoinType)
but returns the subtypeBlazeMapJoin
instead. -
join
LikeFrom.join(String)
but returns the subtypeBlazeJoin
instead. -
join
Creates an inner join to the specified entity type.- Type Parameters:
Y
- The joined entity type- Parameters:
entityType
- The entity type to join- Returns:
- The resulting join
- Since:
- 1.3.0
-
join
Gets the entity type by the given entity type class and delegates tojoin(EntityType)
.- Type Parameters:
Y
- The joined entity type- Parameters:
entityTypeClass
- The entity type class to join- Returns:
- The resulting join
- Since:
- 1.3.0
-
joinCollection
LikeFrom.joinCollection(String)
but returns the subtypeBlazeCollectionJoin
instead.- Specified by:
joinCollection
in interfaceFrom<Z,
X> - Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the join- Returns:
- The resulting join
-
joinSet
LikeFrom.joinSet(String)
but returns the subtypeBlazeSetJoin
instead. -
joinList
LikeFrom.joinList(String)
but returns the subtypeBlazeListJoin
instead. -
joinMap
LikeFrom.joinMap(String)
but returns the subtypeBlazeMapJoin
instead. -
join
LikeFrom.join(String, JoinType)
but returns the subtypeBlazeJoin
instead. -
join
Creates a join of the specified join type to the specified entity type.- Type Parameters:
Y
- The joined entity type- Parameters:
entityType
- The entity type to joinjoinType
- The join type- Returns:
- The resulting join
- Since:
- 1.3.0
-
join
Gets the entity type by the given entity type class and delegates tojoin(EntityType, JoinType)
.- Type Parameters:
Y
- The joined entity type- Parameters:
entityTypeClass
- The entity type class to joinjoinType
- The join type- Returns:
- The resulting join
- Since:
- 1.3.0
-
joinCollection
LikeFrom.joinCollection(String, JoinType)
but returns the subtypeBlazeCollectionJoin
instead.- Specified by:
joinCollection
in interfaceFrom<Z,
X> - Type Parameters:
X
- The join source typeY
- The join target type- Parameters:
attributeName
- The name of the attribute for the target of the joinjoinType
- The join type- Returns:
- The resulting join
-
joinSet
LikeFrom.joinSet(String, JoinType)
but returns the subtypeBlazeSetJoin
instead. -
joinList
LikeFrom.joinList(String, JoinType)
but returns the subtypeBlazeListJoin
instead. -
joinMap
LikeFrom.joinMap(String, JoinType)
but returns the subtypeBlazeMapJoin
instead.
-