Package com.mysql.cj.conf
Class LongPropertyDefinition
java.lang.Object
com.mysql.cj.conf.AbstractPropertyDefinition<java.lang.Long>
com.mysql.cj.conf.LongPropertyDefinition
- All Implemented Interfaces:
PropertyDefinition<java.lang.Long>
,java.io.Serializable
public class LongPropertyDefinition extends AbstractPropertyDefinition<java.lang.Long>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description LongPropertyDefinition(PropertyKey key, long defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory)
LongPropertyDefinition(PropertyKey key, long defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory, long lowerBound, long upperBound)
-
Method Summary
Modifier and Type Method Description RuntimeProperty<java.lang.Long>
createRuntimeProperty()
Creates instance of LongProperty.boolean
isRangeBased()
Returns true if property has range-based constraintsjava.lang.Long
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, isRuntimeModifiable, setCategory, setDefaultValue, setDescription, setLowerBound, setOrder, setRuntimeModifiable, setSinceVersion, setUpperBound
-
Constructor Details
-
LongPropertyDefinition
public LongPropertyDefinition(PropertyKey key, long defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory) -
LongPropertyDefinition
public LongPropertyDefinition(PropertyKey key, long defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory, long lowerBound, long upperBound)
-
-
Method Details
-
parseObject
public java.lang.Long 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.Long>
- Specified by:
parseObject
in classAbstractPropertyDefinition<java.lang.Long>
- Parameters:
value
- valueexceptionInterceptor
- exception interceptor- Returns:
- the value object
-
isRangeBased
public boolean isRangeBased()Description copied from interface:PropertyDefinition
Returns true if property has range-based constraints- Specified by:
isRangeBased
in interfacePropertyDefinition<java.lang.Long>
- Overrides:
isRangeBased
in classAbstractPropertyDefinition<java.lang.Long>
- Returns:
- true if property has range-based constraints
-
createRuntimeProperty
Creates instance of LongProperty.- Returns:
- RuntimeProperty
-