Top Fields Constructors Methods
com.mysql.cj.protocol

public Class InternalDate

extends Object
Class Inheritance
Known Direct Subclasses
com.mysql.cj.protocol.InternalTimestamp
Imports
java.time.LocalDate, java.util.Calendar

Field Summary

Modifier and TypeField and Description
protected int
protected int
protected int

Constructor Summary

AccessConstructor and Description
public
InternalDate()

Constructs a zero date.

public
InternalDate(int year, int month, int day)

Method Summary

Modifier and TypeMethod and Description
public static InternalDate
public static InternalDate
public int
public int
public int
public boolean
public void
setDay(int day)

public void
setMonth(int month)

public void
setYear(int year)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dayback to summary
protected int day
monthback to summary
protected int month
yearback to summary
protected int year

Constructor Detail

InternalDateback to summary
public InternalDate()

Constructs a zero date.

InternalDateback to summary
public InternalDate(int year, int month, int day)

Method Detail

fromback to summary
public static InternalDate from(LocalDate x)
fromback to summary
public static InternalDate from(Calendar x)
getDayback to summary
public int getDay()
getMonthback to summary
public int getMonth()
getYearback to summary
public int getYear()
isZeroback to summary
public boolean isZero()
setDayback to summary
public void setDay(int day)
setMonthback to summary
public void setMonth(int month)
setYearback to summary
public void setYear(int year)