Class PersistenceUnitLifecycleEventHandler
java.lang.Object
org.hibernate.boot.models.spi.PersistenceUnitLifecycleEventHandler
Models persistence unit lifecycle callbacks declared by an
@EntityListener class.- Since:
- 8.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionPersistenceUnitLifecycleEventHandler(org.hibernate.models.spi.ClassDetails listenerClass, List<PersistenceUnitLifecycleEventHandler.CallbackMethod> callbackMethods) -
Method Summary
Modifier and TypeMethodDescriptionfrom(org.hibernate.models.spi.ClassDetails listenerClassDetails) from(org.hibernate.models.spi.ClassDetails listenerClassDetails, org.hibernate.boot.jaxb.mapping.spi.JaxbEntityListenerImpl jaxbMapping) org.hibernate.models.spi.ClassDetailsbooleanstatic booleanhasExplicitXmlCallbackMappings(org.hibernate.boot.jaxb.mapping.spi.JaxbEntityListenerImpl jaxbMapping)
-
Constructor Details
-
PersistenceUnitLifecycleEventHandler
public PersistenceUnitLifecycleEventHandler(@Nonnull org.hibernate.models.spi.ClassDetails listenerClass, @Nonnull List<PersistenceUnitLifecycleEventHandler.CallbackMethod> callbackMethods)
-
-
Method Details
-
getCallbackClass
-
getCallbackMethods
-
hasCallbackMethods
public boolean hasCallbackMethods() -
from
@Nonnull public static PersistenceUnitLifecycleEventHandler from(@Nonnull org.hibernate.models.spi.ClassDetails listenerClassDetails) -
from
@Internal @Nonnull public static PersistenceUnitLifecycleEventHandler from(@Nonnull org.hibernate.models.spi.ClassDetails listenerClassDetails, @Nonnull org.hibernate.boot.jaxb.mapping.spi.JaxbEntityListenerImpl jaxbMapping) -
hasExplicitXmlCallbackMappings
public static boolean hasExplicitXmlCallbackMappings(@Nonnull org.hibernate.boot.jaxb.mapping.spi.JaxbEntityListenerImpl jaxbMapping)
-