类 AbstractPropertyDefinition<T>
- java.lang.Object
-
- com.mysql.cj.conf.AbstractPropertyDefinition<T>
-
- 所有已实现的接口:
PropertyDefinition<T>,Serializable
- 直接已知子类:
BooleanPropertyDefinition,EnumPropertyDefinition,IntegerPropertyDefinition,LongPropertyDefinition,StringPropertyDefinition
public abstract class AbstractPropertyDefinition<T> extends Object implements PropertyDefinition<T>, Serializable
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 AbstractPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory)AbstractPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory, int lowerBound, int upperBound)AbstractPropertyDefinition(String name, String camelCaseAlias, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 String[]getAllowableValues()Returns the list of allowable values.StringgetCategory()Returns the property category.StringgetCcAlias()Returns the property camel-case alias.TgetDefaultValue()Returns the default value.StringgetDescription()Returns the property description.intgetLowerBound()The lowest possible value of range-based propertyStringgetName()Returns the property name.intgetOrder()Returns the property order.PropertyKeygetPropertyKey()Get the property key.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.abstract TparseObject(String value, ExceptionInterceptor exceptionInterceptor)Returns the value object parsed from it's string representation and checked against allowable values.voidsetCategory(String category)voidsetDefaultValue(T defaultValue)voidsetDescription(String description)voidsetLowerBound(int lowerBound)voidsetOrder(int order)voidsetRuntimeModifiable(boolean isRuntimeModifiable)voidsetSinceVersion(String sinceVersion)voidsetUpperBound(int upperBound)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.conf.PropertyDefinition
createRuntimeProperty
-
-
-
-
构造器详细资料
-
AbstractPropertyDefinition
public AbstractPropertyDefinition(String name, String camelCaseAlias, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory)
-
AbstractPropertyDefinition
public AbstractPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory)
-
AbstractPropertyDefinition
public AbstractPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, String description, String sinceVersion, String category, int orderInCategory, int lowerBound, int upperBound)
-
-
方法详细资料
-
hasValueConstraints
public boolean hasValueConstraints()
从接口复制的说明:PropertyDefinitionDoes the property have fixed values based constraints.- 指定者:
hasValueConstraints在接口中PropertyDefinition<T>- 返回:
- true if property has fixed values based constraints.
-
isRangeBased
public boolean isRangeBased()
从接口复制的说明:PropertyDefinitionReturns true if property has range-based constraints- 指定者:
isRangeBased在接口中PropertyDefinition<T>- 返回:
- true if property has range-based constraints
-
getPropertyKey
public PropertyKey getPropertyKey()
从接口复制的说明:PropertyDefinitionGet the property key.- 指定者:
getPropertyKey在接口中PropertyDefinition<T>- 返回:
PropertyKeyor null if it's a custom property.
-
getName
public String getName()
从接口复制的说明:PropertyDefinitionReturns the property name.- 指定者:
getName在接口中PropertyDefinition<T>- 返回:
- the property name
-
getCcAlias
public String getCcAlias()
从接口复制的说明:PropertyDefinitionReturns the property camel-case alias.- 指定者:
getCcAlias在接口中PropertyDefinition<T>- 返回:
- the property camel-case alias.
-
hasCcAlias
public boolean hasCcAlias()
从接口复制的说明:PropertyDefinitionReturns true if property has a camel-case alias.- 指定者:
hasCcAlias在接口中PropertyDefinition<T>- 返回:
- true if property has a camel-case alias.
-
getDefaultValue
public T getDefaultValue()
从接口复制的说明:PropertyDefinitionReturns the default value.- 指定者:
getDefaultValue在接口中PropertyDefinition<T>- 返回:
- default value
-
setDefaultValue
public void setDefaultValue(T defaultValue)
-
isRuntimeModifiable
public boolean isRuntimeModifiable()
从接口复制的说明:PropertyDefinitionMay the property be changed after initialization.- 指定者:
isRuntimeModifiable在接口中PropertyDefinition<T>- 返回:
- true if the property value may be changed after initialization.
-
setRuntimeModifiable
public void setRuntimeModifiable(boolean isRuntimeModifiable)
-
getDescription
public String getDescription()
从接口复制的说明:PropertyDefinitionReturns the property description. Used for documentation.- 指定者:
getDescription在接口中PropertyDefinition<T>- 返回:
- property description
-
setDescription
public void setDescription(String description)
-
getSinceVersion
public String getSinceVersion()
从接口复制的说明:PropertyDefinitionReturns the driver version where the property was introduced first. Used for documentation.- 指定者:
getSinceVersion在接口中PropertyDefinition<T>- 返回:
- the driver version where the property was introduced first
-
setSinceVersion
public void setSinceVersion(String sinceVersion)
-
getCategory
public String getCategory()
从接口复制的说明:PropertyDefinitionReturns the property category.- 指定者:
getCategory在接口中PropertyDefinition<T>- 返回:
- property category
-
setCategory
public void setCategory(String category)
-
getOrder
public int getOrder()
从接口复制的说明:PropertyDefinitionReturns the property order. Used as preferred property position in properties table in documentation.- 指定者:
getOrder在接口中PropertyDefinition<T>- 返回:
- property order
-
setOrder
public void setOrder(int order)
-
getAllowableValues
public String[] getAllowableValues()
从接口复制的说明:PropertyDefinitionReturns the list of allowable values.- 指定者:
getAllowableValues在接口中PropertyDefinition<T>- 返回:
- the list of allowable values
-
getLowerBound
public int getLowerBound()
从接口复制的说明:PropertyDefinitionThe lowest possible value of range-based property- 指定者:
getLowerBound在接口中PropertyDefinition<T>- 返回:
- the lowest possible value of range-based property
-
setLowerBound
public void setLowerBound(int lowerBound)
-
getUpperBound
public int getUpperBound()
从接口复制的说明:PropertyDefinitionThe highest possible value of range-based property- 指定者:
getUpperBound在接口中PropertyDefinition<T>- 返回:
- the highest possible value of range-based property
-
setUpperBound
public void setUpperBound(int upperBound)
-
parseObject
public abstract T parseObject(String value, ExceptionInterceptor exceptionInterceptor)
从接口复制的说明:PropertyDefinitionReturns the value object parsed from it's string representation and checked against allowable values.- 指定者:
parseObject在接口中PropertyDefinition<T>- 参数:
value- valueexceptionInterceptor- exception interceptor- 返回:
- the value object
-
-