public class FromElement extends HqlSqlWalkerNode implements DisplayableNode, ParameterContainer
Type | Property and Description |
---|---|
boolean |
isDereferencedBySubclass
Gets the value of the property dereferencedBySubclassProperty.
|
boolean |
isDereferencedBySuperclassOrSubclass
Gets the value of the property dereferencedBySuperclassOrSubclassProperty.
|
boolean |
isDereferencedBySuperclass
Gets the value of the property dereferencedBySuperclassProperty.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISCRIMINATOR_PROPERTY_NAME |
Modifier | Constructor and Description |
---|---|
|
FromElement() |
protected |
FromElement(FromClause fromClause,
FromElement origin,
java.lang.String alias)
Constructor form used to initialize
ComponentJoin |
Modifier and Type | Method and Description |
---|---|
void |
addEmbeddedParameter(ParameterSpecification specification)
Adds a parameter specification for a parameter encountered within this node.
|
protected void |
appendDisplayText(java.lang.StringBuilder buf) |
void |
applyTreatAsDeclarations(java.util.Set<java.lang.String> treatAsDeclarationsByPath) |
protected void |
doInitialize(FromClause fromClause,
java.lang.String tableAlias,
java.lang.String className,
java.lang.String classAlias,
EntityPersister persister,
EntityType type) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClassAlias() |
java.lang.String |
getClassName() |
CollectionPropertyReference |
getCollectionPropertyReference(java.lang.String propertyName) |
java.lang.String |
getCollectionSuffix() |
java.lang.String |
getCollectionTableAlias() |
Type |
getDataType() |
java.util.List<FromElement> |
getDestinations() |
java.lang.String |
getDisplayText()
Returns additional display text for the AST node.
|
ParameterSpecification[] |
getEmbeddedParameters()
Retrieve all embedded parameter specifications.
|
EntityPersister |
getEntityPersister() |
FromElement |
getFetchOrigin() |
FromClause |
getFromClause() |
java.lang.String |
getIdentifierPropertyName() |
java.lang.String |
getIdentityColumn() |
java.lang.String[] |
getIdentityColumns() |
ParameterSpecification |
getIndexCollectionSelectorParamSpec() |
JoinSequence |
getJoinSequence() |
FromElement |
getOrigin() |
PropertyMapping |
getPropertyMapping(java.lang.String propertyName) |
Type |
getPropertyType(java.lang.String propertyName,
java.lang.String propertyPath) |
Queryable |
getQueryable() |
QueryableCollection |
getQueryableCollection() |
FromElement |
getRealOrigin() |
java.lang.String |
getRole() |
Type |
getSelectType() |
int |
getSequence() |
java.lang.String |
getTableAlias() |
TypeDiscriminatorMetadata |
getTypeDiscriminatorMetadata() |
java.lang.String |
getWithClauseFragment() |
void |
handlePropertyBeingDereferenced(Type propertySource,
java.lang.String propertyName) |
boolean |
hasCacheablePersister() |
boolean |
hasEmbeddedParameters()
Determine whether this node contains embedded parameters.
|
int |
hashCode() |
void |
initializeCollection(FromClause fromClause,
java.lang.String classAlias,
java.lang.String tableAlias) |
protected void |
initializeComponentJoin(org.hibernate.hql.internal.ast.tree.FromElementType elementType) |
void |
initializeEntity(FromClause fromClause,
java.lang.String className,
EntityPersister persister,
EntityType type,
java.lang.String classAlias,
java.lang.String tableAlias) |
boolean |
inProjectionList() |
boolean |
isAllPropertyFetch() |
boolean |
isCollectionJoin() |
boolean |
isCollectionOfValuesOrComponents() |
boolean |
isDereferencedBySubclassProperty()
Gets the value of the property dereferencedBySubclassProperty.
|
boolean |
isDereferencedBySuperclassOrSubclassProperty()
Gets the value of the property dereferencedBySuperclassOrSubclassProperty.
|
boolean |
isDereferencedBySuperclassProperty()
Gets the value of the property dereferencedBySuperclassProperty.
|
boolean |
isEntity() |
boolean |
isFetch() |
boolean |
isFilter() |
boolean |
isFromOrJoinFragment() |
boolean |
isImplied()
Returns true if this FromElement was implied by a path, or false if this FROM element is explicitly declared in
the FROM clause.
|
boolean |
isImpliedInFromClause() |
boolean |
isIncludeSubclasses() |
boolean |
isManyToMany() |
java.lang.String |
renderMapEntryPropertySelectFragment(int size,
int k) |
java.lang.String |
renderMapKeyPropertySelectFragment(int size,
int k) |
void |
setAllPropertyFetch(boolean fetch) |
void |
setCollectionJoin(boolean collectionJoin) |
void |
setCollectionSuffix(java.lang.String suffix) |
void |
setCollectionTableAlias(java.lang.String collectionTableAlias) |
void |
setColumns(java.lang.String[] columns) |
void |
setFetch(boolean fetch) |
void |
setFilter(boolean b) |
void |
setImpliedInFromClause(boolean flag) |
void |
setIncludeSubclasses(boolean includeSubclasses) |
void |
setIndexCollectionSelectorParamSpec(ParameterSpecification indexCollectionSelectorParamSpec) |
void |
setInProjectionList(boolean inProjectionList) |
void |
setJoinSequence(JoinSequence joinSequence) |
void |
setOrigin(FromElement origin,
boolean manyToMany) |
void |
setQueryableCollection(QueryableCollection queryableCollection) |
void |
setRole(java.lang.String role) |
void |
setUseFromFragment(boolean useFromFragment) |
void |
setUseWhereFragment(boolean b) |
void |
setWithClauseFragment(java.lang.String withClauseFragment) |
java.lang.String[] |
toColumns(java.lang.String tableAlias,
java.lang.String path,
boolean inSelect) |
java.lang.String[] |
toColumns(java.lang.String tableAlias,
java.lang.String path,
boolean inSelect,
boolean forceAlias) |
boolean |
useFromFragment() |
boolean |
useWhereFragment() |
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
getOriginalText, setDataType, setText
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setText
public boolean isDereferencedBySuperclassOrSubclassProperty
public boolean isDereferencedBySuperclassProperty
public boolean isDereferencedBySubclassProperty
public static final java.lang.String DISCRIMINATOR_PROPERTY_NAME
public FromElement()
protected FromElement(FromClause fromClause, FromElement origin, java.lang.String alias)
ComponentJoin
fromClause
- The FROM clause to which this element belongsorigin
- The origin (LHS) of this elementalias
- The alias applied to this elementprotected void initializeComponentJoin(org.hibernate.hql.internal.ast.tree.FromElementType elementType)
public java.lang.String getCollectionSuffix()
public void setCollectionSuffix(java.lang.String suffix)
public void initializeCollection(FromClause fromClause, java.lang.String classAlias, java.lang.String tableAlias)
public void initializeEntity(FromClause fromClause, java.lang.String className, EntityPersister persister, EntityType type, java.lang.String classAlias, java.lang.String tableAlias)
protected void doInitialize(FromClause fromClause, java.lang.String tableAlias, java.lang.String className, java.lang.String classAlias, EntityPersister persister, EntityType type)
public EntityPersister getEntityPersister()
public Type getDataType()
getDataType
in class SqlNode
public Type getSelectType()
public Queryable getQueryable()
public java.lang.String getClassName()
public java.lang.String getClassAlias()
public java.lang.String getTableAlias()
public java.lang.String renderMapKeyPropertySelectFragment(int size, int k)
public java.lang.String renderMapEntryPropertySelectFragment(int size, int k)
public FromClause getFromClause()
public boolean isImplied()
public java.lang.String getDisplayText()
getDisplayText
in interface DisplayableNode
protected void appendDisplayText(java.lang.StringBuilder buf)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setJoinSequence(JoinSequence joinSequence)
public JoinSequence getJoinSequence()
public void setIncludeSubclasses(boolean includeSubclasses)
public boolean isIncludeSubclasses()
public boolean isDereferencedBySuperclassOrSubclassProperty()
public java.lang.String getIdentityColumn()
public java.lang.String[] getIdentityColumns()
public void setCollectionJoin(boolean collectionJoin)
public boolean isCollectionJoin()
public void setRole(java.lang.String role)
public void applyTreatAsDeclarations(java.util.Set<java.lang.String> treatAsDeclarationsByPath)
public java.lang.String getRole()
public void setQueryableCollection(QueryableCollection queryableCollection)
public QueryableCollection getQueryableCollection()
public void setColumns(java.lang.String[] columns)
public void setOrigin(FromElement origin, boolean manyToMany)
public boolean isManyToMany()
public java.util.List<FromElement> getDestinations()
public FromElement getOrigin()
public FromElement getRealOrigin()
public FromElement getFetchOrigin()
public TypeDiscriminatorMetadata getTypeDiscriminatorMetadata()
public Type getPropertyType(java.lang.String propertyName, java.lang.String propertyPath)
public java.lang.String[] toColumns(java.lang.String tableAlias, java.lang.String path, boolean inSelect)
public java.lang.String[] toColumns(java.lang.String tableAlias, java.lang.String path, boolean inSelect, boolean forceAlias)
public PropertyMapping getPropertyMapping(java.lang.String propertyName)
public CollectionPropertyReference getCollectionPropertyReference(java.lang.String propertyName)
public java.lang.String getIdentifierPropertyName()
public void setFetch(boolean fetch)
public boolean isFetch()
public int getSequence()
public void setFilter(boolean b)
public boolean isFilter()
public boolean useFromFragment()
public void setUseFromFragment(boolean useFromFragment)
public boolean useWhereFragment()
public void setUseWhereFragment(boolean b)
public void setCollectionTableAlias(java.lang.String collectionTableAlias)
public java.lang.String getCollectionTableAlias()
public boolean isCollectionOfValuesOrComponents()
public boolean isEntity()
public void setImpliedInFromClause(boolean flag)
public boolean isImpliedInFromClause()
public void setInProjectionList(boolean inProjectionList)
public boolean inProjectionList()
public boolean isFromOrJoinFragment()
public boolean isAllPropertyFetch()
public void setAllPropertyFetch(boolean fetch)
public java.lang.String getWithClauseFragment()
public void setWithClauseFragment(java.lang.String withClauseFragment)
public boolean hasCacheablePersister()
public void handlePropertyBeingDereferenced(Type propertySource, java.lang.String propertyName)
public boolean isDereferencedBySuperclassProperty()
public boolean isDereferencedBySubclassProperty()
public void addEmbeddedParameter(ParameterSpecification specification)
ParameterContainer
addEmbeddedParameter
in interface ParameterContainer
specification
- The generated specification.public boolean hasEmbeddedParameters()
ParameterContainer
ParameterContainer.getEmbeddedParameters()
is allowed to return null if this method returns false.hasEmbeddedParameters
in interface ParameterContainer
public ParameterSpecification[] getEmbeddedParameters()
ParameterContainer
getEmbeddedParameters
in interface ParameterContainer
ParameterContainer.hasEmbeddedParameters()
public ParameterSpecification getIndexCollectionSelectorParamSpec()
public void setIndexCollectionSelectorParamSpec(ParameterSpecification indexCollectionSelectorParamSpec)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.