类 EntityEvent<E>

java.lang.Object
org.babyfish.jimmer.sql.event.EntityEvent<E>

public class EntityEvent<E> extends Object
  • 构造器详细资料

    • EntityEvent

      public EntityEvent(E oldEntity, E newEntity, Connection con, Object reason)
  • 方法详细资料

    • getOldEntity

      @Nullable public E getOldEntity()
    • getNewEntity

      @Nullable public E getNewEntity()
    • getId

      @NotNull public @NotNull Object getId()
    • getConnection

      @Nullable public @Nullable Connection getConnection()
      • If the event is fired by binlog trigger, returns null
      • If the event is fired by transaction trigger, returns current trigger
      返回:
      The current connection or null
    • getReason

      @Nullable public @Nullable Object getReason()
    • getImmutableType

      @NotNull public @NotNull org.babyfish.jimmer.meta.ImmutableType getImmutableType()
    • getType

      @NotNull public @NotNull EntityEvent.Type 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(int 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(int propId)
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object