Record Class EntityChangedInternalEvent
java.lang.Object
java.lang.Record
net.tangly.core.events.EntityChangedInternalEvent
- Record Components:
domain- name of the domain where the entity was changedentityName- should be the simple name of the entity classClass.getSimpleName()operation- operation performed on the entity
public record EntityChangedInternalEvent(@NotNull String domain, @NotNull String entityName, @NotNull Operation operation)
extends Record
Event published when an entity is changed in the domain programatically. This change was not performed through the user interface. The event is used to
propagate changes in the domain to the user interface.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityChangedInternalEvent(@NotNull String domain, @NotNull String entityName, @NotNull Operation operation) Creates an instance of aEntityChangedInternalEventrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringdomain()Returns the value of thedomainrecord component.@NotNull StringReturns the value of theentityNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull OperationReturns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntityChangedInternalEvent
public EntityChangedInternalEvent(@NotNull @NotNull String domain, @NotNull @NotNull String entityName, @NotNull @NotNull Operation operation) Creates an instance of aEntityChangedInternalEventrecord class.- Parameters:
domain- the value for thedomainrecord componententityName- the value for theentityNamerecord componentoperation- the value for theoperationrecord 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). -
domain
-
entityName
Returns the value of theentityNamerecord component.- Returns:
- the value of the
entityNamerecord component
-
operation
-