类 LocalDateTimeValueFactory
- java.lang.Object
-
- com.mysql.cj.result.DefaultValueFactory<T>
-
- com.mysql.cj.result.AbstractDateTimeValueFactory<java.time.LocalDateTime>
-
- com.mysql.cj.result.LocalDateTimeValueFactory
-
- 所有已实现的接口:
ValueFactory<java.time.LocalDateTime>
public class LocalDateTimeValueFactory extends AbstractDateTimeValueFactory<java.time.LocalDateTime>
Value factory to createLocalDateTimeinstances.
-
-
字段概要
-
从类继承的字段 com.mysql.cj.result.DefaultValueFactory
jdbcCompliantTruncationForReads, pset
-
-
构造器概要
构造器 构造器 说明 LocalDateTimeValueFactory(PropertySet pset)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetTargetTypeName()Get the actual class name of T parameter.java.time.LocalDateTimelocalCreateFromDate(InternalDate idate)Create a LocalDateTime from a DATE value.java.time.LocalDateTimelocalCreateFromDatetime(InternalTimestamp its)java.time.LocalDateTimelocalCreateFromTime(InternalTime it)Create a LocalDateTime from a TIME value.java.time.LocalDateTimelocalCreateFromTimestamp(InternalTimestamp its)-
从类继承的方法 com.mysql.cj.result.AbstractDateTimeValueFactory
createFromBytes, createFromDate, createFromDatetime, createFromTime, createFromTimestamp, createFromYear
-
从类继承的方法 com.mysql.cj.result.DefaultValueFactory
createFromBigDecimal, createFromBigInteger, createFromBit, createFromDouble, createFromLong, createFromNull, setPropertySet, unsupported
-
-
-
-
构造器详细资料
-
LocalDateTimeValueFactory
public LocalDateTimeValueFactory(PropertySet pset)
-
-
方法详细资料
-
localCreateFromDate
public java.time.LocalDateTime localCreateFromDate(InternalDate idate)
Create a LocalDateTime from a DATE value.- 返回:
- a LocalDateTime at midnight on the day given by the DATE value
-
localCreateFromTime
public java.time.LocalDateTime localCreateFromTime(InternalTime it)
Create a LocalDateTime from a TIME value.- 返回:
- a LocalDateTime at the given time on 1970 Jan 1.
-
localCreateFromTimestamp
public java.time.LocalDateTime localCreateFromTimestamp(InternalTimestamp its)
-
localCreateFromDatetime
public java.time.LocalDateTime localCreateFromDatetime(InternalTimestamp its)
-
getTargetTypeName
public String getTargetTypeName()
从接口复制的说明:ValueFactoryGet the actual class name of T parameter.- 返回:
- class name
-
-