java.io.Serializable, java.lang.Comparable<PreferQueryMode>public enum PreferQueryMode extends java.lang.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 | Description |
|---|---|
EXTENDED |
|
EXTENDED_CACHE_EVERYTHING |
|
EXTENDED_FOR_PREPARED |
|
SIMPLE |
| Modifier and Type | Method | Description |
|---|---|---|
static PreferQueryMode |
of(java.lang.String mode) |
|
java.lang.String |
value() |
|
static PreferQueryMode |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static PreferQueryMode of(java.lang.String mode)
public java.lang.String value()
Copyright © 2018 PostgreSQL Global Development Group. All rights reserved.