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.String
getTargetTypeName()
Get the actual class name of T parameter.java.time.LocalDateTime
localCreateFromDate(InternalDate idate)
Create a LocalDateTime from a DATE value.java.time.LocalDateTime
localCreateFromDatetime(InternalTimestamp its)
java.time.LocalDateTime
localCreateFromTime(InternalTime it)
Create a LocalDateTime from a TIME value.java.time.LocalDateTime
localCreateFromTimestamp(InternalTimestamp its)
Methods inherited from class com.mysql.cj.result.AbstractDateTimeValueFactory
createFromBytes, createFromDate, createFromDatetime, createFromTime, createFromTimestamp, createFromYear
Methods 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:ValueFactory
Get the actual class name of T parameter.- Returns:
- class name
-