public enum PreferQueryMode extends Enum<PreferQueryMode>
Specifies which mode is used to execute queries to database: simple means ('Q' execute, no parse, no bind, text mode only), extended means always use bind/execute messages, extendedForPrepared means extended for prepared statements only.
Note: this is for debugging purposes only.
PGProperty.PREFER_QUERY_MODE
Enum Constant and Description |
---|
EXTENDED |
EXTENDED_CACHE_EVERYTHING |
EXTENDED_FOR_PREPARED |
SIMPLE |
Modifier and Type | Method and Description |
---|---|
static PreferQueryMode |
of(String mode) |
String |
value() |
static PreferQueryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PreferQueryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreferQueryMode SIMPLE
public static final PreferQueryMode EXTENDED_FOR_PREPARED
public static final PreferQueryMode EXTENDED
public static final PreferQueryMode EXTENDED_CACHE_EVERYTHING
public static PreferQueryMode[] values()
for (PreferQueryMode c : PreferQueryMode.values()) System.out.println(c);
public static PreferQueryMode 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 PreferQueryMode of(String mode)
public String value()
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.