Top Description Fields Constructors Methods
com.mysql.cj.result

public Class ZonedDateTimeValueFactory

extends AbstractDateTimeValueFactory<ZonedDateTime>
Class Inheritance
Imports
java.time.LocalDateTime, .ZonedDateTime, java.time.format.DateTimeParseException, java.util.TimeZone, com.mysql.cj.Messages, com.mysql.cj.conf.PropertyKey, .PropertySet, com.mysql.cj.exceptions.DataConversionException, .DataReadException, com.mysql.cj.protocol.InternalDate, .InternalTime, .InternalTimestamp, com.mysql.cj.protocol.a.MysqlTextValueDecoder, com.mysql.cj.util.StringUtils

Value factory to create ZonedDateTime instances.

Field Summary

Modifier and TypeField and Description
private TimeZone
private TimeZone

Constructor Summary

AccessConstructor and Description
public
ZonedDateTimeValueFactory(PropertySet pset, TimeZone defaultTimeZone, TimeZone connectionTimeZone)

Method Summary

Modifier and TypeMethod and Description
public ZonedDateTime
public String
getTargetTypeName()

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

Get the actual class name of T parameter.

public ZonedDateTime

Returns:

an ZonedDateTime at midnight on the day given by the DATE value
localCreateFromDate
(InternalDate idate)

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

Create an ZonedDateTime from a DATE value.

public ZonedDateTime
public ZonedDateTime

Returns:

an ZonedDateTime at the given time on 1970 Jan 1.
localCreateFromTime
(InternalTime it)

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

Create an ZonedDateTime from a TIME value.

public ZonedDateTime
Inherited from com.mysql.cj.result.AbstractDateTimeValueFactory:
createFromDatecreateFromDatetimecreateFromTimecreateFromTimestampcreateFromYear

Field Detail

connectionTimeZoneback to summary
private TimeZone connectionTimeZone
defaultTimeZoneback to summary
private TimeZone defaultTimeZone

Constructor Detail

ZonedDateTimeValueFactoryback to summary
public ZonedDateTimeValueFactory(PropertySet pset, TimeZone defaultTimeZone, TimeZone connectionTimeZone)

Method Detail

createFromBytesback to summary
public ZonedDateTime createFromBytes(byte[] bytes, int offset, int length, Field f)

Overrides com.mysql.cj.result.AbstractDateTimeValueFactory.createFromBytes.

Implements com.mysql.cj.result.ValueFactory.createFromBytes.

Annotations
@Override
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 ZonedDateTime localCreateFromDate(InternalDate idate)

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

Create an ZonedDateTime from a DATE value.

Returns:ZonedDateTime

an ZonedDateTime at midnight on the day given by the DATE value

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

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

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

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

Create an ZonedDateTime from a TIME value.

Returns:ZonedDateTime

an ZonedDateTime at the given time on 1970 Jan 1.

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

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

Annotations
@Override