public enum BuiltInConnectionProperty extends Enum<BuiltInConnectionProperty> implements ConnectionProperty
ConnectionProperty.Type| Enum Constant and Description |
|---|
FACTORY
Factory.
|
SCHEMA
Name of initial schema.
|
SERIALIZATION
Serialization used over remote connections
|
TIME_ZONE
Time zone, for example 'gmt-3'.
|
URL
Remote URL.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
camelName |
private Object |
defaultValue |
private static Map<String,BuiltInConnectionProperty> |
NAME_TO_PROPS |
private boolean |
required |
static BuiltInConnectionProperty |
TIMEZONE
Deprecated.
|
private ConnectionProperty.Type |
type |
| 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.
|
static BuiltInConnectionProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuiltInConnectionProperty[] |
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, valueOfnamepublic static final BuiltInConnectionProperty FACTORY
public static final BuiltInConnectionProperty SCHEMA
public static final BuiltInConnectionProperty TIME_ZONE
public static final BuiltInConnectionProperty URL
public static final BuiltInConnectionProperty SERIALIZATION
private final String camelName
private final ConnectionProperty.Type type
private final Object defaultValue
private final boolean required
@Deprecated public static final BuiltInConnectionProperty TIMEZONE
TIME_ZONE.private static final Map<String,BuiltInConnectionProperty> NAME_TO_PROPS
public static BuiltInConnectionProperty[] values()
for (BuiltInConnectionProperty c : BuiltInConnectionProperty.values()) System.out.println(c);
public static BuiltInConnectionProperty 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()
ConnectionPropertycamelName in interface ConnectionPropertypublic Object defaultValue()
ConnectionPropertydefaultValue in interface ConnectionPropertypublic ConnectionProperty.Type type()
ConnectionPropertytype in interface ConnectionPropertypublic boolean required()
ConnectionPropertyrequired in interface ConnectionPropertypublic ConnectionConfigImpl.PropEnv wrap(Properties properties)
ConnectionPropertywrap in interface ConnectionPropertyCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.