Class QueryLiteral<T>
java.lang.Object
org.hibernate.sql.ast.tree.expression.QueryLiteral<T>
- All Implemented Interfaces:
org.hibernate.query.sqm.sql.internal.DomainResultProducer<T>
,SqlSelectionProducer
,Expression
,Literal
,SqlAstNode
,JdbcParameterBinder
public class QueryLiteral<T>
extends Object
implements Literal, org.hibernate.query.sqm.sql.internal.DomainResultProducer<T>
Represents a literal in the SQL AST. This form accepts a
BasicValuedMapping
as its MappingModelExpressible
.- See Also:
-
Field Summary
Fields inherited from interface org.hibernate.sql.exec.spi.JdbcParameterBinder
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SqlAstWalker walker) void
applySqlSelections
(DomainResultCreationState creationState) void
bindParameterValue
(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) Bind the appropriate value in the JDBC statementcreateDomainResult
(String resultVariable, DomainResultCreationState creationState) The type for this expressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Constructor Details
-
QueryLiteral
-
-
Method Details
-
getLiteralValue
- Specified by:
getLiteralValue
in interfaceLiteral
-
getJdbcMapping
- Specified by:
getJdbcMapping
in interfaceLiteral
-
accept
- Specified by:
accept
in interfaceSqlAstNode
-
getExpressionType
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
createDomainResult
public DomainResult<T> createDomainResult(String resultVariable, DomainResultCreationState creationState) - Specified by:
createDomainResult
in interfaceorg.hibernate.query.sqm.sql.internal.DomainResultProducer<T>
-
bindParameterValue
public void bindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) throws SQLException Description copied from interface:JdbcParameterBinder
Bind the appropriate value in the JDBC statement- Specified by:
bindParameterValue
in interfaceJdbcParameterBinder
- Throws:
SQLException
-
applySqlSelections
- Specified by:
applySqlSelections
in interfaceorg.hibernate.query.sqm.sql.internal.DomainResultProducer<T>
-