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 aBasicValuedMappingas itsMappingModelExpressible.- See Also:
JdbcLiteral
-
-
Field Summary
-
Fields inherited from interface org.hibernate.sql.exec.spi.JdbcParameterBinder
NOOP
-
-
Constructor Summary
Constructors Constructor Description QueryLiteral(T value, SqlExpressible expressible)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SqlAstWalker walker)voidapplySqlSelections(DomainResultCreationState creationState)voidbindParameterValue(PreparedStatement statement, int startPosition, JdbcParameterBindings jdbcParameterBindings, ExecutionContext executionContext)Bind the appropriate value in the JDBC statementDomainResult<T>createDomainResult(String resultVariable, DomainResultCreationState creationState)JdbcMappingContainergetExpressionType()The type for this expressionJdbcMappinggetJdbcMapping()TgetLiteralValue()-
Methods 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 Detail
-
QueryLiteral
public QueryLiteral(T value, SqlExpressible expressible)
-
-
Method Detail
-
getLiteralValue
public T getLiteralValue()
- Specified by:
getLiteralValuein interfaceLiteral
-
getJdbcMapping
public JdbcMapping getJdbcMapping()
- Specified by:
getJdbcMappingin interfaceLiteral
-
accept
public void accept(SqlAstWalker walker)
- Specified by:
acceptin interfaceSqlAstNode
-
getExpressionType
public JdbcMappingContainer getExpressionType()
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
createDomainResult
public DomainResult<T> createDomainResult(String resultVariable, DomainResultCreationState creationState)
- Specified by:
createDomainResultin 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:JdbcParameterBinderBind the appropriate value in the JDBC statement- Specified by:
bindParameterValuein interfaceJdbcParameterBinder- Throws:
SQLException
-
applySqlSelections
public void applySqlSelections(DomainResultCreationState creationState)
- Specified by:
applySqlSelectionsin interfaceorg.hibernate.query.sqm.sql.internal.DomainResultProducer<T>
-
-