Class SqlTimestampValueFactory

java.lang.Object
com.mysql.cj.result.DefaultValueFactory<T>
com.mysql.cj.result.AbstractDateTimeValueFactory<java.sql.Timestamp>
com.mysql.cj.result.SqlTimestampValueFactory
All Implemented Interfaces:
ValueFactory<java.sql.Timestamp>

public class SqlTimestampValueFactory
extends AbstractDateTimeValueFactory<java.sql.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.
  • Constructor Details

    • SqlTimestampValueFactory

      public SqlTimestampValueFactory​(PropertySet pset, java.util.Calendar calendar, java.util.TimeZone defaultTimeZone, java.util.TimeZone connectionTimeZone)
      Parameters:
      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.
  • Method Details