Class QueryLiteral<T>
java.lang.Object
org.hibernate.sql.ast.tree.expression.QueryLiteral<T>
- All Implemented Interfaces:
DomainResultProducer<T>,SqlSelectionProducer,Expression,Literal,SqlAstNode,JdbcParameterBinder
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 TypeMethodDescriptionvoidaccept(SqlAstWalker walker) voidapplySqlSelections(DomainResultCreationState creationState) Used when this producer is a selection in a sub-query.voidbindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) Bind the appropriate value in the JDBC statementcreateDomainResult(String resultVariable, DomainResultCreationState creationState) Produce the domain queryThe type for this expressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Constructor Details
-
QueryLiteral
-
-
Method Details
-
getLiteralValue
- Specified by:
getLiteralValuein interfaceLiteral
-
getJdbcMapping
- Specified by:
getJdbcMappingin interfaceLiteral
-
accept
- Specified by:
acceptin interfaceSqlAstNode
-
getExpressionType
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
createDomainResult
public DomainResult<T> createDomainResult(String resultVariable, DomainResultCreationState creationState) Description copied from interface:DomainResultProducerProduce the domain query- Specified by:
createDomainResultin interfaceDomainResultProducer<T>
-
bindParameterValue
public void bindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext) throws SQLException Description copied from interface:JdbcParameterBinderBind the appropriate value in the JDBC statement- Specified by:
bindParameterValuein interfaceJdbcParameterBinder- Throws:
SQLException
-
applySqlSelections
Description copied from interface:DomainResultProducerUsed 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- Specified by:
applySqlSelectionsin interfaceDomainResultProducer<T>
-