Package org.apache.calcite.avatica
Interface Meta.ConnectionProperties
- All Known Implementing Classes:
ConnectionPropertiesImpl
- Enclosing interface:
- Meta
public static interface Meta.ConnectionProperties
A pojo containing various client-settable
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.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()Overwrite fields inthiswith any non-null fields inthatsetAutoCommit(boolean val) SetautoCommitstatus.setCatalog(String val) Setcatalog.setReadOnly(boolean val) SetreadOnlystatus.Setschema.setTransactionIsolation(int val) SettransactionIsolationstatus.org.apache.calcite.avatica.proto.Common.ConnectionPropertiestoProto()
-
Method Details
-
merge
Overwrite fields inthiswith any non-null fields inthat- Returns:
this
-
isEmpty
boolean isEmpty()- Returns:
truewhen no properties have been set,falseotherwise.
-
setAutoCommit
SetautoCommitstatus.- Returns:
this
-
isAutoCommit
Boolean isAutoCommit() -
setReadOnly
SetreadOnlystatus.- Returns:
this
-
isReadOnly
Boolean isReadOnly() -
setTransactionIsolation
SettransactionIsolationstatus.- Returns:
this
-
getTransactionIsolation
Integer getTransactionIsolation() -
setCatalog
Setcatalog.- Returns:
this
-
getCatalog
String getCatalog() -
setSchema
Setschema.- Returns:
this
-
getSchema
String getSchema() -
toProto
org.apache.calcite.avatica.proto.Common.ConnectionProperties toProto()
-