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

public Class UnparsedNumericLiteral<N extends java.lang.Number>

extends Object
implements Literal, DomainResultProducer<N extends Number>
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.JdbcMapping, .JdbcMappingContainer, org.hibernate.query.sqm.sql.internal.DomainResultProducer, org.hibernate.query.sqm.tree.expression.NumericTypeCategory, org.hibernate.sql.ast.SqlAstWalker, org.hibernate.sql.ast.spi.SqlExpressionResolver, .SqlSelection, org.hibernate.sql.exec.spi.ExecutionContext, .JdbcParameterBindings, org.hibernate.sql.results.graph.DomainResult, .DomainResultCreationState, org.hibernate.sql.results.graph.basic.BasicResult, org.hibernate.type.spi.TypeConfiguration

A numeric literal coming from an HQL query, which needs special handling
Author
Steve Ebersole
See Also
org.hibernate.query.sqm.tree.expression.SqmHqlNumericLiteral

Field Summary

Modifier and TypeField and Description
private final JdbcMapping
private final String
private final NumericTypeCategory

Constructor Summary

AccessConstructor and Description
public
UnparsedNumericLiteral(String literalValue, NumericTypeCategory typeCategory, JdbcMapping jdbcMapping)

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<N>
public JdbcMappingContainer
public JdbcMapping
public N
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jdbcMappingback to summary
private final JdbcMapping jdbcMapping
literalValueback to summary
private final String literalValue
typeCategoryback to summary
private final NumericTypeCategory typeCategory

Constructor Detail

UnparsedNumericLiteralback to summary
public UnparsedNumericLiteral(String literalValue, NumericTypeCategory typeCategory, JdbcMapping jdbcMapping)

Method Detail

acceptback to summary
public void accept(SqlAstWalker sqlTreeWalker)

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

getLiteralValueback to summary
public N getLiteralValue()

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

Annotations
@Override
getUnparsedLiteralValueback to summary
public String getUnparsedLiteralValue()