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

net.snowflake.client.core.QueryExecDTO Maven / Gradle / Ivy

/*
 * Copyright (c) 2012-2018 Snowflake Computing Inc. All rights reserved.
 */

package net.snowflake.client.core;

import java.util.Map;

/**
 * Body of a query request
 *
 * Created by hyu on 6/30/17.
 */
class QueryExecDTO
{
  private String sqlText;

  @Deprecated
  private Integer sequenceId;

  private Map bindings;

  private boolean describeOnly;

  private Map parameters;

  private String describedJobId;

  QueryExecDTO(String sqlText,
               boolean describeOnly,
               Integer sequenceId,
               Map bindings,
               Map parameters)
  {
    this.sqlText = sqlText;
    this.describeOnly = describeOnly;
    this.sequenceId = sequenceId;
    this.bindings = bindings;
    this.parameters = parameters;
  }

  public String getSqlText()
  {
    return sqlText;
  }

  public void setSqlText(String sqlText)
  {
    this.sqlText = sqlText;
  }

  @Deprecated
  public Integer getSequenceId()
  {
    return sequenceId;
  }

  @Deprecated
  public void setSequenceId(Integer sequenceId)
  {
    this.sequenceId = sequenceId;
  }

  public Map getBindings()
  {
    return bindings;
  }

  public void setBindings(Map bindings)
  {
    this.bindings = bindings;
  }

  public boolean isDescribeOnly()
  {
    return describeOnly;
  }

  public void setDescribeOnly(boolean describeOnly)
  {
    this.describeOnly = describeOnly;
  }

  public Map getParameters()
  {
    return parameters;
  }

  public void setParameters(Map parameters)
  {
    this.parameters = parameters;
  }

  public String getDescribedJobId()
  {
    return describedJobId;
  }

  public void setDescribedJobId(String describedJobId)
  {
    this.describedJobId = describedJobId;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy