Package com.mysql.cj.result
Class LocalDateTimeValueFactory
java.lang.Object
com.mysql.cj.result.DefaultValueFactory<T>
com.mysql.cj.result.AbstractDateTimeValueFactory<java.time.LocalDateTime>
com.mysql.cj.result.LocalDateTimeValueFactory
- All Implemented Interfaces:
ValueFactory<java.time.LocalDateTime>
public class LocalDateTimeValueFactory extends AbstractDateTimeValueFactory<java.time.LocalDateTime>
Value factory to create
LocalDateTime instances.-
Field Summary
Fields inherited from class com.mysql.cj.result.DefaultValueFactory
jdbcCompliantTruncationForReads, pset -
Constructor Summary
Constructors Constructor Description LocalDateTimeValueFactory(PropertySet pset) -
Method Summary
Modifier and Type Method Description java.lang.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)Methods inherited from class com.mysql.cj.result.AbstractDateTimeValueFactory
createFromBytes, createFromDate, createFromDatetime, createFromTime, createFromTimestamp, createFromYearMethods inherited from class com.mysql.cj.result.DefaultValueFactory
createFromBigDecimal, createFromBigInteger, createFromBit, createFromDouble, createFromLong, createFromNull, setPropertySet, unsupported
-
Constructor Details
-
Method Details
-
localCreateFromDate
Create a LocalDateTime from a DATE value.- Returns:
- a LocalDateTime at midnight on the day given by the DATE value
-
localCreateFromTime
Create a LocalDateTime from a TIME value.- Returns:
- a LocalDateTime at the given time on 1970 Jan 1.
-
localCreateFromTimestamp
-
localCreateFromDatetime
-
getTargetTypeName
public java.lang.String getTargetTypeName()Description copied from interface:ValueFactoryGet the actual class name of T parameter.- Returns:
- class name
-