Top Description Fields Constructors Methods
org.hibernate.hql.internal.ast.tree

public Class SqlFragment

extends Node
implements ParameterContainer, TableReferenceNode
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.internal.ast.tree.TableReferenceNode, org.hibernate.hql.internal.ast.tree.ParameterContainer
Imports
java.util.ArrayList, .List, org.hibernate.param.ParameterSpecification, org.hibernate.sql.JoinFragment

Deprecated

as a consequence of ParameterContainer being deprecated. See corresponding docs for further information.

Represents an SQL fragment in the AST.
Author
josh

Field Summary

Modifier and TypeField and Description
private List<ParameterSpecification>
private FromElement
fromElement

Deprecated as a consequence of FromElement being deprecated.
private JoinFragment
private String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addEmbeddedParameter(ParameterSpecification
The generated specification.
specification
)

Implements org.hibernate.hql.internal.ast.tree.ParameterContainer.addEmbeddedParameter.

Adds a parameter specification for a parameter encountered within this node.
public ParameterSpecification[]
public FromElement
getFromElement()

Deprecated as a consequence of FromElement being deprecated.
public String[]
getReferencedTables()

Implements org.hibernate.hql.internal.ast.tree.TableReferenceNode.getReferencedTables.

Returns table names which are referenced by this node.
public boolean
hasEmbeddedParameters()

Implements org.hibernate.hql.internal.ast.tree.ParameterContainer.hasEmbeddedParameters.

Determine whether this node contains embedded parameters.
public boolean
public void
setFromElement(FromElement fromElement)

Deprecated as a consequence of FromElement being deprecated.
public void
public void
setReferencedTables(String[] referencedTables)

Inherited from org.hibernate.hql.internal.ast.tree.Node:
getColumngetFilenamegetLinegetRenderTextgetTextLengthinitializeinitialize

Field Detail

embeddedParametersback to summary
private List<ParameterSpecification> embeddedParameters
fromElementback to summary
private FromElement fromElement

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

joinFragmentback to summary
private JoinFragment joinFragment
referencedTablesback to summary
private String[] referencedTables

Constructor Detail

SqlFragmentback to summary
public SqlFragment()

Method Detail

addEmbeddedParameterback to summary
public void addEmbeddedParameter(ParameterSpecification specification)

Implements org.hibernate.hql.internal.ast.tree.ParameterContainer.addEmbeddedParameter.

Doc from org.hibernate.hql.internal.ast.tree.ParameterContainer.addEmbeddedParameter.

Adds 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.

Parameters
specification:ParameterSpecification

The generated specification.

getEmbeddedParametersback to summary
public ParameterSpecification[] getEmbeddedParameters()

Implements org.hibernate.hql.internal.ast.tree.ParameterContainer.getEmbeddedParameters.

Doc from org.hibernate.hql.internal.ast.tree.ParameterContainer.getEmbeddedParameters.

Retrieve all embedded parameter specifications.

Returns:ParameterSpecification[]

All embedded parameter specifications; may return null.

getFromElementback to summary
public FromElement getFromElement()

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

getReferencedTablesback to summary
public String[] getReferencedTables()

Implements org.hibernate.hql.internal.ast.tree.TableReferenceNode.getReferencedTables.

Doc from org.hibernate.hql.internal.ast.tree.TableReferenceNode.getReferencedTables.

Returns table names which are referenced by this node. If the tables can not be determined it returns null.

Returns:String[]

table names or null.

hasEmbeddedParametersback to summary
public boolean hasEmbeddedParameters()

Implements org.hibernate.hql.internal.ast.tree.ParameterContainer.hasEmbeddedParameters.

Doc from org.hibernate.hql.internal.ast.tree.ParameterContainer.hasEmbeddedParameters.

Determine whether this node contains embedded parameters. The implication is that getEmbeddedParameters() is allowed to return null if this method returns false.

Returns:boolean

True if this node contains embedded parameters; false otherwise.

hasFilterConditionback to summary
public boolean hasFilterCondition()
setFromElementback to summary
public void setFromElement(FromElement fromElement)

Deprecated

as a consequence of FromElement being deprecated. See corresponding docs for further information.

setJoinFragmentback to summary
public void setJoinFragment(JoinFragment joinFragment)
setReferencedTablesback to summary
public void setReferencedTables(String[] referencedTables)