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

com.amazon.redshift.jdbc.EscapeSyntaxCallMode Maven / Gradle / Ivy

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

package com.amazon.redshift.jdbc;

/**
 * 

Specifies whether a SELECT/CALL statement is used for the underlying SQL for JDBC escape call syntax: 'select' means to * always use SELECT, 'callIfNoReturn' means to use CALL if there is no return parameter (otherwise use SELECT), and 'call' means * to always use CALL.

* * @see com.amazon.redshift.RedshiftProperty#ESCAPE_SYNTAX_CALL_MODE */ public enum EscapeSyntaxCallMode { SELECT("select"), CALL_IF_NO_RETURN("callIfNoReturn"), CALL("call"); private final String value; EscapeSyntaxCallMode(String value) { this.value = value; } public static EscapeSyntaxCallMode of(String mode) { for (EscapeSyntaxCallMode escapeSyntaxCallMode : values()) { if (escapeSyntaxCallMode.value.equals(mode)) { return escapeSyntaxCallMode; } } return SELECT; } public String value() { return value; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy