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

public Class SqlFragment

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

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<E>
private FromElement
fromElement

Deprecated as a consequence of FromElement being deprecated.
private JoinFragment

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.ast.tree.ParameterContainer.addEmbeddedParameter.

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

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

Retrieve all embedded parameter specifications.
public FromElement
getFromElement()

Deprecated as a consequence of FromElement being deprecated.
public boolean
hasEmbeddedParameters()

Implements org.hibernate.hql.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
Inherited from org.hibernate.hql.ast.tree.Node:
getColumngetFilenamegetLinegetRenderTextgetTextLengthinitializeinitialize

Field Detail

embeddedParametersback to summary
private List<E> 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

Constructor Detail

SqlFragmentback to summary
public SqlFragment()

Method Detail

addEmbeddedParameterback to summary
public void addEmbeddedParameter(ParameterSpecification specification)

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

Doc from org.hibernate.hql.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.ast.tree.ParameterContainer.getEmbeddedParameters.

Doc from org.hibernate.hql.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.

hasEmbeddedParametersback to summary
public boolean hasEmbeddedParameters()

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

Doc from org.hibernate.hql.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)