Class DateTimeColumn

  • All Implemented Interfaces:
    ColumnMeta<Date>

    public final class DateTimeColumn
    extends Column<Date>
    Date column (DATETIME).
    • Method Detail

      • parseISODate

        public static Date parseISODate​(String lexvalue)
                                 throws ParseException
        Parses the date in YYYYMMDD format and translates it to Java object.
        Parameters:
        lexvalue - text value.
        Returns:
        Throws:
        ParseException - in case if the text value doesn't correspond to YYYYMMDD pattern.
      • isGetdate

        public boolean isGetdate()
        Whether the construction GETDATE() is used as a default value.
        Returns:
      • jdbcGetterName

        public String jdbcGetterName()
        Description copied from interface: ColumnMeta
        Name of jdbcGetter that should be used for getting column data.
        Returns:
      • getCelestaType

        public String getCelestaType()
        Description copied from interface: ColumnMeta
        Celesta data type that corresponds to the field.
        Returns:
      • getJavaClass

        public Class<?> getJavaClass()
        Description copied from interface: ColumnMeta
        Returns corresponding Java data type.
        Returns:
      • getCelestaDefault

        public String getCelestaDefault()
        Description copied from class: Column
        DEFAULT value of the field in CelestaSQL language.
        Specified by:
        getCelestaDefault in class Column<Date>