public class StaticPrecisionFspTimestampFunction extends NoArgSQLFunction
StandardBasicTypes.TIMESTAMP
with static fractional seconds precision (fsp).| Constructor and Description |
|---|
StaticPrecisionFspTimestampFunction(java.lang.String name,
boolean hasParenthesesIfNoArguments)
Constructs a
StandardBasicTypes.TIMESTAMP function using the
default fractional second precision as defined by the database. |
StaticPrecisionFspTimestampFunction(java.lang.String name,
int fsp)
Constructs a
StandardBasicTypes.TIMESTAMP function using
the specified fractional seconds precision. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
render(Type argumentType,
java.util.List args,
SessionFactoryImplementor factory)
Render the function call as SQL fragment.
|
getName, getReturnType, hasArguments, hasParenthesesIfNoArgumentspublic StaticPrecisionFspTimestampFunction(java.lang.String name,
boolean hasParenthesesIfNoArguments)
StandardBasicTypes.TIMESTAMP function using the
default fractional second precision as defined by the database.name - The function namehasParenthesesIfNoArguments - Does the function call need parenthesis if there are no arguments?public StaticPrecisionFspTimestampFunction(java.lang.String name,
int fsp)
StandardBasicTypes.TIMESTAMP function using
the specified fractional seconds precision.name - The function namefsp - The explicit fractional seconds precision to renderjava.lang.IllegalArgumentException - if fsp < 0.public java.lang.String render(Type argumentType, java.util.List args, SessionFactoryImplementor factory) throws QueryException
SQLFunctionSQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping)render in interface SQLFunctionrender in class NoArgSQLFunctionargumentType - The type of the first argumentargs - The function argumentsfactory - The SessionFactoryQueryException - Indicates a problem rendering the
function call.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.