Top Description Inners Fields Constructors Methods
org.hibernate.hql.internal.ast.tree

public Class FromElement

extends HqlSqlWalkerNode
implements DisplayableNode, ParameterContainer
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.internal.ast.tree.ParameterContainer, org.hibernate.hql.internal.ast.tree.DisplayableNode
Known Direct Subclasses
org.hibernate.hql.internal.ast.tree.ImpliedFromElement, org.hibernate.hql.internal.ast.tree.MapKeyEntityFromElement, org.hibernate.hql.internal.ast.tree.ComponentJoin, org.hibernate.hql.internal.ast.tree.EntityJoinFromElement
Imports
java.util.ArrayList, .Collections, .LinkedList, .List, .Set, java.util.stream.Collectors, antlr.collections.AST, org.hibernate.QueryException, org.hibernate.engine.internal.JoinSequence, org.hibernate.hql.internal.CollectionProperties, org.hibernate.hql.internal.antlr.HqlSqlTokenTypes, .SqlTokenTypes, org.hibernate.hql.internal.ast.TypeDiscriminatorMetadata, org.hibernate.hql.internal.ast.util.ASTUtil, org.hibernate.hql.spi.QueryTranslator, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.internal.util.StringHelper, org.hibernate.param.DynamicFilterParameterSpecification, .ParameterSpecification, org.hibernate.persister.collection.QueryableCollection, org.hibernate.persister.entity.DiscriminatorMetadata, .EntityPersister, .PropertyMapping, .Queryable, org.hibernate.type.EntityType, .Type

Deprecated

as a consequence of ParameterContainer being deprecated. See corresponding docs for further information.

Represents a single mapped class mentioned in an HQL FROM clause. Each class reference will have the following symbols:
Author
josh

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private String
private String
private boolean
private String
private String[]
private boolean
private boolean
private List<FromElement>
public static final String
private FromElementType
private List<ParameterSpecification>
private boolean
private boolean
private FromClause
private boolean
private boolean
private boolean
private static final CoreMessageLogger
private boolean
private FromElement
origin

Deprecated as a consequence of FromElement being deprecated.
private String
private int
private String
private TypeDiscriminatorMetadata
private boolean
private boolean
private AST
private String

Constructor Summary

AccessConstructor and Description
public
protected
FromElement(FromClause
The FROM clause to which this element belongs
fromClause
,
FromElement
The origin (LHS) of this element
origin
,
String
The alias applied to this element
alias
)

Deprecated as a consequence of FromElement being deprecated.
Constructor form used to initialize ComponentJoin

Method Summary

Modifier and TypeMethod and Description
private void
addDestination(FromElement fromElement)

Deprecated as a consequence of FromElement being deprecated.
public void
addEmbeddedParameter(ParameterSpecification
The generated specification.
specification
)

Implements org.hibernate.hql.internal.ast.tree.ParameterContainer.addEmbeddedParameter.

Adds a parameter specification for a parameter encountered within this node.
protected void
public void
applyTreatAsDeclarations(Set<String> treatAsDeclarationsByPath)

private TypeDiscriminatorMetadata
pack-priv void
protected void
doInitialize(FromClause fromClause, String tableAlias, String className, String classAlias, EntityPersister persister, EntityType type)

public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public String
public String
public CollectionPropertyReference
public String
public String
public Type
public List<FromElement>
public String

Returns:

String - The additional display text.
getDisplayText
()

Implements org.hibernate.hql.internal.ast.tree.DisplayableNode.getDisplayText.

Returns additional display text for the AST node.
public FromElementType
public ParameterSpecification[]
public EntityPersister
public FromElement
getFetchOrigin()

Deprecated as a consequence of FromElement being deprecated.
public FromClause
public String[]
public String
public String[]
public ParameterSpecification
public JoinSequence
public FromElement
getOrigin()

Deprecated as a consequence of FromElement being deprecated.
private List<ParameterSpecification>
public PropertyMapping
getPropertyMapping(String propertyName)

public String
public Type
getPropertyType(String propertyName, String propertyPath)

public Queryable
public QueryableCollection
public FromElement
getRealOrigin()

Deprecated as a consequence of FromElement being deprecated.
public String
public Type
public int
public String
public String
public TypeDiscriminatorMetadata
public AST
public String
public void
handlePropertyBeingDereferenced(Type propertySource, String propertyName)

public boolean
hasEmbeddedParameters()

Implements org.hibernate.hql.internal.ast.tree.ParameterContainer.hasEmbeddedParameters.

Determine whether this node contains embedded parameters.
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
public void
initializeCollection(FromClause fromClause, String classAlias, String tableAlias)

protected void
public void
initializeEntity(FromClause fromClause, String className, EntityPersister persister, EntityType type, String classAlias, String tableAlias)

public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean

Returns:

true if this FromElement was implied by a path, or false if this FROM element is explicitly declared
isImplied
()

Returns true if this FromElement was implied by a path, or false if this FROM element is explicitly declared in the FROM clause.

public boolean
public boolean
public boolean
public boolean
pack-priv String
pack-priv String

Returns:

the identifier select SQL fragment.
renderIdentifierSelect
(int
The total number of returned types.
size
,
int
The sequence of the current returned type.
k
)

Returns the identifier select SQL fragment.

public String
public String
pack-priv String

Returns:

the property select SQL fragment.
renderPropertySelect
(int
The total number of returned types.
size
,
int
The sequence of the current returned type.
k
)

Returns the property select SQL fragment.

pack-priv String

Returns:

the identifier select with the column alias.
renderScalarIdentifierSelect
(int
the sequence of the returned type
i
)

Render the identifier select, but in a 'scalar' context (i.e. generate the column alias).

pack-priv String
public void
setAllPropertyFetch(boolean fetch)

public void
setCollectionJoin(boolean collectionJoin)

public void
public void
setCollectionTableAlias(String collectionTableAlias)

public void
setColumns(String[] columns)

public void
setFetch(boolean fetch)

public void
setFilter(boolean b)

public void
setImpliedInFromClause(boolean flag)

public void
setIncludeSubclasses(boolean includeSubclasses)

public void
public void
setInProjectionList(boolean inProjectionList)

public void
public void
setOrigin(FromElement origin, boolean manyToMany)

Deprecated as a consequence of FromElement being deprecated.
public void
public void
public void
setUseFromFragment(boolean useFromFragment)

public void
public void
setWithClauseFragment(AST ast, String withClauseFragment)

public String[]
toColumns(String tableAlias, String path, boolean inSelect)

public String[]
toColumns(String tableAlias, String path, boolean inSelect, boolean forceAlias)

public boolean
public boolean
Inherited from org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode:
getAliasGeneratorgetASTFactorygetSessionFactoryHelpergetWalkerinitialize