类 FromElement
- java.lang.Object
-
- antlr.BaseAST
-
- antlr.CommonAST
-
- org.hibernate.hql.internal.ast.tree.Node
-
- org.hibernate.hql.internal.ast.tree.SqlNode
-
- org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
-
- org.hibernate.hql.internal.ast.tree.FromElement
-
- 所有已实现的接口:
antlr.collections.AST,Serializable,DisplayableNode,InitializeableNode,ParameterContainer
public class FromElement extends HqlSqlWalkerNode implements DisplayableNode, ParameterContainer
Represents a single mapped class mentioned in an HQL FROM clause. Each class reference will have the following symbols:- A class name - This is the name of the Java class that is mapped by Hibernate.
- [optional] an HQL alias for the mapped class.
- A table name - The name of the table that is mapped to the Java class.
- A table alias - The alias for the table that will be used in the resulting SQL.
- 作者:
- josh
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringDISCRIMINATOR_PROPERTY_NAME
-
构造器概要
构造器 限定符 构造器 说明 FromElement()protectedFromElement(FromClause fromClause, FromElement origin, String alias)Constructor form used to initializeComponentJoin
-
方法概要
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.SqlNode
getOriginalText, setDataType, setText
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
-
从类继承的方法 antlr.BaseAST
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
-
从接口继承的方法 org.hibernate.hql.internal.ast.tree.ParameterContainer
setText
-
-
-
-
构造器详细资料
-
FromElement
public FromElement()
-
FromElement
protected FromElement(FromClause fromClause, FromElement origin, String alias)
Constructor form used to initializeComponentJoin- 参数:
fromClause- The FROM clause to which this element belongsorigin- The origin (LHS) of this elementalias- The alias applied to this element
-
-
方法详细资料
-
initializeComponentJoin
protected void initializeComponentJoin(org.hibernate.hql.internal.ast.tree.FromElementType elementType)
-
getCollectionSuffix
public String getCollectionSuffix()
-
setCollectionSuffix
public void setCollectionSuffix(String suffix)
-
initializeCollection
public void initializeCollection(FromClause fromClause, String classAlias, String tableAlias)
-
initializeEntity
public void initializeEntity(FromClause fromClause, String className, EntityPersister persister, EntityType type, String classAlias, String tableAlias)
-
doInitialize
protected void doInitialize(FromClause fromClause, String tableAlias, String className, String classAlias, EntityPersister persister, EntityType type)
-
getEntityPersister
public EntityPersister getEntityPersister()
-
getDataType
public Type getDataType()
- 覆盖:
getDataType在类中SqlNode
-
getSelectType
public Type getSelectType()
-
getQueryable
public Queryable getQueryable()
-
getClassName
public String getClassName()
-
getClassAlias
public String getClassAlias()
-
getTableName
public String getTableName()
-
getTableAlias
public String getTableAlias()
-
renderMapKeyPropertySelectFragment
public String renderMapKeyPropertySelectFragment(int size, int k)
-
renderMapEntryPropertySelectFragment
public String renderMapEntryPropertySelectFragment(int size, int k)
-
getFromClause
public FromClause getFromClause()
-
isImplied
public 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.- 返回:
- true if this FromElement was implied by a path, or false if this FROM element is explicitly declared
-
getDisplayText
public String getDisplayText()
Returns additional display text for the AST node.- 指定者:
getDisplayText在接口中DisplayableNode- 返回:
- String - The additional display text.
-
appendDisplayText
protected void appendDisplayText(StringBuilder buf)
-
setJoinSequence
public void setJoinSequence(JoinSequence joinSequence)
-
getJoinSequence
public JoinSequence getJoinSequence()
-
setIncludeSubclasses
public void setIncludeSubclasses(boolean includeSubclasses)
-
isIncludeSubclasses
public boolean isIncludeSubclasses()
-
isDereferencedBySuperclassOrSubclassProperty
public boolean isDereferencedBySuperclassOrSubclassProperty()
-
getIdentityColumn
public String getIdentityColumn()
-
getIdentityColumns
public String[] getIdentityColumns()
-
setCollectionJoin
public void setCollectionJoin(boolean collectionJoin)
-
isCollectionJoin
public boolean isCollectionJoin()
-
setRole
public void setRole(String role)
-
applyTreatAsDeclarations
public void applyTreatAsDeclarations(Set<String> treatAsDeclarationsByPath)
-
getRole
public String getRole()
-
setQueryableCollection
public void setQueryableCollection(QueryableCollection queryableCollection)
-
getQueryableCollection
public QueryableCollection getQueryableCollection()
-
setColumns
public void setColumns(String[] columns)
-
setOrigin
public void setOrigin(FromElement origin, boolean manyToMany)
-
isManyToMany
public boolean isManyToMany()
-
getDestinations
public List<FromElement> getDestinations()
-
getOrigin
public FromElement getOrigin()
-
getRealOrigin
public FromElement getRealOrigin()
-
getFetchOrigin
public FromElement getFetchOrigin()
-
getTypeDiscriminatorMetadata
public TypeDiscriminatorMetadata getTypeDiscriminatorMetadata()
-
toColumns
public String[] toColumns(String tableAlias, String path, boolean inSelect, boolean forceAlias)
-
getPropertyMapping
public PropertyMapping getPropertyMapping(String propertyName)
-
getCollectionPropertyReference
public CollectionPropertyReference getCollectionPropertyReference(String propertyName)
-
getIdentifierPropertyNames
public String[] getIdentifierPropertyNames()
-
setFetch
public void setFetch(boolean fetch)
-
isFetch
public boolean isFetch()
-
getSequence
public int getSequence()
-
setFilter
public void setFilter(boolean b)
-
isFilter
public boolean isFilter()
-
useFromFragment
public boolean useFromFragment()
-
setUseFromFragment
public void setUseFromFragment(boolean useFromFragment)
-
useWhereFragment
public boolean useWhereFragment()
-
setUseWhereFragment
public void setUseWhereFragment(boolean b)
-
setCollectionTableAlias
public void setCollectionTableAlias(String collectionTableAlias)
-
getCollectionTableAlias
public String getCollectionTableAlias()
-
isCollectionOfValuesOrComponents
public boolean isCollectionOfValuesOrComponents()
-
isEntity
public boolean isEntity()
-
setImpliedInFromClause
public void setImpliedInFromClause(boolean flag)
-
isImpliedInFromClause
public boolean isImpliedInFromClause()
-
setInProjectionList
public void setInProjectionList(boolean inProjectionList)
-
inProjectionList
public boolean inProjectionList()
-
isFromOrJoinFragment
public boolean isFromOrJoinFragment()
-
isAllPropertyFetch
public boolean isAllPropertyFetch()
-
setAllPropertyFetch
public void setAllPropertyFetch(boolean fetch)
-
getWithClauseAst
public antlr.collections.AST getWithClauseAst()
-
getWithClauseFragment
public String getWithClauseFragment()
-
setWithClauseFragment
public void setWithClauseFragment(antlr.collections.AST ast, String withClauseFragment)
-
handlePropertyBeingDereferenced
public void handlePropertyBeingDereferenced(Type propertySource, String propertyName)
-
isDereferencedBySuperclassProperty
public boolean isDereferencedBySuperclassProperty()
-
isDereferencedBySubclassProperty
public boolean isDereferencedBySubclassProperty()
-
addEmbeddedParameter
public void addEmbeddedParameter(ParameterSpecification specification)
从接口复制的说明:ParameterContainerAdds a parameter specification for a parameter encountered within this node. We use the term 'embedded' here because of the fact that the parameter was simply encountered as part of the node's text; it does not exist as part of a subtree as it might in a true AST.- 指定者:
addEmbeddedParameter在接口中ParameterContainer- 参数:
specification- The generated specification.
-
hasEmbeddedParameters
public boolean hasEmbeddedParameters()
从接口复制的说明:ParameterContainerDetermine whether this node contains embedded parameters. The implication is thatParameterContainer.getEmbeddedParameters()is allowed to return null if this method returns false.- 指定者:
hasEmbeddedParameters在接口中ParameterContainer- 返回:
- True if this node contains embedded parameters; false otherwise.
-
getEmbeddedParameters
public ParameterSpecification[] getEmbeddedParameters()
从接口复制的说明:ParameterContainerRetrieve all embedded parameter specifications.- 指定者:
getEmbeddedParameters在接口中ParameterContainer- 返回:
- All embedded parameter specifications; may return null.
- 另请参阅:
ParameterContainer.hasEmbeddedParameters()
-
getIndexCollectionSelectorParamSpec
public ParameterSpecification getIndexCollectionSelectorParamSpec()
-
setIndexCollectionSelectorParamSpec
public void setIndexCollectionSelectorParamSpec(ParameterSpecification indexCollectionSelectorParamSpec)
-
-