public static interface Meta.ConnectionProperties
Connection
properties.
java.lang
types are used here so that null
can be used to indicate
a value has no been set.
Note: this interface is considered "experimental" and may undergo further changes as this
functionality is extended to other aspects of state management for
Connection
, Statement
, and ResultSet
.
Modifier and Type | Method and Description |
---|---|
String |
getCatalog() |
String |
getSchema() |
Integer |
getTransactionIsolation() |
Boolean |
isAutoCommit() |
boolean |
isEmpty() |
Boolean |
isReadOnly() |
Meta.ConnectionProperties |
merge(Meta.ConnectionProperties that)
Overwrite fields in
this with any non-null fields in that |
Meta.ConnectionProperties |
setAutoCommit(boolean val)
Set
autoCommit status. |
Meta.ConnectionProperties |
setCatalog(String val)
Set
catalog . |
Meta.ConnectionProperties |
setReadOnly(boolean val)
Set
readOnly status. |
Meta.ConnectionProperties |
setSchema(String val)
Set
schema . |
Meta.ConnectionProperties |
setTransactionIsolation(int val)
Set
transactionIsolation status. |
org.apache.calcite.avatica.proto.Common.ConnectionProperties |
toProto() |
Meta.ConnectionProperties merge(Meta.ConnectionProperties that)
this
with any non-null fields in that
this
boolean isEmpty()
true
when no properties have been set, false
otherwise.Meta.ConnectionProperties setAutoCommit(boolean val)
autoCommit
status.this
Boolean isAutoCommit()
Meta.ConnectionProperties setReadOnly(boolean val)
readOnly
status.this
Boolean isReadOnly()
Meta.ConnectionProperties setTransactionIsolation(int val)
transactionIsolation
status.this
Integer getTransactionIsolation()
Meta.ConnectionProperties setCatalog(String val)
catalog
.this
String getCatalog()
Meta.ConnectionProperties setSchema(String val)
schema
.this
String getSchema()
org.apache.calcite.avatica.proto.Common.ConnectionProperties toProto()
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.