net.snowflake.client.core.QueryExecDTO Maven / Gradle / Ivy
/*
* Copyright (c) 2012-2019 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.
*/
public class QueryExecDTO
{
private String sqlText;
@Deprecated
private Integer sequenceId;
private Map bindings;
private String bindStage;
private boolean describeOnly;
private Map parameters;
private String describedJobId;
private long querySubmissionTime;
private boolean isInternal;
public QueryExecDTO(String sqlText,
boolean describeOnly,
Integer sequenceId,
Map bindings,
String bindStage,
Map parameters,
long querySubmissionTime,
boolean internal)
{
this.sqlText = sqlText;
this.describeOnly = describeOnly;
this.sequenceId = sequenceId;
this.bindings = bindings;
this.bindStage = bindStage;
this.parameters = parameters;
this.querySubmissionTime = querySubmissionTime;
this.isInternal = internal;
}
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 String getBindStage()
{
return bindStage;
}
public void setBindStage(String bindStage)
{
this.bindStage = bindStage;
}
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;
}
public long getQuerySubmissionTime()
{
return querySubmissionTime;
}
public void setQuerySubmissionTime(long querySubmissionTime)
{
this.querySubmissionTime = querySubmissionTime;
}
public void setIsInternal(boolean isInternal)
{
this.isInternal = isInternal;
}
public boolean getIsInternal()
{
return this.isInternal;
}
}