Class ExtractUnit
- java.lang.Object
-
- org.hibernate.sql.ast.tree.expression.ExtractUnit
-
- All Implemented Interfaces:
SqlSelectionProducer
,Expression
,SqlAstNode
public class ExtractUnit extends Object implements Expression, SqlAstNode
ATemporalUnit
passed as an argument to theExtractFunction
. These are different toDurationUnit
s because of how theTemporalUnit.WEEK
field is handled on some platforms.
-
-
Constructor Summary
Constructors Constructor Description ExtractUnit(TemporalUnit unit, BasicValuedMapping type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
BasicValuedMapping
getExpressionType()
The type for this expressionTemporalUnit
getUnit()
-
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
-
ExtractUnit
public ExtractUnit(TemporalUnit unit, BasicValuedMapping type)
-
-
Method Detail
-
getUnit
public TemporalUnit getUnit()
-
getExpressionType
public BasicValuedMapping getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
-