类 ZonedDateTimeValueFactory
- java.lang.Object
-
- com.mysql.cj.result.DefaultValueFactory<T>
-
- com.mysql.cj.result.AbstractDateTimeValueFactory<java.time.ZonedDateTime>
-
- com.mysql.cj.result.ZonedDateTimeValueFactory
-
- 所有已实现的接口:
ValueFactory<java.time.ZonedDateTime>
public class ZonedDateTimeValueFactory extends AbstractDateTimeValueFactory<java.time.ZonedDateTime>
Value factory to createZonedDateTimeinstances.
-
-
字段概要
-
从类继承的字段 com.mysql.cj.result.DefaultValueFactory
jdbcCompliantTruncationForReads, pset
-
-
构造器概要
构造器 构造器 说明 ZonedDateTimeValueFactory(PropertySet pset, TimeZone defaultTimeZone, TimeZone connectionTimeZone)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.time.ZonedDateTimecreateFromBytes(byte[] bytes, int offset, int length, Field f)StringgetTargetTypeName()Get the actual class name of T parameter.java.time.ZonedDateTimelocalCreateFromDate(InternalDate idate)Create an ZonedDateTime from a DATE value.java.time.ZonedDateTimelocalCreateFromDatetime(InternalTimestamp its)java.time.ZonedDateTimelocalCreateFromTime(InternalTime it)Create an ZonedDateTime from a TIME value.java.time.ZonedDateTimelocalCreateFromTimestamp(InternalTimestamp its)-
从类继承的方法 com.mysql.cj.result.AbstractDateTimeValueFactory
createFromDate, createFromDatetime, createFromTime, createFromTimestamp, createFromYear
-
从类继承的方法 com.mysql.cj.result.DefaultValueFactory
createFromBigDecimal, createFromBigInteger, createFromBit, createFromDouble, createFromLong, createFromNull, setPropertySet, unsupported
-
-
-
-
构造器详细资料
-
ZonedDateTimeValueFactory
public ZonedDateTimeValueFactory(PropertySet pset, TimeZone defaultTimeZone, TimeZone connectionTimeZone)
-
-
方法详细资料
-
localCreateFromDate
public java.time.ZonedDateTime localCreateFromDate(InternalDate idate)
Create an ZonedDateTime from a DATE value.- 返回:
- an ZonedDateTime at midnight on the day given by the DATE value
-
localCreateFromTime
public java.time.ZonedDateTime localCreateFromTime(InternalTime it)
Create an ZonedDateTime from a TIME value.- 返回:
- an ZonedDateTime at the given time on 1970 Jan 1.
-
localCreateFromTimestamp
public java.time.ZonedDateTime localCreateFromTimestamp(InternalTimestamp its)
-
localCreateFromDatetime
public java.time.ZonedDateTime localCreateFromDatetime(InternalTimestamp its)
-
createFromBytes
public java.time.ZonedDateTime createFromBytes(byte[] bytes, int offset, int length, Field f)- 指定者:
createFromBytes在接口中ValueFactory<java.time.ZonedDateTime>- 覆盖:
createFromBytes在类中AbstractDateTimeValueFactory<java.time.ZonedDateTime>
-
getTargetTypeName
public String getTargetTypeName()
从接口复制的说明:ValueFactoryGet the actual class name of T parameter.- 返回:
- class name
-
-