Class TimestampedFactory
- java.lang.Object
-
- org.jdbi.v3.sqlobject.customizer.internal.TimestampedFactory
-
- All Implemented Interfaces:
SqlStatementCustomizerFactory
public class TimestampedFactory extends java.lang.Object implements SqlStatementCustomizerFactory
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.function.Function<java.time.ZoneId,java.time.Clock>timeSource
-
Constructor Summary
Constructors Constructor Description TimestampedFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlStatementCustomizercreateForMethod(java.lang.annotation.Annotation annotation, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)Used to create customizers for annotations on methods.(package private) static voidsetTimeSource(java.util.function.Function<java.time.ZoneId,java.time.Clock> timeSource)for testing purposes only-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.sqlobject.customizer.SqlStatementCustomizerFactory
createForParameter, createForType
-
-
-
-
Method Detail
-
createForMethod
public SqlStatementCustomizer createForMethod(java.lang.annotation.Annotation annotation, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)
Description copied from interface:SqlStatementCustomizerFactoryUsed to create customizers for annotations on methods.- Specified by:
createForMethodin interfaceSqlStatementCustomizerFactory- Parameters:
annotation- the annotation which lead to the method being calledsqlObjectType- sql object class (interface)method- the method which was annotated- Returns:
- the customizer which will be applied to the generated statement
-
setTimeSource
@Beta static void setTimeSource(java.util.function.Function<java.time.ZoneId,java.time.Clock> timeSource)
for testing purposes only
-
-