Interface PluggableDefaultValueProvider
- All Superinterfaces:
DefaultValueStrategy
- All Known Implementing Classes:
AbstractDateProvider,ConditionalProvider,ConstantStringProvider,ConstantValueProvider,CurrentDateProvider,CustomConditionalProvider,DefaultDefaultValueProvider,IncrementingNumberProvider,NumberProvider,StaticDateProvider,StaticNumberProvider
The interface to be used with the
PluggableDefaultValueStrategy. This is basically a conditional DefaultValueStrategy that
will only be queried if willProvide(ColumnModel) returns true and
it is the first provider in the list of providers that returned true.-
Method Summary
Modifier and TypeMethodDescriptionbooleanwillProvide(ColumnModel columnModel) Use this to perform your checks whether the class can and should provide a default value.Methods inherited from interface de.yamass.redg.runtime.defaultvalues.DefaultValueStrategy
getDefaultValue
-
Method Details
-
willProvide
Use this to perform your checks whether the class can and should provide a default value. Only returntrueif the class really can provide a valid default value.- Parameters:
columnModel- the column model of the column that needs a default value- Returns:
trueif the class can and should provide a valid default value,falseotherwise
-