接口 QuerySpace
-
- 所有已知子接口:
CollectionQuerySpace,CompositeQuerySpace,EntityQuerySpace,ExpandingCollectionQuerySpace,ExpandingCompositeQuerySpace,ExpandingEntityQuerySpace,ExpandingQuerySpace
- 所有已知实现类:
AbstractExpandingSourceQuerySpace,AbstractQuerySpace,CollectionQuerySpaceImpl,CompositeQuerySpaceImpl,EntityQuerySpaceImpl
public interface QuerySpaceDefines a persister reference (either entity or collection) or a composite reference. In JPA terms this is an "abstract schema type" when discussing JPQL or JPA Criteria queries. This models a single source of attributes (and fetches).- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static classQuerySpace.DispositionEnumeration of the different types of QuerySpaces we can have.
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 QuerySpace.DispositiongetDisposition()What type of QuerySpace (more-specific) is this?Iterable<Join>getJoins()Obtain all joins which originate from this QuerySpace, in other words, all the joins which this QuerySpace is the left-hand-side of.PropertyMappinggetPropertyMapping()Get thePropertyMappingfor this QuerySpace.QuerySpacesgetQuerySpaces()Get theQuerySpacesobject that is our owner.StringgetUid()The uid/alias which uniquely identifies this QuerySpace.String[]toAliasedColumns(String alias, String propertyName)Get the aliased column names for the specified property in the query space..
-
-
-
方法详细资料
-
getUid
String getUid()
The uid/alias which uniquely identifies this QuerySpace. Can be used to uniquely reference this QuerySpace elsewhere.- 返回:
- The uid
- 另请参阅:
QuerySpaces.findQuerySpaceByUid(java.lang.String)
-
getQuerySpaces
QuerySpaces getQuerySpaces()
Get theQuerySpacesobject that is our owner.- 返回:
- The QuerySpaces containing this QuerySpace
-
getPropertyMapping
PropertyMapping getPropertyMapping()
Get thePropertyMappingfor this QuerySpace.- 返回:
- The PropertyMapping
-
toAliasedColumns
String[] toAliasedColumns(String alias, String propertyName)
Get the aliased column names for the specified property in the query space..- 参数:
alias- - the table aliaspropertyName- - the property name- 返回:
- the aliased column names for the specified property
-
getDisposition
QuerySpace.Disposition getDisposition()
What type of QuerySpace (more-specific) is this?- 返回:
- The enum value representing the more-specific type of QuerySpace
-
getJoins
Iterable<Join> getJoins()
Obtain all joins which originate from this QuerySpace, in other words, all the joins which this QuerySpace is the left-hand-side of. For all the joins returned here,Join.getLeftHandSide()should point back to this QuerySpace such thatspace.getJoins().forEach{ join -> join.getLeftHandSide() == space }is true for all.- 返回:
- The joins which originate from this query space.
-
-