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 classBooleanPropertyDefinition.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.BooleanbooleanFrom(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.BooleanparseObject(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:PropertyDefinitionReturns the list of allowable values.- Specified by:
getAllowableValuesin interfacePropertyDefinition<java.lang.Boolean>- Overrides:
getAllowableValuesin 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:PropertyDefinitionReturns the value object parsed from it's string representation and checked against allowable values.- Specified by:
parseObjectin interfacePropertyDefinition<java.lang.Boolean>- Specified by:
parseObjectin 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()
-