Package org.apache.calcite.avatica
Interface ConnectionProperty
- All Known Implementing Classes:
AvaticaRemoteConnectionProperty,BuiltInConnectionProperty
public interface ConnectionProperty
Definition of a property that may be specified on the JDBC connect string.
BuiltInConnectionProperty enumerates built-in properties, but
there may be others; the list is not closed.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe name of this property in camel-case.Returns the default value of this property.name()The name of this property.booleanrequired()Whether the property is mandatory.type()Returns the data type of this property.Class of values that this property can take.wrap(Properties properties) Wraps this property with a properties object from which its value can be obtained when needed.
-
Method Details
-
name
String name()The name of this property. (E.g. "MATERIALIZATIONS_ENABLED".) -
camelName
String camelName()The name of this property in camel-case. (E.g. "materializationsEnabled".) -
defaultValue
Object defaultValue()Returns the default value of this property. The type must match its data type. -
type
ConnectionProperty.Type type()Returns the data type of this property. -
wrap
Wraps this property with a properties object from which its value can be obtained when needed. -
required
boolean required()Whether the property is mandatory. -
valueClass
Class valueClass()Class of values that this property can take. Most useful forConnectionProperty.Type.ENUMproperties.
-