Top Fields Constructors Methods
org.hibernate.query.sqm.tree.cte

public Class SqmCteTable<T>

extends AnonymousTupleType<T>
implements JpaCteCriteriaType<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.criteria.JpaCteCriteriaType, org.hibernate.query.criteria.JpaCriteriaNode, java.io.Serializable
Imports
java.util.ArrayList, .List, org.hibernate.metamodel.model.domain.DomainType, org.hibernate.query.criteria.JpaCteCriteriaAttribute, .JpaCteCriteriaType, org.hibernate.query.derived.AnonymousTupleSimpleSqmPathSource, .AnonymousTupleType, .CteTupleTableGroupProducer, org.hibernate.query.sqm.SqmExpressible, .SqmPathSource, org.hibernate.query.sqm.tree.select.SqmSelectQuery, .SqmSelectStatement, .SqmSelectableNode, org.hibernate.sql.ast.spi.FromClauseAccess, .SqlSelection, org.hibernate.type.BasicType

Authors
Steve Ebersole, Christian Beikov

Field Summary

Modifier and TypeField and Description
private final List<SqmCteTableColumn>
private final SqmCteStatement<T>
private final String

Constructor Summary

AccessConstructor and Description
private
SqmCteTable(String name, SqmCteStatement<T> cteStatement, SqmSelectableNode<?>[] sqmSelectableNodes)

Method Summary

Modifier and TypeMethod and Description
public static <X> SqmCteTable<X>
createStatementTable(String name, SqmCteStatement<X> cteStatement, SqmSelectQuery<X> selectStatement)

private BasicType<?>
public SqmPathSource<?>
public SqmExpressible<?>
public JpaCteCriteriaAttribute
getAttribute(String name)

Implements org.hibernate.query.criteria.JpaCteCriteriaType.getAttribute.

Returns the found attribute or null.
public List<JpaCteCriteriaAttribute>
public List<SqmCteTableColumn>
public String
public SqmCteStatement<T>
public String
getName()

Implements org.hibernate.query.criteria.JpaCteCriteriaType.getName.

The name under which this CTE is registered.
public AnonymousTupleType<?>
public DomainType<T>
getType()

Implements org.hibernate.query.criteria.JpaCteCriteriaType.getType.

The domain type of the CTE.
public CteTupleTableGroupProducer
Inherited from org.hibernate.query.derived.AnonymousTupleType:
componentCountcreateSqmPathdetermineColumnNamesgetgetBindableJavaTypegetBindableTypegetComponentNamegetComponentNamesgetExpressibleJavaTypegetIndexgetJavaTypegetPathNamegetPersistenceTypegetSelectableNodegetSqmPathTypegetSqmTypetoString

Field Detail

columnsback to summary
private final List<SqmCteTableColumn> columns
cteStatementback to summary
private final SqmCteStatement<T> cteStatement
nameback to summary
private final String name

Constructor Detail

SqmCteTableback to summary
private SqmCteTable(String name, SqmCteStatement<T> cteStatement, SqmSelectableNode<?>[] sqmSelectableNodes)

Method Detail

createStatementTableback to summary
public static <X> SqmCteTable<X> createStatementTable(String name, SqmCteStatement<X> cteStatement, SqmSelectQuery<X> selectStatement)
determineRecursiveCteAttributeTypeback to summary
private BasicType<?> determineRecursiveCteAttributeType(String name)
findSubPathSourceback to summary
public SqmPathSource<?> findSubPathSource(String name)

Overrides org.hibernate.query.derived.AnonymousTupleType.findSubPathSource.

Implements org.hibernate.query.sqm.SqmPathSource.findSubPathSource.

Doc from org.hibernate.query.sqm.SqmPathSource.findSubPathSource.

Find a SqmPathSource by name relative to this source.

Returns:SqmPathSource<?>

null if the subPathSource is not found

Annotations
@Override
getback to summary
public SqmExpressible<?> get(String componentName)

Overrides org.hibernate.query.derived.AnonymousTupleType.get.

Implements org.hibernate.metamodel.model.domain.TupleType.get.

Annotations
@Override
getAttributeback to summary
public JpaCteCriteriaAttribute getAttribute(String name)

Implements org.hibernate.query.criteria.JpaCteCriteriaType.getAttribute.

Doc from org.hibernate.query.criteria.JpaCteCriteriaType.getAttribute.

Returns the found attribute or null.

Annotations
@Override
getAttributesback to summary
public List<JpaCteCriteriaAttribute> getAttributes()

Implements org.hibernate.query.criteria.JpaCteCriteriaType.getAttributes.

Doc from org.hibernate.query.criteria.JpaCteCriteriaType.getAttributes.

The attributes of the CTE type.

Annotations
@Override
getColumnsback to summary
public List<SqmCteTableColumn> getColumns()
getCteNameback to summary
public String getCteName()
getCteStatementback to summary
public SqmCteStatement<T> getCteStatement()
getNameback to summary
public String getName()

Implements org.hibernate.query.criteria.JpaCteCriteriaType.getName.

Doc from org.hibernate.query.criteria.JpaCteCriteriaType.getName.

The name under which this CTE is registered.

Annotations
@Override
getTupleTypeback to summary
public AnonymousTupleType<?> getTupleType()
getTypeback to summary
public DomainType<T> getType()

Implements org.hibernate.query.criteria.JpaCteCriteriaType.getType.

Doc from org.hibernate.query.criteria.JpaCteCriteriaType.getType.

The domain type of the CTE.

Annotations
@Override
resolveTableGroupProducerback to summary
public CteTupleTableGroupProducer resolveTableGroupProducer(String aliasStem, List<SqlSelection> sqlSelections, FromClauseAccess fromClauseAccess)

Overrides org.hibernate.query.derived.AnonymousTupleType.resolveTableGroupProducer.

Annotations
@Override