Class DateTimeArgumentFactory

java.lang.Object
org.jdbi.v3.core.argument.AbstractArgumentFactory<org.joda.time.DateTime>
org.jdbi.v3.jodatime2.DateTimeArgumentFactory
All Implemented Interfaces:
ArgumentFactory, ArgumentFactory.Preparable

public class DateTimeArgumentFactory extends AbstractArgumentFactory<org.joda.time.DateTime>
Bind a DateTime as a Timestamp.
  • Constructor Details

    • DateTimeArgumentFactory

      public DateTimeArgumentFactory()
  • Method Details

    • build

      protected Argument build(org.joda.time.DateTime value, 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<org.joda.time.DateTime>
      Parameters:
      value - the value to convert to an argument
      config - the config registry
      Returns:
      An Argument for the given value. Must not be null!