Top Description Fields Constructors Methods
org.postgresql.jdbc

public final Enum PreferQueryMode

extends Enum<PreferQueryMode>
Class Inheritance

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.

See Also
org.postgresql.PGProperty#PREFER_QUERY_MODE

Field Summary

Modifier and TypeField and Description
public static final PreferQueryMode
public static final PreferQueryMode
public static final PreferQueryMode
public static final PreferQueryMode
private final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PreferQueryMode
of(String mode)

public String
public static PreferQueryMode
public static PreferQueryMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EXTENDEDback to summary
public static final PreferQueryMode EXTENDED
EXTENDED_CACHE_EVERYTHINGback to summary
public static final PreferQueryMode EXTENDED_CACHE_EVERYTHING
EXTENDED_FOR_PREPAREDback to summary
public static final PreferQueryMode EXTENDED_FOR_PREPARED
SIMPLEback to summary
public static final PreferQueryMode SIMPLE
valueback to summary
private final String value

Constructor Detail

PreferQueryModeback to summary
private PreferQueryMode(String value)

Method Detail

ofback to summary
public static PreferQueryMode of(String mode)
valueback to summary
public String value()
valueOfback to summary
public static PreferQueryMode valueOf(String name)
valuesback to summary
public static PreferQueryMode[] values()