|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - parameter value typepublic interface Parameter<T>
Configuration parameter interface.
ParameterFactory| Method Summary | |
|---|---|
Parameter<T> |
copy()
Return a copy of this parameter instance. |
Parameter<T> |
freeze()
Freeze the parameter configuration. |
ParameterData<T> |
getData()
Returns the data object containing path and key for the parameter. |
java.lang.String |
getDatabaseValue(T value)
Convert the given value to a string that will be stored in the configuration. |
T |
getDefaultValue()
Return the parameter's default value or null if it is not set. |
java.lang.String |
getKey()
Return the parameter's key. |
ParameterPath |
getPath()
Return the parameter's path (including its scope). |
ParameterScope |
getScope()
Return the parameter's scope. |
T |
getValue(java.lang.Object dbValue)
Convert the given database value (in string representation) to an object of type T. |
boolean |
isCached()
Should this parameter be cached once it has been retrieved? By default all parameters are cached, but you can disable this for individual parameters that are seldom used or very large. |
boolean |
isValid(T value)
Returns true if the given value is a valid configuration value (e.g. |
Parameter<T> |
setData(ParameterData<T> data)
Sets the data for this parameter. |
| Method Detail |
|---|
ParameterData<T> getData()
T getValue(java.lang.Object dbValue)
T.
dbValue - the value to be converted
T.java.lang.String getDatabaseValue(T value)
value - the parameter value to be stored
getValue(Object)boolean isValid(T value)
value - the value to be checked
T getDefaultValue()
ParameterPath getPath()
ParameterScope getScope()
boolean isCached()
java.lang.String getKey()
Parameter<T> setData(ParameterData<T> data)
freeze()).
data - the parameter data beans
Parameter<T> freeze()
Parameter<T> copy()
ParameterData instance will not be
cloned, however you can replace it with a new instance, e.g. to update the parameter key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||