Top Description Fields Constructors Methods
org.hibernate.sql.ast.tree.cte

public Class CteTable

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, java.util.function.Consumer, org.hibernate.metamodel.mapping.Association, .AttributeMapping, .AttributeMappingsList, .BasicValuedMapping, .DiscriminatedAssociationModelPart, .EmbeddableValuedModelPart, .EntityDiscriminatorMapping, .EntityIdentifierMapping, .EntityMappingType, .EntityValuedModelPart, .ForeignKeyDescriptor, .ModelPart, .PluralAttributeMapping, org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping, org.hibernate.persister.entity.EntityPersister, org.hibernate.query.derived.AnonymousTupleTableGroupProducer, .CteTupleTableGroupProducer

Describes the table definition for the CTE - its name amd its columns
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final List<CteColumn>
private final String
private final AnonymousTupleTableGroupProducer

Constructor Summary

AccessConstructor and Description
public
CteTable(String cteName, List<CteColumn> cteColumns)

public
CteTable(String cteName, CteTupleTableGroupProducer tableGroupProducer)

private
CteTable(String cteName, AnonymousTupleTableGroupProducer tableGroupProducer, List<CteColumn> cteColumns)

Method Summary

Modifier and TypeMethod and Description
public static CteTable
createEntityTable(String cteName, EntityMappingType entityDescriptor)

public static CteTable
createIdTable(String cteName, EntityMappingType entityDescriptor)

public static int
private static int
determineModelPartStartIndex(int offset, ModelPart modelPart, ModelPart modelPartToFind)

public static void
forEachCteColumn(String prefix, ModelPart modelPart, Consumer<CteColumn> consumer)

public List<CteColumn>
public String
public AnonymousTupleTableGroupProducer
public CteTable
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cteColumnsback to summary
private final List<CteColumn> cteColumns
cteNameback to summary
private final String cteName
tableGroupProducerback to summary
private final AnonymousTupleTableGroupProducer tableGroupProducer

Constructor Detail

CteTableback to summary
public CteTable(String cteName, List<CteColumn> cteColumns)
CteTableback to summary
public CteTable(String cteName, CteTupleTableGroupProducer tableGroupProducer)
CteTableback to summary
private CteTable(String cteName, AnonymousTupleTableGroupProducer tableGroupProducer, List<CteColumn> cteColumns)

Method Detail

createEntityTableback to summary
public static CteTable createEntityTable(String cteName, EntityMappingType entityDescriptor)
createIdTableback to summary
public static CteTable createIdTable(String cteName, EntityMappingType entityDescriptor)
determineModelPartStartIndexback to summary
public static int determineModelPartStartIndex(EntityPersister entityDescriptor, ModelPart modelPart)
determineModelPartStartIndexback to summary
private static int determineModelPartStartIndex(int offset, ModelPart modelPart, ModelPart modelPartToFind)
forEachCteColumnback to summary
public static void forEachCteColumn(String prefix, ModelPart modelPart, Consumer<CteColumn> consumer)
getCteColumnsback to summary
public List<CteColumn> getCteColumns()
getTableExpressionback to summary
public String getTableExpression()
getTableGroupProducerback to summary
public AnonymousTupleTableGroupProducer getTableGroupProducer()
withNameback to summary
public CteTable withName(String name)