Class AutoPopulatedEntityEventListener

    • Constructor Detail

      • AutoPopulatedEntityEventListener

        public AutoPopulatedEntityEventListener()
    • Method Detail

      • supports

        public final boolean supports​(RuntimePersistentEntity<java.lang.Object> entity,
                                      java.lang.Class<? extends java.lang.annotation.Annotation> eventType)
        Description copied from interface: EntityEventListener
        Allows including or excluding a listener for a specific entity.
        Specified by:
        supports in interface EntityEventListener<java.lang.Object>
        Parameters:
        entity - The entity
        eventType - The event type
        Returns:
        True if it is supported
      • getEventTypes

        @NonNull
        protected abstract java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getEventTypes()
        Returns:
        The event type
      • getPropertyPredicate

        @NonNull
        protected abstract java.util.function.Predicate<RuntimePersistentProperty<java.lang.Object>> getPropertyPredicate()
        Returns:
        A predicate to apply for the given property.
      • getApplicableProperties

        @NonNull
        protected RuntimePersistentProperty<java.lang.Object>[] getApplicableProperties​(RuntimePersistentEntity<java.lang.Object> entity)
        Returns the applicable properties for this listener.
        Parameters:
        entity - The entity
        Returns:
        the properties