AnimalListener.java

  1. // license-header java merge-point
  2. // Generated by EntityListener.vsl in andromda-ejb3-cartridge on 08/06/2014 10:56:20.
  3. // Modify as necessary. If deleted it will be regenerated.
  4. package org.andromda.demo.ejb3.animal;

  5. import javax.persistence.PostLoad;
  6. import javax.persistence.PostPersist;
  7. import javax.persistence.PostRemove;
  8. import javax.persistence.PostUpdate;
  9. import javax.persistence.PrePersist;
  10. import javax.persistence.PreRemove;
  11. import javax.persistence.PreUpdate;

  12. /**
  13.  * Callback Listener for Entity POJO EJB Animal
  14.  *
  15.  * @see Animal
  16.  */
  17. public class AnimalListener
  18. {
  19.     /**
  20.      * Default public no-args constructor
  21.      */
  22.     public AnimalListener()
  23.     {
  24.         // empty constructor
  25.     }

  26.     @PrePersist
  27.     public void prePersist(Animal animal)
  28.     {
  29.         // pre persist implementation
  30.     }

  31.     @PostPersist
  32.     public void postPersist(Animal animal)
  33.     {
  34.         // post persist implementation
  35.     }

  36.     @PreRemove
  37.     public void preRemove(Animal animal)
  38.     {
  39.         // pre remove implementation
  40.     }

  41.     @PostRemove
  42.     public void postRemove(Animal animal)
  43.     {
  44.         // post remove implementation
  45.     }

  46.     @PreUpdate
  47.     public void preUpdate(Animal animal) {
  48.         // pre update implementation
  49.     }

  50.     @PostUpdate
  51.     public void postUpdate(Animal animal)
  52.     {
  53.         // post update implementation
  54.     }

  55.     @PostLoad
  56.     public void postLoad(Animal animal)
  57.     {
  58.         // post load implementation
  59.     }
  60. }