Package org.jdbi.v3.postgres
Class PeriodArgumentFactory
java.lang.Object
org.jdbi.v3.core.argument.AbstractArgumentFactory<Period>
org.jdbi.v3.postgres.PeriodArgumentFactory
- All Implemented Interfaces:
ArgumentFactory,ArgumentFactory.Preparable
Postgres version of argument factory for
Period.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jdbi.v3.core.argument.ArgumentFactory
ArgumentFactory.Preparable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(Period period, ConfigRegistry config) Produce an argument object for the given value.Methods inherited from class org.jdbi.v3.core.argument.AbstractArgumentFactory
build, prepare, prePreparedTypes
-
Constructor Details
-
PeriodArgumentFactory
public PeriodArgumentFactory()
-
-
Method Details
-
build
Description copied from class:AbstractArgumentFactoryProduce 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:
buildin classAbstractArgumentFactory<Period>- Parameters:
period- the value to convert to an argumentconfig- the config registry- Returns:
- An
Argumentfor the givenvalue. Must not be null!
-