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

public Interface ParameterContainer

Known Direct Implementers
org.hibernate.hql.internal.ast.tree.SqlFragment, org.hibernate.hql.internal.ast.tree.FromElement
Annotations
@Deprecated
Imports
org.hibernate.param.ParameterSpecification

Deprecated

See entire discussion above

Currently this is needed in order to deal with FromElements which contain "hidden" JDBC parameters from applying filters.

Would love for this to go away, but that would require that Hibernate's internal join handling be able to either:

In the interim, this allows us to at least treat these "hidden" parameters properly which is the most pressing need.

Author
Steve Ebersole

Method Summary

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

Adds a parameter specification for a parameter encountered within this node.

public ParameterSpecification[]

Returns:

All embedded parameter specifications; may return null.
getEmbeddedParameters
()

Retrieve all embedded parameter specifications.

public boolean

Returns:

True if this node contains embedded parameters; false otherwise.
hasEmbeddedParameters
()

Determine whether this node contains embedded parameters.

public void
setText(String
The renderable text
text
)

Set the renderable text of this node.

Method Detail

addEmbeddedParameterback to summary
public void addEmbeddedParameter(ParameterSpecification specification)

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()

Retrieve all embedded parameter specifications.

Returns:ParameterSpecification[]

All embedded parameter specifications; may return null.

See Also
hasEmbeddedParameters()
hasEmbeddedParametersback to summary
public boolean 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.

setTextback to summary
public void setText(String text)

Set the renderable text of this node.

Parameters
text:String

The renderable text