Record Class PersistenceUnitLifecycleEventHandler.CallbackMethod
java.lang.Object
java.lang.Record
org.hibernate.boot.models.spi.PersistenceUnitLifecycleEventHandler.CallbackMethod
- Enclosing class:
PersistenceUnitLifecycleEventHandler
public static record PersistenceUnitLifecycleEventHandler.CallbackMethod(PersistenceUnitCallbackType callbackType, org.hibernate.models.spi.MethodDetails methodDetails)
extends Record
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionCallbackMethod(PersistenceUnitCallbackType callbackType, org.hibernate.models.spi.MethodDetails methodDetails) Creates an instance of aCallbackMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallbackTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.hibernate.models.spi.MethodDetailsReturns the value of themethodDetailsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CallbackMethod
public CallbackMethod(PersistenceUnitCallbackType callbackType, org.hibernate.models.spi.MethodDetails methodDetails) Creates an instance of aCallbackMethodrecord class.- Parameters:
callbackType- the value for thecallbackTyperecord componentmethodDetails- the value for themethodDetailsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
callbackType
Returns the value of thecallbackTyperecord component.- Returns:
- the value of the
callbackTyperecord component
-
methodDetails
public org.hibernate.models.spi.MethodDetails methodDetails()Returns the value of themethodDetailsrecord component.- Returns:
- the value of the
methodDetailsrecord component
-