Class PersistenceEvent<T>

java.lang.Object
org.openremote.model.PersistenceEvent<T>

public class PersistenceEvent<T> extends Object
  • Field Details

    • cause

      protected final PersistenceEvent.Cause cause
    • entity

      protected final T entity
    • propertyNames

      protected final List<String> propertyNames
    • currentState

      protected final Object[] currentState
    • previousState

      protected final Object[] previousState
  • Constructor Details

  • Method Details

    • getCause

      public PersistenceEvent.Cause getCause()
    • getEntity

      public T getEntity()
    • getPropertyNames

      public List<String> getPropertyNames()
    • getCurrentState

      public Object[] getCurrentState()
    • getPreviousState

      public Object[] getPreviousState()
    • hasPropertyChanged

      public boolean hasPropertyChanged(String propertyName)
    • getPreviousState

      public <E> E getPreviousState(String propertyName)
    • getCurrentState

      public <E> E getCurrentState(String propertyName)
    • toString

      public String toString()
      Overrides:
      toString in class Object