public enum EscapeSyntaxCallMode extends Enum<EscapeSyntaxCallMode>
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.
PGProperty.ESCAPE_SYNTAX_CALL_MODE
Enum Constant and Description |
---|
CALL |
CALL_IF_NO_RETURN |
SELECT |
Modifier and Type | Method and Description |
---|---|
static EscapeSyntaxCallMode |
of(String mode) |
String |
value() |
static EscapeSyntaxCallMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EscapeSyntaxCallMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EscapeSyntaxCallMode SELECT
public static final EscapeSyntaxCallMode CALL_IF_NO_RETURN
public static final EscapeSyntaxCallMode CALL
public static EscapeSyntaxCallMode[] values()
for (EscapeSyntaxCallMode c : EscapeSyntaxCallMode.values()) System.out.println(c);
public static EscapeSyntaxCallMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static EscapeSyntaxCallMode of(String mode)
public String value()
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.