Package com.mysql.cj.conf
Interface PropertyDefinition<T>
- All Known Implementing Classes:
AbstractPropertyDefinition,BooleanPropertyDefinition,EnumPropertyDefinition,IntegerPropertyDefinition,LongPropertyDefinition,MemorySizePropertyDefinition,StringPropertyDefinition
public interface PropertyDefinition<T>
-
Method Summary
Modifier and Type Method Description RuntimeProperty<T>createRuntimeProperty()Creates instance of ReadableProperty or ModifiableProperty depending on isRuntimeModifiable() result.java.lang.String[]getAllowableValues()Returns the list of allowable values.java.lang.StringgetCategory()Returns the property category.java.lang.StringgetCcAlias()Returns the property camel-case alias.TgetDefaultValue()Returns the default value.java.lang.StringgetDescription()Returns the property description.intgetLowerBound()The lowest possible value of range-based propertyjava.lang.StringgetName()Returns the property name.intgetOrder()Returns the property order.PropertyKeygetPropertyKey()Get the property key.java.lang.StringgetSinceVersion()Returns the driver version where the property was introduced first.intgetUpperBound()The highest possible value of range-based propertybooleanhasCcAlias()Returns true if property has a camel-case alias.booleanhasValueConstraints()Does the property have fixed values based constraints.booleanisRangeBased()Returns true if property has range-based constraintsbooleanisRuntimeModifiable()May the property be changed after initialization.TparseObject(java.lang.String value, ExceptionInterceptor exceptionInterceptor)Returns the value object parsed from it's string representation and checked against allowable values.
-
Method Details
-
hasValueConstraints
boolean hasValueConstraints()Does the property have fixed values based constraints.- Returns:
- true if property has fixed values based constraints.
-
isRangeBased
boolean isRangeBased()Returns true if property has range-based constraints- Returns:
- true if property has range-based constraints
-
getPropertyKey
PropertyKey getPropertyKey()Get the property key.- Returns:
PropertyKeyor null if it's a custom property.
-
getName
java.lang.String getName()Returns the property name.- Returns:
- the property name
-
getCcAlias
java.lang.String getCcAlias()Returns the property camel-case alias.- Returns:
- the property camel-case alias.
-
hasCcAlias
boolean hasCcAlias()Returns true if property has a camel-case alias.- Returns:
- true if property has a camel-case alias.
-
getDefaultValue
T getDefaultValue()Returns the default value.- Returns:
- default value
-
isRuntimeModifiable
boolean isRuntimeModifiable()May the property be changed after initialization.- Returns:
- true if the property value may be changed after initialization.
-
getDescription
java.lang.String getDescription()Returns the property description. Used for documentation.- Returns:
- property description
-
getSinceVersion
java.lang.String getSinceVersion()Returns the driver version where the property was introduced first. Used for documentation.- Returns:
- the driver version where the property was introduced first
-
getCategory
java.lang.String getCategory()Returns the property category.- Returns:
- property category
-
getOrder
int getOrder()Returns the property order. Used as preferred property position in properties table in documentation.- Returns:
- property order
-
getAllowableValues
java.lang.String[] getAllowableValues()Returns the list of allowable values.- Returns:
- the list of allowable values
-
getLowerBound
int getLowerBound()The lowest possible value of range-based property- Returns:
- the lowest possible value of range-based property
-
getUpperBound
int getUpperBound()The highest possible value of range-based property- Returns:
- the highest possible value of range-based property
-
parseObject
Returns the value object parsed from it's string representation and checked against allowable values.- Parameters:
value- valueexceptionInterceptor- exception interceptor- Returns:
- the value object
-
createRuntimeProperty
RuntimeProperty<T> createRuntimeProperty()Creates instance of ReadableProperty or ModifiableProperty depending on isRuntimeModifiable() result.- Returns:
RuntimePropertyinstance
-