类 StaticPrecisionFspTimestampFunction
- java.lang.Object
-
- org.hibernate.dialect.function.NoArgSQLFunction
-
- org.hibernate.dialect.function.StaticPrecisionFspTimestampFunction
-
- 所有已实现的接口:
SQLFunction
public class StaticPrecisionFspTimestampFunction extends NoArgSQLFunction
A function that returns aStandardBasicTypes.TIMESTAMPwith static fractional seconds precision (fsp).- 作者:
- Gail Badner
-
-
构造器概要
构造器 构造器 说明 StaticPrecisionFspTimestampFunction(String name, boolean hasParenthesesIfNoArguments)Constructs aStandardBasicTypes.TIMESTAMPfunction using the default fractional second precision as defined by the database.StaticPrecisionFspTimestampFunction(String name, int fsp)Constructs aStandardBasicTypes.TIMESTAMPfunction using the specified fractional seconds precision.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Stringrender(Type argumentType, List args, SessionFactoryImplementor factory)Render the function call as SQL fragment.-
从类继承的方法 org.hibernate.dialect.function.NoArgSQLFunction
getName, getReturnType, hasArguments, hasParenthesesIfNoArguments
-
-
-
-
构造器详细资料
-
StaticPrecisionFspTimestampFunction
public StaticPrecisionFspTimestampFunction(String name, boolean hasParenthesesIfNoArguments)
Constructs aStandardBasicTypes.TIMESTAMPfunction 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?
-
StaticPrecisionFspTimestampFunction
public StaticPrecisionFspTimestampFunction(String name, int fsp)
Constructs aStandardBasicTypes.TIMESTAMPfunction using the specified fractional seconds precision.- 参数:
name- The function namefsp- The explicit fractional seconds precision to render- 抛出:
IllegalArgumentException- iffsp< 0.
-
-
方法详细资料
-
render
public String render(Type argumentType, List args, SessionFactoryImplementor factory) throws QueryException
从接口复制的说明:SQLFunctionRender the function call as SQL fragment. Note, the 'firstArgumentType' parameter should match the one passed intoSQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping)- 指定者:
render在接口中SQLFunction- 覆盖:
render在类中NoArgSQLFunction- 参数:
argumentType- The type of the first argumentargs- The function argumentsfactory- The SessionFactory- 返回:
- The rendered function call
- 抛出:
QueryException- Indicates a problem rendering the function call.
-
-