类 EntityEvent<E>
java.lang.Object
org.babyfish.jimmer.sql.event.EntityEvent<E>
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean<T> @Nullable ChangedRef<T>getChangedFieldRef(org.babyfish.jimmer.meta.ImmutableProp prop) <T> @Nullable ChangedRef<T>getChangedFieldRef(org.babyfish.jimmer.meta.PropId propId) <T> @Nullable ChangedRef<T>getChangedFieldRef(org.babyfish.jimmer.meta.TypedProp<?, ?> prop) @Nullable ConnectionDetermine whether the trigger for sending the current event is within a transaction or based on binlog If the event is fired by binlog trigger, returns null If the event is fired by transaction trigger, returns current trigger@NotNull ObjectgetId()@NotNull org.babyfish.jimmer.meta.ImmutableType@Nullable Object@NotNull EntityEvent.TypegetType()<T> @Nullable org.babyfish.jimmer.lang.Ref<T>getUnchangedFieldRef(org.babyfish.jimmer.meta.ImmutableProp prop) <T> @Nullable org.babyfish.jimmer.lang.Ref<T>getUnchangedFieldRef(org.babyfish.jimmer.meta.PropId propId) <T> @Nullable org.babyfish.jimmer.lang.Ref<T>getUnchangedFieldRef(org.babyfish.jimmer.meta.TypedProp<?, ?> prop) inthashCode()toString()
-
构造器详细资料
-
EntityEvent
-
-
方法详细资料
-
getOldEntity
-
getNewEntity
-
getId
-
getConnection
Determine whether the trigger for sending the current event is within a transaction or based on binlog- If the event is fired by binlog trigger, returns null
- If the event is fired by transaction trigger, returns current trigger
Notes, If you use jimmer in spring-boot and accept events with `@EventListener`, it will be very important to determine whether this property is null. Because once the `triggerType` of `SqlClient` is set to `BOTH`, the same event will be notified twice.
- 返回:
- The current connection or null
-
getReason
-
getImmutableType
@NotNull public @NotNull org.babyfish.jimmer.meta.ImmutableType getImmutableType() -
getType
-
getUnchangedFieldRef
@Nullable public <T> @Nullable org.babyfish.jimmer.lang.Ref<T> getUnchangedFieldRef(org.babyfish.jimmer.meta.ImmutableProp prop) -
getUnchangedFieldRef
@Nullable public <T> @Nullable org.babyfish.jimmer.lang.Ref<T> getUnchangedFieldRef(org.babyfish.jimmer.meta.TypedProp<?, ?> prop) -
getUnchangedFieldRef
@Nullable public <T> @Nullable org.babyfish.jimmer.lang.Ref<T> getUnchangedFieldRef(org.babyfish.jimmer.meta.PropId propId) -
getChangedFieldRef
@Nullable public <T> @Nullable ChangedRef<T> getChangedFieldRef(org.babyfish.jimmer.meta.ImmutableProp prop) -
getChangedFieldRef
@Nullable public <T> @Nullable ChangedRef<T> getChangedFieldRef(org.babyfish.jimmer.meta.TypedProp<?, ?> prop) -
getChangedFieldRef
@Nullable public <T> @Nullable ChangedRef<T> getChangedFieldRef(org.babyfish.jimmer.meta.PropId propId) -
hashCode
public int hashCode() -
equals
-
toString
-