Interface PluggableDefaultValueProvider

All Superinterfaces:
DefaultValueStrategy
All Known Implementing Classes:
AbstractDateProvider, ConditionalProvider, ConstantStringProvider, ConstantValueProvider, CurrentDateProvider, CustomConditionalProvider, DefaultDefaultValueProvider, IncrementingNumberProvider, NumberProvider, StaticDateProvider, StaticNumberProvider

public interface PluggableDefaultValueProvider extends DefaultValueStrategy
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 Type
    Method
    Description
    boolean
    willProvide(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

      boolean willProvide(ColumnModel columnModel)
      Use this to perform your checks whether the class can and should provide a default value. Only return true if the class really can provide a valid default value.
      Parameters:
      columnModel - the column model of the column that needs a default value
      Returns:
      true if the class can and should provide a valid default value, false otherwise