Class OptionSetting

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class OptionSetting
    extends Object
    implements Serializable, Cloneable

    Option settings are the actual settings being applied or configured for that option. It is used when you modify an option group or describe option groups. For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER that can have several different values.

    See Also:
    Serialized Form
    • Constructor Detail

      • OptionSetting

        public OptionSetting()
    • Method Detail

      • setName

        public void setName​(String name)

        The name of the option that has settings that you can set.

        Parameters:
        name - The name of the option that has settings that you can set.
      • getName

        public String getName()

        The name of the option that has settings that you can set.

        Returns:
        The name of the option that has settings that you can set.
      • withName

        public OptionSetting withName​(String name)

        The name of the option that has settings that you can set.

        Parameters:
        name - The name of the option that has settings that you can set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setValue

        public void setValue​(String value)

        The current value of the option setting.

        Parameters:
        value - The current value of the option setting.
      • getValue

        public String getValue()

        The current value of the option setting.

        Returns:
        The current value of the option setting.
      • withValue

        public OptionSetting withValue​(String value)

        The current value of the option setting.

        Parameters:
        value - The current value of the option setting.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)

        The default value of the option setting.

        Parameters:
        defaultValue - The default value of the option setting.
      • getDefaultValue

        public String getDefaultValue()

        The default value of the option setting.

        Returns:
        The default value of the option setting.
      • withDefaultValue

        public OptionSetting withDefaultValue​(String defaultValue)

        The default value of the option setting.

        Parameters:
        defaultValue - The default value of the option setting.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDescription

        public void setDescription​(String description)

        The description of the option setting.

        Parameters:
        description - The description of the option setting.
      • getDescription

        public String getDescription()

        The description of the option setting.

        Returns:
        The description of the option setting.
      • withDescription

        public OptionSetting withDescription​(String description)

        The description of the option setting.

        Parameters:
        description - The description of the option setting.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setApplyType

        public void setApplyType​(String applyType)

        The DB engine specific parameter type.

        Parameters:
        applyType - The DB engine specific parameter type.
      • getApplyType

        public String getApplyType()

        The DB engine specific parameter type.

        Returns:
        The DB engine specific parameter type.
      • withApplyType

        public OptionSetting withApplyType​(String applyType)

        The DB engine specific parameter type.

        Parameters:
        applyType - The DB engine specific parameter type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDataType

        public void setDataType​(String dataType)

        The data type of the option setting.

        Parameters:
        dataType - The data type of the option setting.
      • getDataType

        public String getDataType()

        The data type of the option setting.

        Returns:
        The data type of the option setting.
      • withDataType

        public OptionSetting withDataType​(String dataType)

        The data type of the option setting.

        Parameters:
        dataType - The data type of the option setting.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAllowedValues

        public void setAllowedValues​(String allowedValues)

        The allowed values of the option setting.

        Parameters:
        allowedValues - The allowed values of the option setting.
      • getAllowedValues

        public String getAllowedValues()

        The allowed values of the option setting.

        Returns:
        The allowed values of the option setting.
      • withAllowedValues

        public OptionSetting withAllowedValues​(String allowedValues)

        The allowed values of the option setting.

        Parameters:
        allowedValues - The allowed values of the option setting.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setIsModifiable

        public void setIsModifiable​(Boolean isModifiable)

        A Boolean value that, when true, indicates the option setting can be modified from the default.

        Parameters:
        isModifiable - A Boolean value that, when true, indicates the option setting can be modified from the default.
      • getIsModifiable

        public Boolean getIsModifiable()

        A Boolean value that, when true, indicates the option setting can be modified from the default.

        Returns:
        A Boolean value that, when true, indicates the option setting can be modified from the default.
      • withIsModifiable

        public OptionSetting withIsModifiable​(Boolean isModifiable)

        A Boolean value that, when true, indicates the option setting can be modified from the default.

        Parameters:
        isModifiable - A Boolean value that, when true, indicates the option setting can be modified from the default.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isModifiable

        public Boolean isModifiable()

        A Boolean value that, when true, indicates the option setting can be modified from the default.

        Returns:
        A Boolean value that, when true, indicates the option setting can be modified from the default.
      • setIsCollection

        public void setIsCollection​(Boolean isCollection)

        Indicates if the option setting is part of a collection.

        Parameters:
        isCollection - Indicates if the option setting is part of a collection.
      • getIsCollection

        public Boolean getIsCollection()

        Indicates if the option setting is part of a collection.

        Returns:
        Indicates if the option setting is part of a collection.
      • withIsCollection

        public OptionSetting withIsCollection​(Boolean isCollection)

        Indicates if the option setting is part of a collection.

        Parameters:
        isCollection - Indicates if the option setting is part of a collection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isCollection

        public Boolean isCollection()

        Indicates if the option setting is part of a collection.

        Returns:
        Indicates if the option setting is part of a collection.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object