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

public Class SqlDateValueFactory

extends AbstractDateTimeValueFactory<Date>
Class Inheritance
Imports
java.sql.Date, java.util.Calendar, .Locale, .TimeZone, java.util.concurrent.locks.Lock, .ReentrantLock, com.mysql.cj.Messages, .WarningListener, com.mysql.cj.conf.PropertySet, com.mysql.cj.exceptions.DataReadException, .ExceptionFactory, .WrongArgumentException, com.mysql.cj.protocol.InternalDate, .InternalTime, .InternalTimestamp, com.mysql.cj.util.TimeUtil

A value factory for creating java.sql.Date values.

Field Summary

Modifier and TypeField and Description
private final Calendar
private final Lock
private WarningListener

Constructor Summary

AccessConstructor and Description
public
public
SqlDateValueFactory(PropertySet pset, Calendar calendar, TimeZone tz, WarningListener warningListener)

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 Date
public Date
public Date
public Date
Inherited from com.mysql.cj.result.AbstractDateTimeValueFactory:
createFromBytescreateFromDatecreateFromDatetimecreateFromTimecreateFromTimestampcreateFromYear

Field Detail

calback to summary
private final Calendar cal
calLockback to summary
private final Lock calLock
warningListenerback to summary
private WarningListener warningListener

Constructor Detail

SqlDateValueFactoryback to summary
public SqlDateValueFactory(PropertySet pset, Calendar calendar, TimeZone tz)
SqlDateValueFactoryback to summary
public SqlDateValueFactory(PropertySet pset, Calendar calendar, TimeZone tz, WarningListener warningListener)

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

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

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

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

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

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

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

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

Annotations
@Override