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

com.databricks.jdbc.client.sqlexec.PositionalStatementParameterListItem Maven / Gradle / Ivy

There is a newer version: 2.6.40-patch-1
Show newest version
package com.databricks.jdbc.client.sqlexec;

import com.databricks.sdk.service.sql.StatementParameterListItem;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

public class PositionalStatementParameterListItem extends StatementParameterListItem {

  /** session-id */
  @JsonProperty("ordinal")
  private int ordinal;

  public PositionalStatementParameterListItem setOrdinal(int ordinal) {
    this.ordinal = ordinal;
    return this;
  }

  public int getOrdinal() {
    return ordinal;
  }

  public boolean equals(Object o) {
    if (o != null && o.getClass() == getClass()) {
      return super.equals(o)
          && Objects.equals(this.ordinal, ((PositionalStatementParameterListItem) o).ordinal);
    }
    return false;
  }

  @Override
  public int hashCode() {
    return Objects.hash(super.hashCode(), ordinal);
  }

  @Override
  public String toString() {
    return new ToStringer(StatementParameterListItem.class)
        .add("name", super.getName())
        .add("value", super.getValue())
        .add("type", super.getType())
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy