Package com.mysql.cj.conf
Class IntegerPropertyDefinition
java.lang.Object
com.mysql.cj.conf.AbstractPropertyDefinition<java.lang.Integer>
com.mysql.cj.conf.IntegerPropertyDefinition
- All Implemented Interfaces:
PropertyDefinition<java.lang.Integer>,java.io.Serializable
- Direct Known Subclasses:
MemorySizePropertyDefinition
public class IntegerPropertyDefinition extends AbstractPropertyDefinition<java.lang.Integer>
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected intmultiplier -
Constructor Summary
Constructors Constructor Description IntegerPropertyDefinition(PropertyKey key, int defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory)IntegerPropertyDefinition(PropertyKey key, int defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory, int lowerBound, int upperBound) -
Method Summary
Modifier and Type Method Description RuntimeProperty<java.lang.Integer>createRuntimeProperty()Creates instance of IntegerProperty.static java.lang.IntegerintegerFrom(java.lang.String name, java.lang.String value, int multiplier, ExceptionInterceptor exceptionInterceptor)booleanisRangeBased()Returns true if property has range-based constraintsjava.lang.IntegerparseObject(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, isRuntimeModifiable, setCategory, setDefaultValue, setDescription, setLowerBound, setOrder, setRuntimeModifiable, setSinceVersion, setUpperBound
-
Field Details
-
multiplier
protected int multiplier
-
-
Constructor Details
-
IntegerPropertyDefinition
public IntegerPropertyDefinition(PropertyKey key, int defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory) -
IntegerPropertyDefinition
public IntegerPropertyDefinition(PropertyKey key, int defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory, int lowerBound, int upperBound)
-
-
Method Details
-
isRangeBased
public boolean isRangeBased()Description copied from interface:PropertyDefinitionReturns true if property has range-based constraints- Specified by:
isRangeBasedin interfacePropertyDefinition<java.lang.Integer>- Overrides:
isRangeBasedin classAbstractPropertyDefinition<java.lang.Integer>- Returns:
- true if property has range-based constraints
-
parseObject
public java.lang.Integer 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.Integer>- Specified by:
parseObjectin classAbstractPropertyDefinition<java.lang.Integer>- Parameters:
value- valueexceptionInterceptor- exception interceptor- Returns:
- the value object
-
createRuntimeProperty
Creates instance of IntegerProperty.- Returns:
- RuntimeProperty
-
integerFrom
public static java.lang.Integer integerFrom(java.lang.String name, java.lang.String value, int multiplier, ExceptionInterceptor exceptionInterceptor)
-