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 String |
DISCRIMINATOR_PROPERTY_NAME |
Modifier | Constructor and Description |
---|---|
|
FromElement() |
protected |
FromElement(FromClause fromClause,
FromElement origin,
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(StringBuffer buf) |
boolean |
equals(Object obj) |
String |
getClassAlias() |
String |
getClassName() |
String |
getCollectionSuffix() |
String |
getCollectionTableAlias() |
Type |
getDataType() |
List |
getDestinations() |
String |
getDisplayText()
Returns additional display text for the AST node.
|
ParameterSpecification[] |
getEmbeddedParameters()
Retrieve all embedded parameter specifications.
|
EntityPersister |
getEntityPersister() |
FromClause |
getFromClause() |
String |
getIdentityColumn() |
ParameterSpecification |
getIndexCollectionSelectorParamSpec() |
JoinSequence |
getJoinSequence() |
FromElement |
getOrigin() |
PropertyMapping |
getPropertyMapping(String propertyName) |
Type |
getPropertyType(String propertyName,
String propertyPath) |
Queryable |
getQueryable() |
QueryableCollection |
getQueryableCollection() |
FromElement |
getRealOrigin() |
Type |
getSelectType() |
int |
getSequence() |
String |
getTableAlias() |
TypeDiscriminatorMetadata |
getTypeDiscriminatorMetadata() |
String |
getWithClauseFragment() |
String |
getWithClauseJoinAlias() |
void |
handlePropertyBeingDereferenced(Type propertySource,
String propertyName) |
boolean |
hasCacheablePersister() |
boolean |
hasEmbeddedParameters()
Determine whether this node contains embedded parameters.
|
int |
hashCode() |
void |
initializeCollection(FromClause fromClause,
String classAlias,
String tableAlias) |
protected void |
initializeComponentJoin(org.hibernate.hql.ast.tree.FromElementType elementType) |
void |
initializeEntity(FromClause fromClause,
String className,
EntityPersister persister,
EntityType type,
String classAlias,
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() |
void |
setAllPropertyFetch(boolean fetch) |
void |
setCollectionJoin(boolean collectionJoin) |
void |
setCollectionSuffix(String suffix) |
void |
setCollectionTableAlias(String collectionTableAlias) |
void |
setColumns(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(String role) |
void |
setUseFromFragment(boolean useFromFragment) |
void |
setUseWhereFragment(boolean b) |
void |
setWithClauseFragment(String withClauseJoinAlias,
String withClauseFragment) |
String[] |
toColumns(String tableAlias,
String path,
boolean inSelect) |
String[] |
toColumns(String tableAlias,
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 String DISCRIMINATOR_PROPERTY_NAME
public FromElement()
protected FromElement(FromClause fromClause, FromElement origin, 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.ast.tree.FromElementType elementType)
public String getCollectionSuffix()
public void setCollectionSuffix(String suffix)
public void initializeCollection(FromClause fromClause, String classAlias, String tableAlias)
public void initializeEntity(FromClause fromClause, String className, EntityPersister persister, EntityType type, String classAlias, String tableAlias)
public EntityPersister getEntityPersister()
public Type getDataType()
getDataType
in class SqlNode
public Type getSelectType()
public Queryable getQueryable()
public String getClassName()
public String getClassAlias()
public String getTableAlias()
public FromClause getFromClause()
public boolean isImplied()
public String getDisplayText()
getDisplayText
in interface DisplayableNode
protected void appendDisplayText(StringBuffer buf)
public void setJoinSequence(JoinSequence joinSequence)
public JoinSequence getJoinSequence()
public void setIncludeSubclasses(boolean includeSubclasses)
public boolean isIncludeSubclasses()
public boolean isDereferencedBySuperclassOrSubclassProperty()
public String getIdentityColumn()
public void setCollectionJoin(boolean collectionJoin)
public boolean isCollectionJoin()
public void setRole(String role)
public void setQueryableCollection(QueryableCollection queryableCollection)
public QueryableCollection getQueryableCollection()
public void setColumns(String[] columns)
public void setOrigin(FromElement origin, boolean manyToMany)
public boolean isManyToMany()
public List getDestinations()
public FromElement getOrigin()
public FromElement getRealOrigin()
public TypeDiscriminatorMetadata getTypeDiscriminatorMetadata()
public String[] toColumns(String tableAlias, String path, boolean inSelect, boolean forceAlias)
public PropertyMapping getPropertyMapping(String propertyName)
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(String collectionTableAlias)
public 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 String getWithClauseFragment()
public String getWithClauseJoinAlias()
public void setWithClauseFragment(String withClauseJoinAlias, String withClauseFragment)
public boolean hasCacheablePersister()
public void handlePropertyBeingDereferenced(Type propertySource, 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 © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved