com.amazon.redshift.core.JdbcCallParseInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jdbc42 Show documentation
Show all versions of redshift-jdbc42 Show documentation
Java JDBC 4.2 (JRE 8+) driver for Redshift database
/*
* Copyright (c) 2015, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package com.amazon.redshift.core;
/**
* Contains parse flags from {@link Parser#modifyJdbcCall(String, boolean, int, int, EscapeSyntaxCallMode)}.
*/
public class JdbcCallParseInfo {
private final String sql;
private final boolean isFunction;
public JdbcCallParseInfo(String sql, boolean isFunction) {
this.sql = sql;
this.isFunction = isFunction;
}
/**
* SQL in a native for certain backend version.
*
* @return SQL in a native for certain backend version
*/
public String getSql() {
return sql;
}
/**
* Returns if given SQL is a function.
*
* @return {@code true} if given SQL is a function
*/
public boolean isFunction() {
return isFunction;
}
}