Class InternalDate

java.lang.Object
com.mysql.cj.protocol.InternalDate
Direct Known Subclasses:
InternalTimestamp

public class InternalDate
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected int day  
    protected int month  
    protected int year  
  • Constructor Summary

    Constructors 
    Constructor Description
    InternalDate()
    Constructs a zero date.
    InternalDate​(int year, int month, int day)  
  • Method Summary

    Modifier and Type Method Description
    int getDay()  
    int getMonth()  
    int getYear()  
    boolean isZero()  
    void setDay​(int day)  
    void setMonth​(int month)  
    void setYear​(int year)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • year

      protected int year
    • month

      protected int month
    • day

      protected int day
  • Constructor Details

    • InternalDate

      public InternalDate()
      Constructs a zero date.
    • InternalDate

      public InternalDate​(int year, int month, int day)
  • Method Details

    • getYear

      public int getYear()
    • setYear

      public void setYear​(int year)
    • getMonth

      public int getMonth()
    • setMonth

      public void setMonth​(int month)
    • getDay

      public int getDay()
    • setDay

      public void setDay​(int day)
    • isZero

      public boolean isZero()