Class PeriodArgumentFactory

All Implemented Interfaces:
ArgumentFactory, ArgumentFactory.Preparable

public class PeriodArgumentFactory extends AbstractArgumentFactory<Period>
Postgres version of argument factory for Period.
  • Constructor Details

    • PeriodArgumentFactory

      public PeriodArgumentFactory()
  • Method Details

    • build

      public Argument build(Period period, ConfigRegistry config)
      Description copied from class: AbstractArgumentFactory
      Produce an argument object for the given value. When the implementation class has accepted a given type, it must then produce an argument instance or throw an exception.
      Specified by:
      build in class AbstractArgumentFactory<Period>
      Parameters:
      period - the value to convert to an argument
      config - the config registry
      Returns:
      An Argument for the given value. Must not be null!