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

com._4paradigm.openmldb.SQLDeleteRow 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 SQLDeleteRow {
  private transient long swigCPtr;
  private transient boolean swigCMemOwn;

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

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

  protected void swigSetCMemOwn(boolean own) {
    swigCMemOwn = own;
  }

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

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

  public SQLDeleteRow(String db, String table_name, SWIGTYPE_p_std__vectorT_openmldb__sdk__Condition_t condition_vec, SWIGTYPE_p_std__vectorT_openmldb__sdk__Condition_t parameter_vec) {
    this(sql_router_sdkJNI.new_SQLDeleteRow(db, table_name, SWIGTYPE_p_std__vectorT_openmldb__sdk__Condition_t.getCPtr(condition_vec), SWIGTYPE_p_std__vectorT_openmldb__sdk__Condition_t.getCPtr(parameter_vec)), true);
  }

  public void Reset() {
    sql_router_sdkJNI.SQLDeleteRow_Reset(swigCPtr, this);
  }

  public boolean SetString(int pos, String val) {
    return sql_router_sdkJNI.SQLDeleteRow_SetString(swigCPtr, this, pos, val);
  }

  public boolean SetBool(int pos, boolean val) {
    return sql_router_sdkJNI.SQLDeleteRow_SetBool(swigCPtr, this, pos, val);
  }

  public boolean SetInt(int pos, long val) {
    return sql_router_sdkJNI.SQLDeleteRow_SetInt(swigCPtr, this, pos, val);
  }

  public boolean SetTimestamp(int pos, long val) {
    return sql_router_sdkJNI.SQLDeleteRow_SetTimestamp(swigCPtr, this, pos, val);
  }

  public boolean SetDate(int pos, int date) {
    return sql_router_sdkJNI.SQLDeleteRow_SetDate__SWIG_0(swigCPtr, this, pos, date);
  }

  public boolean SetDate(int pos, long year, long month, long day) {
    return sql_router_sdkJNI.SQLDeleteRow_SetDate__SWIG_1(swigCPtr, this, pos, year, month, day);
  }

  public boolean SetNULL(int pos) {
    return sql_router_sdkJNI.SQLDeleteRow_SetNULL(swigCPtr, this, pos);
  }

  public boolean Build() {
    return sql_router_sdkJNI.SQLDeleteRow_Build(swigCPtr, this);
  }

  public String GetDatabase() {
    return sql_router_sdkJNI.SQLDeleteRow_GetDatabase(swigCPtr, this);
  }

  public String GetTableName() {
    return sql_router_sdkJNI.SQLDeleteRow_GetTableName(swigCPtr, this);
  }

  public SWIGTYPE_p_std__vectorT_openmldb__sdk__Condition_t GetValue() {
    return new SWIGTYPE_p_std__vectorT_openmldb__sdk__Condition_t(sql_router_sdkJNI.SQLDeleteRow_GetValue(swigCPtr, this), false);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy