public class FromElement extends HqlSqlWalkerNode implements DisplayableNode, ParameterContainer
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 |
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 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.internal.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)
protected void doInitialize(FromClause fromClause, String tableAlias, String className, String classAlias, EntityPersister persister, EntityType type)
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 String renderMapKeyPropertySelectFragment(int size, int k)
public String renderMapEntryPropertySelectFragment(int size, int k)
public FromClause getFromClause()
public boolean isImplied()
public String getDisplayText()
getDisplayText
in interface DisplayableNode
protected void appendDisplayText(StringBuilder buf)
public void setJoinSequence(JoinSequence joinSequence)
public JoinSequence getJoinSequence()
public void setIncludeSubclasses(boolean includeSubclasses)
public boolean isIncludeSubclasses()
public boolean isDereferencedBySuperclassOrSubclassProperty()
public String getIdentityColumn()
public String[] getIdentityColumns()
public void setCollectionJoin(boolean collectionJoin)
public boolean isCollectionJoin()
public void setRole(String role)
public void applyTreatAsDeclarations(Set<String> treatAsDeclarationsByPath)
public String getRole()
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<FromElement> 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 CollectionPropertyReference getCollectionPropertyReference(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 void setWithClauseFragment(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 © 2017 JBoss by Red Hat. All rights reserved.