Top Description Constructors Methods
com.mysql.cj.result

public Class LocalDateTimeValueFactory

extends AbstractDateTimeValueFactory<LocalDateTime>
Class Inheritance
Imports
java.time.LocalDateTime, com.mysql.cj.Messages, com.mysql.cj.conf.PropertySet, com.mysql.cj.exceptions.DataReadException, com.mysql.cj.protocol.InternalDate, .InternalTime, .InternalTimestamp

Value factory to create LocalDateTime instances.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getTargetTypeName()

Implements com.mysql.cj.result.ValueFactory.getTargetTypeName.

Get the actual class name of T parameter.

public LocalDateTime

Returns:

a LocalDateTime at midnight on the day given by the DATE value
localCreateFromDate
(InternalDate idate)

Implements abstract com.mysql.cj.result.AbstractDateTimeValueFactory.localCreateFromDate.

Create a LocalDateTime from a DATE value.

public LocalDateTime
public LocalDateTime

Returns:

a LocalDateTime at the given time on 1970 Jan 1.
localCreateFromTime
(InternalTime it)

Implements abstract com.mysql.cj.result.AbstractDateTimeValueFactory.localCreateFromTime.

Create a LocalDateTime from a TIME value.

public LocalDateTime
Inherited from com.mysql.cj.result.AbstractDateTimeValueFactory:
createFromBytescreateFromDatecreateFromDatetimecreateFromTimecreateFromTimestampcreateFromYear

Constructor Detail

LocalDateTimeValueFactoryback to summary
public LocalDateTimeValueFactory(PropertySet pset)

Method Detail

getTargetTypeNameback to summary
public String getTargetTypeName()

Implements com.mysql.cj.result.ValueFactory.getTargetTypeName.

Doc from com.mysql.cj.result.ValueFactory.getTargetTypeName.

Get the actual class name of T parameter.

Returns:String

class name

Annotations
@Override
localCreateFromDateback to summary
public LocalDateTime localCreateFromDate(InternalDate idate)

Implements abstract com.mysql.cj.result.AbstractDateTimeValueFactory.localCreateFromDate.

Create a LocalDateTime from a DATE value.

Returns:LocalDateTime

a LocalDateTime at midnight on the day given by the DATE value

Annotations
@Override
localCreateFromDatetimeback to summary
public LocalDateTime localCreateFromDatetime(InternalTimestamp its)

Implements abstract com.mysql.cj.result.AbstractDateTimeValueFactory.localCreateFromDatetime.

Annotations
@Override
localCreateFromTimeback to summary
public LocalDateTime localCreateFromTime(InternalTime it)

Implements abstract com.mysql.cj.result.AbstractDateTimeValueFactory.localCreateFromTime.

Create a LocalDateTime from a TIME value.

Returns:LocalDateTime

a LocalDateTime at the given time on 1970 Jan 1.

Annotations
@Override
localCreateFromTimestampback to summary
public LocalDateTime localCreateFromTimestamp(InternalTimestamp its)

Implements abstract com.mysql.cj.result.AbstractDateTimeValueFactory.localCreateFromTimestamp.

Annotations
@Override