Interface DBListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onPostDelete​(DBData data, org.hibernate.event.PostDeleteEvent event, boolean firstTime)
      This method is called after a DBData has been deleted.
      void onPostInsert​(DBData data, org.hibernate.event.PostInsertEvent event, boolean firstTime)
      This method is called after a DBData has been created.
      void onPostUpdate​(DBData data, org.hibernate.event.PostUpdateEvent event, boolean firstTime)
      This method is called after a DBData has been updated.
      void onPreUpdate​(DBData data, org.hibernate.event.PreUpdateEvent event)
      This method is called before a DBData is updated.
    • Method Detail

      • onPostInsert

        void onPostInsert​(DBData data,
                          org.hibernate.event.PostInsertEvent event,
                          boolean firstTime)
        This method is called after a DBData has been created.
        Parameters:
        data - the data.
        event - the event.
        firstTime - true on the JSync replica on which the operation took place and false on the other replicas.
        Since:
        jcms-6.0.0
      • onPreUpdate

        void onPreUpdate​(DBData data,
                         org.hibernate.event.PreUpdateEvent event)
        This method is called before a DBData is updated.
        Parameters:
        data - the data.
        event - the event.
        Since:
        jcms-6.0.0
      • onPostUpdate

        void onPostUpdate​(DBData data,
                          org.hibernate.event.PostUpdateEvent event,
                          boolean firstTime)
        This method is called after a DBData has been updated.
        Parameters:
        data - the data.
        event - the event.
        firstTime - true on the JSync replica on which the operation took place and false on the other replicas.
        Since:
        jcms-6.0.0
      • onPostDelete

        void onPostDelete​(DBData data,
                          org.hibernate.event.PostDeleteEvent event,
                          boolean firstTime)
        This method is called after a DBData has been deleted.
        Parameters:
        data - the deleted DBData. WARNING! In a JSync Cluster, when firstTime is false, this data will be null. In this case, to get information about this deleted data, you must use the event and in particular event.getId(), which returns the JPlatform ID of the data, and event.getDeletedState() which returns the attributes of the data.
        event - the event
        firstTime - true on the JSync replica on which the operation took place and false on the other replicas.
        Since:
        jcms-6.0.0