类 AssociationEvent
java.lang.Object
org.babyfish.jimmer.sql.event.AssociationEvent
- 所有已实现的接口:
DatabaseEvent
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明AssociationEvent(org.babyfish.jimmer.meta.ImmutableProp prop, Object sourceId, Object detachedTargetId, Object attachedTargetId, Connection con, Object reason) AssociationEvent(org.babyfish.jimmer.meta.ImmutableProp prop, Object sourceId, Connection con, Object reason) -
方法概要
修饰符和类型方法说明boolean@Nullable Object@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@Nullable Object@NotNull org.babyfish.jimmer.meta.ImmutableProp@Nullable Object@NotNull Object@NotNull AssociationEvent.TypegetType()inthashCode()booleanisChanged(org.babyfish.jimmer.meta.ImmutableProp prop) Is the value of specified property changed.booleanisChanged(org.babyfish.jimmer.meta.TypedProp<?, ?> prop) Is the value of specified property changedtoString()
-
构造器详细资料
-
AssociationEvent
public AssociationEvent(org.babyfish.jimmer.meta.ImmutableProp prop, Object sourceId, Connection con, Object reason) -
AssociationEvent
public AssociationEvent(org.babyfish.jimmer.meta.ImmutableProp prop, Object sourceId, Object detachedTargetId, Object attachedTargetId, Connection con, Object reason)
-
-
方法详细资料
-
getImmutableProp
@NotNull public @NotNull org.babyfish.jimmer.meta.ImmutableProp getImmutableProp() -
getSourceId
-
getDetachedTargetId
-
getAttachedTargetId
-
isChanged
public boolean isChanged(org.babyfish.jimmer.meta.ImmutableProp prop) 从接口复制的说明:DatabaseEventIs the value of specified property changed.- 指定者:
isChanged在接口中DatabaseEvent- 参数:
prop- The specified property- 返回:
- Is the value of specified property changed
- If the current event is
EntityEvent, returns whether the declaring type of specified property is assignable from the entity type of current event object and whether the value of specified property is changed. - If the current event is
AssociationEventreturns whether the specified property isgetImmutableProp()
- If the current event is
-
isChanged
public boolean isChanged(org.babyfish.jimmer.meta.TypedProp<?, ?> prop) 从接口复制的说明:DatabaseEventIs the value of specified property changed- 指定者:
isChanged在接口中DatabaseEvent- 参数:
prop- The specified property- 返回:
- Is the value of specified property changed
- If the current event is
EntityEvent, returns whether the declaring type of specified property is assignable from the entity type of current event object and whether the value of specified property is changed. - If the current event is
AssociationEventreturns whether the specified property isgetImmutableProp()
- If the current event is
-
getConnection
从接口复制的说明:DatabaseEventDetermine 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.
- 指定者:
getConnection在接口中DatabaseEvent- 返回:
- The current connection or null
-
getReason
- 指定者:
getReason在接口中DatabaseEvent
-
getType
-
hashCode
public int hashCode() -
equals
-
toString
-