Package com.mysql.cj.conf
Class StringPropertyDefinition
java.lang.Object
com.mysql.cj.conf.AbstractPropertyDefinition<java.lang.String>
com.mysql.cj.conf.StringPropertyDefinition
- All Implemented Interfaces:
PropertyDefinition<java.lang.String>
,java.io.Serializable
public class StringPropertyDefinition extends AbstractPropertyDefinition<java.lang.String>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StringPropertyDefinition(PropertyKey key, java.lang.String defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory)
StringPropertyDefinition(java.lang.String name, java.lang.String alias, java.lang.String 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<java.lang.String>
createRuntimeProperty()
Creates instance of ReadableStringProperty or ModifiableStringProperty depending on isRuntimeModifiable() result.java.lang.String
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
getAllowableValues, getCategory, getCcAlias, getDefaultValue, getDescription, getLowerBound, getName, getOrder, getPropertyKey, getSinceVersion, getUpperBound, hasCcAlias, hasValueConstraints, isRangeBased, isRuntimeModifiable, setCategory, setDefaultValue, setDescription, setLowerBound, setOrder, setRuntimeModifiable, setSinceVersion, setUpperBound
-
Constructor Details
-
StringPropertyDefinition
public StringPropertyDefinition(java.lang.String name, java.lang.String alias, java.lang.String defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory) -
StringPropertyDefinition
public StringPropertyDefinition(PropertyKey key, java.lang.String defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory)
-
-
Method Details
-
parseObject
public java.lang.String 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.String>
- Specified by:
parseObject
in classAbstractPropertyDefinition<java.lang.String>
- Parameters:
value
- valueexceptionInterceptor
- exception interceptor- Returns:
- the value object
-
createRuntimeProperty
Creates instance of ReadableStringProperty or ModifiableStringProperty depending on isRuntimeModifiable() result.- Returns:
- RuntimeProperty
-