Top Description Fields Constructors Methods
org.hibernate.sql.ast.tree.expression

public Class QueryLiteral<T>

extends Object
implements Literal, DomainResultProducer<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.sql.internal.DomainResultProducer, org.hibernate.sql.ast.tree.expression.Literal, org.hibernate.sql.ast.tree.expression.Expression, org.hibernate.sql.ast.spi.SqlSelectionProducer, org.hibernate.sql.ast.tree.SqlAstNode, org.hibernate.sql.exec.spi.JdbcParameterBinder
Imports
java.sql.PreparedStatement, .SQLException, org.hibernate.metamodel.mapping.BasicValuedMapping, .JdbcMapping, .JdbcMappingContainer, .SqlExpressible, org.hibernate.query.sqm.sql.internal.DomainResultProducer, org.hibernate.sql.ast.SqlAstWalker, org.hibernate.sql.ast.spi.SqlSelection, org.hibernate.sql.exec.spi.ExecutionContext, .JdbcParameterBindings, org.hibernate.sql.results.graph.DomainResult, .DomainResultCreationState, org.hibernate.sql.results.graph.basic.BasicResult

Represents a literal in the SQL AST. This form accepts a BasicValuedMapping as its org.hibernate.metamodel.mapping.MappingModelExpressible.
Author
Steve Ebersole
See Also
JdbcLiteral

Field Summary

Modifier and TypeField and Description
private final SqlExpressible
private final T

Constructor Summary

AccessConstructor and Description
public
QueryLiteral(T value, SqlExpressible expressible)

Method Summary

Modifier and TypeMethod and Description
public void
public void
applySqlSelections(DomainResultCreationState creationState)

Implements org.hibernate.query.sqm.sql.internal.DomainResultProducer.applySqlSelections.

Used when this producer is a selection in a sub-query.
public void
bindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext)

Implements org.hibernate.sql.exec.spi.JdbcParameterBinder.bindParameterValue.

Bind the appropriate value in the JDBC statement
public DomainResult<T>
public JdbcMappingContainer
public JdbcMapping
public T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expressibleback to summary
private final SqlExpressible expressible
valueback to summary
private final T value

Constructor Detail

QueryLiteralback to summary
public QueryLiteral(T value, SqlExpressible expressible)

Method Detail

acceptback to summary
public void accept(SqlAstWalker walker)

Implements org.hibernate.sql.ast.tree.SqlAstNode.accept.

Annotations
@Override
applySqlSelectionsback to summary
public void applySqlSelections(DomainResultCreationState creationState)

Implements org.hibernate.query.sqm.sql.internal.DomainResultProducer.applySqlSelections.

Doc from org.hibernate.query.sqm.sql.internal.DomainResultProducer.applySqlSelections.

Used when this producer is a selection in a sub-query. The DomainResult is only needed for root query of a SELECT statement. This default impl assumes this producer is a true (Sql)Expression

Annotations
@Override
bindParameterValueback to summary
public void bindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) throws SQLException

Implements org.hibernate.sql.exec.spi.JdbcParameterBinder.bindParameterValue.

Doc from org.hibernate.sql.exec.spi.JdbcParameterBinder.bindParameterValue.

Bind the appropriate value in the JDBC statement

Annotations
@Override
createDomainResultback to summary
public DomainResult<T> createDomainResult(String resultVariable, DomainResultCreationState creationState)

Implements org.hibernate.query.sqm.sql.internal.DomainResultProducer.createDomainResult.

Doc from org.hibernate.query.sqm.sql.internal.DomainResultProducer.createDomainResult.

Produce the domain query

Annotations
@Override
getExpressionTypeback to summary
public JdbcMappingContainer getExpressionType()

Implements org.hibernate.sql.ast.tree.expression.Expression.getExpressionType.

Doc from org.hibernate.sql.ast.tree.expression.Expression.getExpressionType.

The type for this expression

Annotations
@Override
getJdbcMappingback to summary
public JdbcMapping getJdbcMapping()

Implements org.hibernate.sql.ast.tree.expression.Literal.getJdbcMapping.

Annotations
@Override
getLiteralValueback to summary
public T getLiteralValue()

Implements org.hibernate.sql.ast.tree.expression.Literal.getLiteralValue.

Annotations
@Override