Class Conversion
java.lang.Object
org.hibernate.query.sqm.tree.expression.Conversion
- All Implemented Interfaces:
org.hibernate.query.sqm.sql.internal.DomainResultProducer
,SqlSelectionProducer
,Expression
,SqlAstNode
public class Conversion
extends Object
implements Expression, org.hibernate.query.sqm.sql.internal.DomainResultProducer
A conversion of a duration to a given temporal unit,
as a result of applying the 'by unit' operator.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SqlAstWalker walker) void
applySqlSelections
(DomainResultCreationState creationState) createDomainResult
(String resultVariable, DomainResultCreationState creationState) The type for this expressiongetUnit()
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 Details
-
Conversion
-
-
Method Details
-
getUnit
-
getDuration
-
accept
- Specified by:
accept
in interfaceSqlAstNode
-
createDomainResult
public DomainResult createDomainResult(String resultVariable, DomainResultCreationState creationState) - Specified by:
createDomainResult
in interfaceorg.hibernate.query.sqm.sql.internal.DomainResultProducer
-
applySqlSelections
- Specified by:
applySqlSelections
in interfaceorg.hibernate.query.sqm.sql.internal.DomainResultProducer
-
getExpressionType
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-