Top Description Fields Constructors Methods
org.hibernate.dialect.function

public Class IntegralTimestampaddFunction

extends TimestampaddFunction
Class Inheritance
Imports
org.hibernate.dialect.Dialect, org.hibernate.metamodel.mapping.BasicValuedMapping, org.hibernate.query.ReturnableType, org.hibernate.query.sqm.BinaryArithmeticOperator, .TemporalUnit, org.hibernate.query.sqm.function.SelfRenderingFunctionSqlAstExpression, org.hibernate.sql.ast.SqlAstTranslator, org.hibernate.sql.ast.spi.SqlAppender, org.hibernate.sql.ast.tree.SqlAstNode, org.hibernate.sql.ast.tree.expression.BinaryArithmeticExpression, .CastTarget, .DurationUnit, .Expression, .QueryLiteral, org.hibernate.type.BasicType, .StandardBasicTypes, org.hibernate.type.descriptor.jdbc.JdbcType, org.hibernate.type.spi.TypeConfiguration, java.util.Arrays, .List

Deprecated

as a consequence of TimestampaddFunction being deprecated. See corresponding docs for further information.

Used in place of TimestampaddFunction for databases which don't support fractional seconds in the timestampadd() function.
Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
private final CastFunction
castFunction

Deprecated as a consequence of CastFunction being deprecated.
private final Dialect
private final BasicType<Integer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private TemporalUnit
private Expression
private List<SqlAstNode>
public void
private void
Inherited from org.hibernate.dialect.function.TimestampaddFunction:
expressiongetArgumentListSignaturepatternRenderer

Field Detail

castFunctionback to summary
private final CastFunction castFunction

Deprecated

as a consequence of CastFunction being deprecated. See corresponding docs for further information.

dialectback to summary
private final Dialect dialect

Hides org.hibernate.dialect.function.TimestampaddFunction.dialect.

integerTypeback to summary
private final BasicType<Integer> integerType

Constructor Detail

IntegralTimestampaddFunctionback to summary
public IntegralTimestampaddFunction(Dialect dialect, TypeConfiguration typeConfiguration)

Method Detail

bestTemporalUnitback to summary
private TemporalUnit bestTemporalUnit(Expression magnitude, DurationUnit field)
convertedArgumentback to summary
private Expression convertedArgument(DurationUnit field, TemporalUnit unit, Expression magnitude)
convertedArgumentsback to summary
private List<SqlAstNode> convertedArguments(DurationUnit field, TemporalUnit unit, Expression magnitude, Expression to)
renderback to summary
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> arguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker)

Overrides org.hibernate.dialect.function.TimestampaddFunction.render.

Implements org.hibernate.query.sqm.function.FunctionRenderer.render.

Annotations
@Override
renderWithUnitConversionback to summary
private void renderWithUnitConversion(SqlAppender sqlAppender, Expression magnitude, Expression to, SqlAstTranslator<?> walker, DurationUnit field, TemporalUnit unit)