All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com._4paradigm.openmldb.Date Maven / Gradle / Ivy

There is a newer version: 0.9.2-macos
Show newest version
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 4.0.1
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com._4paradigm.openmldb;

public class Date {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected Date(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(Date obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        sql_router_sdkJNI.delete_Date(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setYear(int value) {
    sql_router_sdkJNI.Date_year_set(swigCPtr, this, value);
  }

  public int getYear() {
    return sql_router_sdkJNI.Date_year_get(swigCPtr, this);
  }

  public void setMonth(int value) {
    sql_router_sdkJNI.Date_month_set(swigCPtr, this, value);
  }

  public int getMonth() {
    return sql_router_sdkJNI.Date_month_get(swigCPtr, this);
  }

  public void setDay(int value) {
    sql_router_sdkJNI.Date_day_set(swigCPtr, this, value);
  }

  public int getDay() {
    return sql_router_sdkJNI.Date_day_get(swigCPtr, this);
  }

  public Date() {
    this(sql_router_sdkJNI.new_Date(), true);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy