Top Fields Constructors Methods
com.mysql.cj.conf

public Class EnumPropertyDefinition<T extends Enum<T>>

extends AbstractPropertyDefinition<T extends Enum<T>>
Class Inheritance
Imports
java.util.Arrays, com.mysql.cj.Messages, com.mysql.cj.exceptions.ExceptionFactory, .ExceptionInterceptor, com.mysql.cj.util.StringUtils

Field Summary

Modifier and TypeField and Description
private Class<T>
private static final long

Constructor Summary

AccessConstructor and Description
public
EnumPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory)

Method Summary

Modifier and TypeMethod and Description
public RuntimeProperty<T>

Returns:

RuntimeProperty
createRuntimeProperty
()

Implements com.mysql.cj.conf.PropertyDefinition.createRuntimeProperty.

Creates an instance of EnumProperty.

public String[]
public T
parseObject(String
value
value
,
ExceptionInterceptor
exception interceptor
exceptionInterceptor
)

Implements abstract com.mysql.cj.conf.AbstractPropertyDefinition.parseObject.

Implements com.mysql.cj.conf.PropertyDefinition.parseObject.

Returns the value object parsed from it's string representation and checked against allowable values.

Inherited from com.mysql.cj.conf.AbstractPropertyDefinition:
getCategorygetCcAliasgetDefaultValuegetDescriptiongetLowerBoundgetNamegetOrdergetPropertyKeygetSinceVersiongetUpperBoundhasCcAliashasValueConstraintsisRangeBasedisRuntimeModifiablesetCategorysetDefaultValuesetDescriptionsetLowerBoundsetOrdersetRuntimeModifiablesetSinceVersionsetUpperBound

Field Detail

enumTypeback to summary
private Class<T> enumType
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.mysql.cj.conf.AbstractPropertyDefinition.serialVersionUID.

Constructor Detail

EnumPropertyDefinitionback to summary
public EnumPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory)

Method Detail

createRuntimePropertyback to summary
public RuntimeProperty<T> createRuntimeProperty()

Implements com.mysql.cj.conf.PropertyDefinition.createRuntimeProperty.

Creates an instance of EnumProperty.

Returns:RuntimeProperty<T>

RuntimeProperty

Annotations
@Override
getAllowableValuesback to summary
public String[] getAllowableValues()

Overrides com.mysql.cj.conf.AbstractPropertyDefinition.getAllowableValues.

Implements com.mysql.cj.conf.PropertyDefinition.getAllowableValues.

Doc from com.mysql.cj.conf.PropertyDefinition.getAllowableValues.

Returns the list of allowable values.

Returns:String[]

the list of allowable values

Annotations
@Override
parseObjectback to summary
public T parseObject(String value, ExceptionInterceptor exceptionInterceptor)

Implements abstract com.mysql.cj.conf.AbstractPropertyDefinition.parseObject.

Implements com.mysql.cj.conf.PropertyDefinition.parseObject.

Doc from com.mysql.cj.conf.PropertyDefinition.parseObject.

Returns the value object parsed from it's string representation and checked against allowable values.

Parameters
value:String

value

exceptionInterceptor:ExceptionInterceptor

exception interceptor

Returns:T

the value object

Annotations
@Override