Class TimestampedFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.function.Function<java.time.ZoneId,​java.time.Clock> timeSource  
    • Field Detail

      • timeSource

        private static java.util.function.Function<java.time.ZoneId,​java.time.Clock> timeSource
    • Constructor Detail

      • TimestampedFactory

        public TimestampedFactory()
    • Method Detail

      • createForMethod

        public SqlStatementCustomizer createForMethod​(java.lang.annotation.Annotation annotation,
                                                      java.lang.Class<?> sqlObjectType,
                                                      java.lang.reflect.Method method)
        Description copied from interface: SqlStatementCustomizerFactory
        Used to create customizers for annotations on methods.
        Specified by:
        createForMethod in interface SqlStatementCustomizerFactory
        Parameters:
        annotation - the annotation which lead to the method being called
        sqlObjectType - 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