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

public Class UtilCalendarValueFactory

extends AbstractDateTimeValueFactory<Calendar>
Class Inheritance
Imports
java.util.Calendar, .Locale, .TimeZone, com.mysql.cj.Messages, com.mysql.cj.conf.PropertyKey, .PropertySet, com.mysql.cj.exceptions.DataReadException, .ExceptionFactory, .WrongArgumentException, com.mysql.cj.protocol.InternalDate, .InternalTime, .InternalTimestamp

Value factory to create Calendar instances.

Field Summary

Modifier and TypeField and Description
private TimeZone
private TimeZone

Constructor Summary

AccessConstructor and Description
public
UtilCalendarValueFactory(PropertySet pset, TimeZone
The local JVM time zone.
defaultTimeZone
,
TimeZone
The server session time zone as defined by connectionTimeZone property.
connectionTimeZone
)

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 Calendar

Returns:

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

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

Create a Calendar from a DATE value.

public Calendar
public Calendar

Returns:

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

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

Create a Calendar from a TIME value.

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

Field Detail

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

Constructor Detail

UtilCalendarValueFactoryback to summary
public UtilCalendarValueFactory(PropertySet pset, TimeZone defaultTimeZone, TimeZone connectionTimeZone)
Parameters
pset:PropertySet

PropertySet

defaultTimeZone:TimeZone

The local JVM time zone.

connectionTimeZone:TimeZone

The server session time zone as defined by connectionTimeZone property.

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 Calendar localCreateFromDate(InternalDate idate)

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

Create a Calendar from a DATE value.

Returns:Calendar

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

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

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

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

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

Create a Calendar from a TIME value.

Returns:Calendar

a Calendar at the given time on 1970 Jan 1.

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

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

Annotations
@Override