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

public Class OffsetDateTimeValueFactory

extends AbstractDateTimeValueFactory<OffsetDateTime>
Class Inheritance
Imports
java.time.LocalDateTime, .OffsetDateTime, 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 OffsetDateTime instances.

Field Summary

Modifier and TypeField and Description
private TimeZone
private TimeZone

Constructor Summary

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

Method Summary

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

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

Get the actual class name of T parameter.

public OffsetDateTime

Returns:

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

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

Create an OffsetDateTime from a DATE value.

public OffsetDateTime
public OffsetDateTime

Returns:

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

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

Create an OffsetDateTime from a TIME value.

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

Field Detail

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

Constructor Detail

OffsetDateTimeValueFactoryback to summary
public OffsetDateTimeValueFactory(PropertySet pset, TimeZone defaultTimeZone, TimeZone connectionTimeZone)

Method Detail

createFromBytesback to summary
public OffsetDateTime 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 OffsetDateTime localCreateFromDate(InternalDate idate)

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

Create an OffsetDateTime from a DATE value.

Returns:OffsetDateTime

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

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

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

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

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

Create an OffsetDateTime from a TIME value.

Returns:OffsetDateTime

an OffsetDateTime at the given time on 1970 Jan 1.

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

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

Annotations
@Override