类 SqlTimestampValueFactory

  • 所有已实现的接口:
    ValueFactory<Timestamp>

    public class SqlTimestampValueFactory
    extends AbstractDateTimeValueFactory<Timestamp>
    Value factory to create Timestamp instances. Timestamp instances are created from fields returned from the db without a timezone. In order to create a point-in-time, a time zone must be provided to interpret the fields.
    • 构造器详细资料

      • SqlTimestampValueFactory

        public SqlTimestampValueFactory​(PropertySet pset,
                                        Calendar calendar,
                                        TimeZone defaultTimeZone,
                                        TimeZone connectionTimeZone)
        参数:
        pset - PropertySet
        calendar - Calendar used to interpret the fields.
        defaultTimeZone - The local JVM time zone.
        connectionTimeZone - The server session time zone as defined by connectionTimeZone property.
    • 方法详细资料

      • localCreateFromDate

        public Timestamp localCreateFromDate​(InternalDate idate)
        Create a Timestamp from a DATE value.
        返回:
        a timestamp at midnight on the day given by the DATE value
      • localCreateFromTime

        public Timestamp localCreateFromTime​(InternalTime it)
        Create a Timestamp from a TIME value.
        返回:
        a timestamp at the given time on 1970 Jan 1.
      • getTargetTypeName

        public String getTargetTypeName()
        从接口复制的说明: ValueFactory
        Get the actual class name of T parameter.
        返回:
        class name