Package com.mysql.cj.conf
Class BooleanPropertyDefinition
java.lang.Object
com.mysql.cj.conf.AbstractPropertyDefinition<java.lang.Boolean>
com.mysql.cj.conf.BooleanPropertyDefinition
- All Implemented Interfaces:
PropertyDefinition<java.lang.Boolean>
,java.io.Serializable
public class BooleanPropertyDefinition extends AbstractPropertyDefinition<java.lang.Boolean>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BooleanPropertyDefinition.AllowableValues
-
Constructor Summary
Constructors Constructor Description BooleanPropertyDefinition(PropertyKey key, java.lang.Boolean defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory)
-
Method Summary
Modifier and Type Method Description static java.lang.Boolean
booleanFrom(java.lang.String name, java.lang.String value, ExceptionInterceptor exceptionInterceptor)
RuntimeProperty<java.lang.Boolean>
createRuntimeProperty()
Creates instance of BooleanProperty.java.lang.String[]
getAllowableValues()
Returns the list of allowable values.static java.lang.String[]
getBooleanAllowableValues()
java.lang.Boolean
parseObject(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
-
BooleanPropertyDefinition
public BooleanPropertyDefinition(PropertyKey key, java.lang.Boolean 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:PropertyDefinition
Returns the list of allowable values.- Specified by:
getAllowableValues
in interfacePropertyDefinition<java.lang.Boolean>
- Overrides:
getAllowableValues
in classAbstractPropertyDefinition<java.lang.Boolean>
- Returns:
- the list of allowable values
-
parseObject
public java.lang.Boolean parseObject(java.lang.String value, ExceptionInterceptor exceptionInterceptor)Description copied from interface:PropertyDefinition
Returns the value object parsed from it's string representation and checked against allowable values.- Specified by:
parseObject
in interfacePropertyDefinition<java.lang.Boolean>
- Specified by:
parseObject
in classAbstractPropertyDefinition<java.lang.Boolean>
- Parameters:
value
- valueexceptionInterceptor
- exception interceptor- Returns:
- the value object
-
createRuntimeProperty
Creates instance of BooleanProperty.- Returns:
- RuntimeProperty
-
booleanFrom
public static java.lang.Boolean booleanFrom(java.lang.String name, java.lang.String value, ExceptionInterceptor exceptionInterceptor) -
getBooleanAllowableValues
public static java.lang.String[] getBooleanAllowableValues()
-