Class AutoTimestampEntityEventListener

    • Constructor Detail

      • AutoTimestampEntityEventListener

        public AutoTimestampEntityEventListener​(DateTimeProvider<?> dateTimeProvider,
                                                DataConversionService<?> conversionService)
        Default constructor.
        Parameters:
        dateTimeProvider - The date time provider
        conversionService - The conversion service
    • Method Detail

      • prePersist

        public boolean prePersist​(@NonNull
                                  EntityEventContext<java.lang.Object> context)
        Description copied from interface: EntityEventListener
        A pre-persist hook. Implementors can return false to evict the operation.
        Specified by:
        prePersist in interface EntityEventListener<java.lang.Object>
        Parameters:
        context - The context object
        Returns:
        A boolean value indicating whether to proceed with the operation.
      • preUpdate

        public boolean preUpdate​(@NonNull
                                 EntityEventContext<java.lang.Object> context)
        Description copied from interface: EntityEventListener
        A pre-update hook. Implementors can return false to evict the operation.
        Specified by:
        preUpdate in interface EntityEventListener<java.lang.Object>
        Parameters:
        context - The context object
        Returns:
        A boolean value indicating whether to proceed with the operation.