public enum AvaticaRemoteConnectionProperty extends Enum<AvaticaRemoteConnectionProperty> implements ConnectionProperty
ConnectionProperty.Type
Enum Constant and Description |
---|
FACTORY
Factory.
|
Modifier and Type | Method and Description |
---|---|
String |
camelName()
The name of this property in camel-case.
|
Object |
defaultValue()
Returns the default value of this property.
|
boolean |
required()
Whether the property is mandatory.
|
ConnectionProperty.Type |
type()
Returns the data type of this property.
|
Class |
valueClass()
Class of values that this property can take.
|
static AvaticaRemoteConnectionProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AvaticaRemoteConnectionProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
ConnectionConfigImpl.PropEnv |
wrap(Properties properties)
Wraps this property with a properties object from which its value can be
obtained when needed.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final AvaticaRemoteConnectionProperty FACTORY
public static AvaticaRemoteConnectionProperty[] values()
for (AvaticaRemoteConnectionProperty c : AvaticaRemoteConnectionProperty.values()) System.out.println(c);
public static AvaticaRemoteConnectionProperty valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String camelName()
ConnectionProperty
camelName
in interface ConnectionProperty
public Object defaultValue()
ConnectionProperty
defaultValue
in interface ConnectionProperty
public ConnectionProperty.Type type()
ConnectionProperty
type
in interface ConnectionProperty
public Class valueClass()
ConnectionProperty
ConnectionProperty.Type.ENUM
properties.valueClass
in interface ConnectionProperty
public ConnectionConfigImpl.PropEnv wrap(Properties properties)
ConnectionProperty
wrap
in interface ConnectionProperty
public boolean required()
ConnectionProperty
required
in interface ConnectionProperty
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.