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

org.postgresql.core.JdbcCallParseInfo Maven / Gradle / Ivy

There is a newer version: 5.0.0.9.pg
Show newest version
/*
 * Copyright (c) 2015, PostgreSQL Global Development Group
 * See the LICENSE file in the project root for more information.
 */

package io.mogdb.core;

/**
 * Contains parse flags from {@link Parser#modifyJdbcCall(String, boolean, int, int)}.
 */
public class JdbcCallParseInfo {
  private final String sql;
  private final boolean isFunction;
  private final boolean isACompatibilityFunction;

  public JdbcCallParseInfo(String sql, boolean isFunction, boolean isACompatibilityFunction) {
    this.sql = sql;
    this.isFunction = isFunction;
    this.isACompatibilityFunction = isACompatibilityFunction;
  }

  /**
   * 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;
  }

  public boolean isACompatibilityFunction() {
    return isACompatibilityFunction;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy