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 subtypeBlazeFrominstead.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 subtypeBlazeJoininstead.<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 subtypeBlazeJoininstead.<Y> BlazeCollectionJoin<X,Y> LikeFrom.join(CollectionAttribute)but returns the subtypeBlazeCollectionJoininstead.<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 subtypeBlazeCollectionJoininstead.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 subtypeBlazeListJoininstead.<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 subtypeBlazeListJoininstead.<K,V> BlazeMapJoin<X, K, V> LikeFrom.join(MapAttribute)but returns the subtypeBlazeMapJoininstead.<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 subtypeBlazeMapJoininstead.<Y> BlazeSetJoin<X,Y> LikeFrom.join(SetAttribute)but returns the subtypeBlazeSetJoininstead.<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 subtypeBlazeSetJoininstead.LikeFrom.join(SingularAttribute)but returns the subtypeBlazeJoininstead.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 subtypeBlazeJoininstead.<X,Y> BlazeCollectionJoin<X, Y> joinCollection(String attributeName) LikeFrom.joinCollection(String)but returns the subtypeBlazeCollectionJoininstead.<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 subtypeBlazeCollectionJoininstead.<X,Y> BlazeListJoin<X, Y> LikeFrom.joinList(String)but returns the subtypeBlazeListJoininstead.<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 subtypeBlazeListJoininstead.<X,K, V> BlazeMapJoin<X, K, V> LikeFrom.joinMap(String)but returns the subtypeBlazeMapJoininstead.<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 subtypeBlazeMapJoininstead.<X,Y> BlazeSetJoin<X, Y> LikeFrom.joinSet(String)but returns the subtypeBlazeSetJoininstead.<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 subtypeBlazeSetJoininstead.Methods inherited from interface com.blazebit.persistence.criteria.BlazeExpression
asMethods inherited from interface com.blazebit.persistence.criteria.BlazeFetchParent
fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchMethods inherited from interface com.blazebit.persistence.criteria.BlazePath
get, get, get, get, getParentPath, typeMethods inherited from interface javax.persistence.criteria.Expression
in, in, in, in, isNotNull, isNullMethods inherited from interface javax.persistence.criteria.FetchParent
getFetchesMethods inherited from interface javax.persistence.criteria.From
getJoins, isCorrelatedMethods inherited from interface javax.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods 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 theBlazeJoinjoinType- 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 theBlazeCollectionJoinjoinType- 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 theBlazeSetJoinjoinType- 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 theBlazeListJoinjoinType- 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 theBlazeMapJoinjoinType- 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 theBlazeJoinjoinType- 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 theBlazeJoinjoinType- 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 theBlazeJoinjoinType- 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 theBlazeCollectionJoinjoinType- 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 theBlazeSetJoinjoinType- 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 theBlazeListJoinjoinType- 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 theBlazeMapJoinjoinType- The join type- Returns:
- The resulting join
-
getCorrelationParent
LikeFrom.getCorrelationParent()but returns the subtypeBlazeFrominstead.- Specified by:
getCorrelationParentin interfaceFrom<Z,X> - Returns:
- The parent of the correlated From object
-
join
LikeFrom.join(SingularAttribute)but returns the subtypeBlazeJoininstead. -
join
<Y> BlazeJoin<X,Y> join(javax.persistence.metamodel.SingularAttribute<? super X, Y> attribute, JoinType joinType) LikeFrom.join(SingularAttribute, JoinType)but returns the subtypeBlazeJoininstead. -
join
<Y> BlazeCollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X, Y> collection) LikeFrom.join(CollectionAttribute)but returns the subtypeBlazeCollectionJoininstead. -
join
LikeFrom.join(SetAttribute)but returns the subtypeBlazeSetJoininstead. -
join
LikeFrom.join(ListAttribute)but returns the subtypeBlazeListJoininstead. -
join
LikeFrom.join(MapAttribute)but returns the subtypeBlazeMapJoininstead. -
join
<Y> BlazeCollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X, Y> collection, JoinType joinType) LikeFrom.join(CollectionAttribute, JoinType)but returns the subtypeBlazeCollectionJoininstead. -
join
<Y> BlazeSetJoin<X,Y> join(javax.persistence.metamodel.SetAttribute<? super X, Y> set, JoinType joinType) LikeFrom.join(SetAttribute, JoinType)but returns the subtypeBlazeSetJoininstead. -
join
<Y> BlazeListJoin<X,Y> join(javax.persistence.metamodel.ListAttribute<? super X, Y> list, JoinType joinType) LikeFrom.join(ListAttribute, JoinType)but returns the subtypeBlazeListJoininstead. -
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 subtypeBlazeMapJoininstead. -
join
LikeFrom.join(String)but returns the subtypeBlazeJoininstead. -
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 subtypeBlazeCollectionJoininstead.- Specified by:
joinCollectionin 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 subtypeBlazeSetJoininstead. -
joinList
LikeFrom.joinList(String)but returns the subtypeBlazeListJoininstead. -
joinMap
LikeFrom.joinMap(String)but returns the subtypeBlazeMapJoininstead. -
join
LikeFrom.join(String, JoinType)but returns the subtypeBlazeJoininstead. -
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 subtypeBlazeCollectionJoininstead.- Specified by:
joinCollectionin 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 subtypeBlazeSetJoininstead. -
joinList
LikeFrom.joinList(String, JoinType)but returns the subtypeBlazeListJoininstead. -
joinMap
LikeFrom.joinMap(String, JoinType)but returns the subtypeBlazeMapJoininstead.
-