Class StringPropertyDefinition

java.lang.Object
com.mysql.cj.conf.AbstractPropertyDefinition<java.lang.String>
com.mysql.cj.conf.StringPropertyDefinition
All Implemented Interfaces:
PropertyDefinition<java.lang.String>, java.io.Serializable

public class StringPropertyDefinition
extends AbstractPropertyDefinition<java.lang.String>
See Also:
Serialized Form
  • Constructor Details

    • StringPropertyDefinition

      public StringPropertyDefinition​(java.lang.String name, java.lang.String alias, java.lang.String defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory)
    • StringPropertyDefinition

      public StringPropertyDefinition​(PropertyKey key, java.lang.String defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory)
  • Method Details

    • parseObject

      public java.lang.String 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 interface PropertyDefinition<java.lang.String>
      Specified by:
      parseObject in class AbstractPropertyDefinition<java.lang.String>
      Parameters:
      value - value
      exceptionInterceptor - exception interceptor
      Returns:
      the value object
    • createRuntimeProperty

      public RuntimeProperty<java.lang.String> createRuntimeProperty()
      Creates instance of ReadableStringProperty or ModifiableStringProperty depending on isRuntimeModifiable() result.
      Returns:
      RuntimeProperty