Class ConnectionProperty<T> (6.89.0)

publicclassConnectionProperty<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

NameDescription
T

Methods

equals(Object o)

publicbooleanequals(Objecto)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getContext()

publicConnectionProperty.ContextgetContext()
Returns
TypeDescription
ConnectionProperty.Context

getDefaultValue()

publicTgetDefaultValue()
Returns
TypeDescription
T

getDescription()

publicStringgetDescription()
Returns
TypeDescription
String

getExtension()

publicStringgetExtension()
Returns
TypeDescription
String

getKey()

publicStringgetKey()
Returns
TypeDescription
String

getName()

publicStringgetName()
Returns
TypeDescription
String

getValidValues()

publicT[]getValidValues()
Returns
TypeDescription
T[]

hasExtension()

publicbooleanhasExtension()
Returns
TypeDescription
boolean

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

toString()

publicStringtoString()
Returns
TypeDescription
String
Overrides