Class ConnectionProperty<T> (6.85.0)

public class ConnectionProperty<T>

ConnectionProperty is a variable for a connection. The total set of connection properties is the state of a connection, and determine the behavior of that connection. For example, a connection with a ConnectionProperty READONLY=true and AUTOCOMMIT=false will use read-only transactions by default, while a connection with READONLY=false and AUTOCOMMIT=false will use read/write transactions.

Connection properties are stored in a ConnectionState instance. ConnectionState can be transactional. That is; changes to a connection property during a transaction will be undone if the transaction is rolled back. Transactional connection state is the default for PostgreSQL-dialect databases. For GoogleSQL-dialect databases, transactional connection state is an opt-in.

Inheritance

Object > ConnectionProperty<T>

Type Parameter

Name Description
T

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getContext()

public ConnectionProperty.Context getContext()
Returns
Type Description
ConnectionProperty.Context

getDefaultValue()

public T getDefaultValue()
Returns
Type Description
T

getDescription()

public String getDescription()
Returns
Type Description
String

getExtension()

public String getExtension()
Returns
Type Description
String

getKey()

public String getKey()
Returns
Type Description
String

getName()

public String getName()
Returns
Type Description
String

getValidValues()

public T[] getValidValues()
Returns
Type Description
T[]

hasExtension()

public boolean hasExtension()
Returns
Type Description
boolean

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides