类 EnumPropertyDefinition<T extends Enum<T>>
- java.lang.Object
-
- com.mysql.cj.conf.AbstractPropertyDefinition<T>
-
- com.mysql.cj.conf.EnumPropertyDefinition<T>
-
- 所有已实现的接口:
PropertyDefinition<T>,Serializable
public class EnumPropertyDefinition<T extends Enum<T>> extends AbstractPropertyDefinition<T>
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 EnumPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 RuntimeProperty<T>createRuntimeProperty()Creates an instance of EnumProperty.String[]getAllowableValues()Returns the list of allowable values.TparseObject(String value, ExceptionInterceptor exceptionInterceptor)Returns the value object parsed from it's string representation and checked against allowable values.-
从类继承的方法 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
-
-
-
-
构造器详细资料
-
EnumPropertyDefinition
public EnumPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory)
-
-
方法详细资料
-
getAllowableValues
public String[] getAllowableValues()
从接口复制的说明:PropertyDefinitionReturns the list of allowable values.- 指定者:
getAllowableValues在接口中PropertyDefinition<T extends Enum<T>>- 覆盖:
getAllowableValues在类中AbstractPropertyDefinition<T extends Enum<T>>- 返回:
- the list of allowable values
-
parseObject
public T parseObject(String value, ExceptionInterceptor exceptionInterceptor)
从接口复制的说明:PropertyDefinitionReturns the value object parsed from it's string representation and checked against allowable values.- 指定者:
parseObject在接口中PropertyDefinition<T extends Enum<T>>- 指定者:
parseObject在类中AbstractPropertyDefinition<T extends Enum<T>>- 参数:
value- valueexceptionInterceptor- exception interceptor- 返回:
- the value object
-
createRuntimeProperty
public RuntimeProperty<T> createRuntimeProperty()
Creates an instance of EnumProperty.- 返回:
- RuntimeProperty
-
-