Package com.mysql.cj.conf
Class EnumPropertyDefinition<T extends java.lang.Enum<T>>
java.lang.Object
com.mysql.cj.conf.AbstractPropertyDefinition<T>
com.mysql.cj.conf.EnumPropertyDefinition<T>
- All Implemented Interfaces:
PropertyDefinition<T>,java.io.Serializable
public class EnumPropertyDefinition<T extends java.lang.Enum<T>> extends AbstractPropertyDefinition<T>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description EnumPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory) -
Method Summary
Modifier and Type Method Description RuntimeProperty<T>createRuntimeProperty()Creates an instance of EnumProperty.java.lang.String[]getAllowableValues()Returns the list of allowable values.TparseObject(java.lang.String value, ExceptionInterceptor exceptionInterceptor)Returns the value object parsed from it's string representation and checked against allowable values.Methods inherited from class com.mysql.cj.conf.AbstractPropertyDefinition
getCategory, getCcAlias, getDefaultValue, getDescription, getLowerBound, getName, getOrder, getPropertyKey, getSinceVersion, getUpperBound, hasCcAlias, hasValueConstraints, isRangeBased, isRuntimeModifiable, setCategory, setDefaultValue, setDescription, setLowerBound, setOrder, setRuntimeModifiable, setSinceVersion, setUpperBound
-
Constructor Details
-
EnumPropertyDefinition
public EnumPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory)
-
-
Method Details
-
getAllowableValues
public java.lang.String[] getAllowableValues()Description copied from interface:PropertyDefinitionReturns the list of allowable values.- Specified by:
getAllowableValuesin interfacePropertyDefinition<T extends java.lang.Enum<T>>- Overrides:
getAllowableValuesin classAbstractPropertyDefinition<T extends java.lang.Enum<T>>- Returns:
- the list of allowable values
-
parseObject
Description copied from interface:PropertyDefinitionReturns the value object parsed from it's string representation and checked against allowable values.- Specified by:
parseObjectin interfacePropertyDefinition<T extends java.lang.Enum<T>>- Specified by:
parseObjectin classAbstractPropertyDefinition<T extends java.lang.Enum<T>>- Parameters:
value- valueexceptionInterceptor- exception interceptor- Returns:
- the value object
-
createRuntimeProperty
Creates an instance of EnumProperty.- Returns:
- RuntimeProperty
-