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.booleanisRangeBased()Returns true if property has range-based constraintsjava.lang.LongparseObject(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:PropertyDefinitionReturns the value object parsed from it's string representation and checked against allowable values.- Specified by:
parseObjectin interfacePropertyDefinition<java.lang.Long>- Specified by:
parseObjectin classAbstractPropertyDefinition<java.lang.Long>- Parameters:
value- valueexceptionInterceptor- exception interceptor- Returns:
- the value object
-
isRangeBased
public boolean isRangeBased()Description copied from interface:PropertyDefinitionReturns true if property has range-based constraints- Specified by:
isRangeBasedin interfacePropertyDefinition<java.lang.Long>- Overrides:
isRangeBasedin classAbstractPropertyDefinition<java.lang.Long>- Returns:
- true if property has range-based constraints
-
createRuntimeProperty
Creates instance of LongProperty.- Returns:
- RuntimeProperty
-