Package org.hibernate.hql.ast.tree
Class SqlFragment
java.lang.Object
antlr.BaseAST
antlr.CommonAST
org.hibernate.hql.ast.tree.Node
org.hibernate.hql.ast.tree.SqlFragment
- All Implemented Interfaces:
antlr.collections.AST,Serializable,ParameterContainer
Represents an SQL fragment in the AST.
- See Also:
-
Field Summary
Fields inherited from class antlr.BaseAST
down, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEmbeddedParameter(ParameterSpecification specification) Adds a parameter specification for a parameter encountered within this node.Retrieve all embedded parameter specifications.booleanDetermine whether this node contains embedded parameters.booleanvoidsetFromElement(FromElement fromElement) voidsetJoinFragment(JoinFragment joinFragment) Methods inherited from class org.hibernate.hql.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initializeMethods inherited from class antlr.CommonAST
getText, getType, initialize, setText, setTypeMethods inherited from class 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, xmlSerializeRootOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.hql.ast.tree.ParameterContainer
setText
-
Constructor Details
-
SqlFragment
public SqlFragment()
-
-
Method Details
-
setJoinFragment
-
hasFilterCondition
public boolean hasFilterCondition() -
setFromElement
-
getFromElement
-
addEmbeddedParameter
Description copied from interface: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.- Specified by:
addEmbeddedParameterin interfaceParameterContainer- Parameters:
specification- The generated specification.
-
hasEmbeddedParameters
public boolean hasEmbeddedParameters()Description copied from interface:ParameterContainerDetermine whether this node contains embedded parameters. The implication is thatParameterContainer.getEmbeddedParameters()is allowed to return null if this method returns false.- Specified by:
hasEmbeddedParametersin interfaceParameterContainer- Returns:
- True if this node contains embedded parameters; false otherwise.
-
getEmbeddedParameters
Description copied from interface:ParameterContainerRetrieve all embedded parameter specifications.- Specified by:
getEmbeddedParametersin interfaceParameterContainer- Returns:
- All embedded parameter specifications; may return null.
- See Also:
-