Top Description Fields Constructors Methods
org.hibernate.query.sqm.tree.from

public Class SqmFromClause

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.ArrayList, .Collections, .List, java.util.function.Consumer, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.query.sqm.tree.SqmCopyContext

Contract representing a from clause.

The parent/child bit represents sub-queries. The child from clauses are only used for test assertions, but are left here as it is most convenient to maintain them here versus another structure.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private List<SqmRoot<?>>

Constructor Summary

AccessConstructor and Description
public
public
SqmFromClause(int expectedNumberOfRoots)

private

Method Summary

Modifier and TypeMethod and Description
public void
addRoot(SqmRoot<?> root)

Add roots incrementally

public SqmFromClause
public int
public List<SqmRoot<?>>
getRoots()

Immutable view of the domain roots.

public void
setRoots(List<SqmRoot<?>> domainRoots)

Inject the complete set of domain roots

public void
visitRoots(Consumer<SqmRoot<?>> consumer)

Visit the domain roots

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

domainRootsback to summary
private List<SqmRoot<?>> domainRoots

Constructor Detail

SqmFromClauseback to summary
public SqmFromClause()
SqmFromClauseback to summary
public SqmFromClause(int expectedNumberOfRoots)
SqmFromClauseback to summary
private SqmFromClause(SqmFromClause original, SqmCopyContext context)

Method Detail

addRootback to summary
public void addRoot(SqmRoot<?> root)

Add roots incrementally

copyback to summary
public SqmFromClause copy(SqmCopyContext context)
getNumberOfRootsback to summary
public int getNumberOfRoots()
getRootsback to summary
public List<SqmRoot<?>> getRoots()

Immutable view of the domain roots. Use setRoots or addRoot to mutate the roots

setRootsback to summary
public void setRoots(List<SqmRoot<?>> domainRoots)

Inject the complete set of domain roots

visitRootsback to summary
public void visitRoots(Consumer<SqmRoot<?>> consumer)

Visit the domain roots