Top Inners Methods
com.mysql.cj.conf

public Interface RuntimeProperty<T>

Known Direct Implementers
com.mysql.cj.conf.AbstractRuntimeProperty
Imports
java.util.Properties, javax.naming.Reference, com.mysql.cj.exceptions.ExceptionInterceptor

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Method Summary

Modifier and TypeMethod and Description
public void
public T

Returns:

value
getInitialValue
()

Get initial value (default or defined in connection string/Properties)

public PropertyDefinition<T>
public String

Returns:

value
getStringValue
()

Get internal value representation as String.

public T

Returns:

value
getValue
()

Get internal value representation as Object.

public void
initializeFrom(Properties
Properties object containing key-value pairs usually passed from connection string.
extractFrom
,
ExceptionInterceptor
exceptionInterceptor
exceptionInterceptor
)

Explicitly set value of this RuntimeProperty according to the self-titled property value contained in extractFrom.

public void
initializeFrom(Reference ref, ExceptionInterceptor exceptionInterceptor)

public boolean
public void
public void
resetValue()

Reset to initial value (default or defined in connection string/Properties)

public void
setValue(T
value
value
)

Set the object value of a property directly.

public void
setValue(T
value
value
,
ExceptionInterceptor
exception interceptor
exceptionInterceptor
)

Set the object value of a property directly.

Method Detail

addListenerback to summary
public void addListener(RuntimeProperty.RuntimePropertyListener l)

Add listener for this property changes.

Parameters
l:RuntimeProperty.RuntimePropertyListener

RuntimePropertyListener

getInitialValueback to summary
public T getInitialValue()

Get initial value (default or defined in connection string/Properties)

Returns:T

value

getPropertyDefinitionback to summary
public PropertyDefinition<T> getPropertyDefinition()
getStringValueback to summary
public String getStringValue()

Get internal value representation as String.

Returns:String

value

getValueback to summary
public T getValue()

Get internal value representation as Object.

Returns:T

value

initializeFromback to summary
public void initializeFrom(Properties extractFrom, ExceptionInterceptor exceptionInterceptor)

Explicitly set value of this RuntimeProperty according to the self-titled property value contained in extractFrom. This method is called during PropertySet initialization thus ignores the RUNTIME_NOT_MODIFIABLE flag.

This value will also be the initial one, i.e. resetValue() will reset to this value, not the default one.

If extractFrom does not contain such property then this RuntimeProperty remains unchanged.

Parameters
extractFrom:Properties

Properties object containing key-value pairs usually passed from connection string.

exceptionInterceptor:ExceptionInterceptor

exceptionInterceptor

initializeFromback to summary
public void initializeFrom(Reference ref, ExceptionInterceptor exceptionInterceptor)
isExplicitlySetback to summary
public boolean isExplicitlySet()
removeListenerback to summary
public void removeListener(RuntimeProperty.RuntimePropertyListener l)
resetValueback to summary
public void resetValue()

Reset to initial value (default or defined in connection string/Properties)

setValueback to summary
public void setValue(T value)

Set the object value of a property directly. Validation against allowable values will be performed.

Parameters
value:T

value

setValueback to summary
public void setValue(T value, ExceptionInterceptor exceptionInterceptor)

Set the object value of a property directly. Validation against allowable values will be performed.

Parameters
value:T

value

exceptionInterceptor:ExceptionInterceptor

exception interceptor

com.mysql.cj.conf back to summary

public Interface RuntimeProperty.RuntimePropertyListener

Known Direct Implementers
com.mysql.cj.protocol.a.NativeProtocol
Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

handlePropertyChangeback to summary
public void handlePropertyChange(RuntimeProperty<?> prop)