接口的使用
org.hibernate.criterion.Projection
-
使用Projection的程序包 程序包 说明 org.hibernate This package defines the central Hibernate APIs.org.hibernate.criterion A framework for defining restriction criteria and order criteria.org.hibernate.internal An internal package containing mostly implementations of central Hibernate APIs. -
-
org.hibernate中Projection的使用
参数类型为Projection的org.hibernate中的方法 修饰符和类型 方法 说明 CriteriaCriteria. setProjection(Projection projection)Used to specify that the query results will be a projection (scalar in nature). -
org.hibernate.criterion中Projection的使用
org.hibernate.criterion中Projection的子接口 修饰符和类型 接口 说明 interfaceEnhancedProjectionAn "enhanced" Projection for aCriteriaquery.实现Projection的org.hibernate.criterion中的类 修饰符和类型 类 说明 classAggregateProjectionBase class for standard aggregation functions.classAliasedProjectionRepresents a projection that specifies an aliasclassAvgProjectionAn avg() projectionclassCountProjectionA count projectionclassDistinctA wrappedProjection that is a wrapper around other projections to apply distinction.classIdentifierProjectionA property value, or grouped property valueclassProjectionListA projection that wraps other projections to allow selecting multiple values.classPropertyA factory for property-specific criterion and projection instancesclassPropertyProjectionA property value, or grouped property valueclassRowCountProjectionA row countclassSimpleProjectionA single-column projection that may be aliasedclassSQLProjectionA SQL fragment.返回Projection的org.hibernate.criterion中的方法 修饰符和类型 方法 说明 static ProjectionProjections. alias(Projection projection, String alias)Assign an alias to a projection, by wrapping itProjectionSimpleProjection. as(String alias)Create an aliased form of this projectionstatic ProjectionProjections. distinct(Projection projection)Create a distinct projection from a projection.ProjectionProjectionList. getProjection(int i)Access a wrapped projection by indexstatic ProjectionProjections. rowCount()The query row count, ie.static ProjectionProjections. sqlGroupProjection(String sql, String groupBy, String[] columnAliases, Type[] types)A grouping SQL projection, specifying both select clause and group by clause fragmentsstatic ProjectionProjections. sqlProjection(String sql, String[] columnAliases, Type[] types)A SQL projection, a typed select clause fragment参数类型为Projection的org.hibernate.criterion中的方法 修饰符和类型 方法 说明 ProjectionListProjectionList. add(Projection projection)Add a projection to this list of projectionsProjectionListProjectionList. add(Projection projection, String alias)Adds a projection to this list of projections after wrapping it with an aliasstatic ProjectionProjections. alias(Projection projection, String alias)Assign an alias to a projection, by wrapping itstatic ProjectionProjections. distinct(Projection projection)Create a distinct projection from a projection.DetachedCriteriaDetachedCriteria. setProjection(Projection projection)Set the projection to use.参数类型为Projection的org.hibernate.criterion中的构造器 构造器 说明 AliasedProjection(Projection projection, String alias)Distinct(Projection wrappedProjection)Constructs a Distinct -
org.hibernate.internal中Projection的使用
返回Projection的org.hibernate.internal中的方法 修饰符和类型 方法 说明 ProjectionCriteriaImpl. getProjection()参数类型为Projection的org.hibernate.internal中的方法 修饰符和类型 方法 说明 CriteriaCriteriaImpl. setProjection(Projection projection)CriteriaCriteriaImpl.Subcriteria. setProjection(Projection projection)
-