1 19 20 package org.apache.cayenne.jpa.map; 21 22 public class JpaEntityListener { 23 24 protected String className; 25 protected JpaLifecycleCallback prePersist; 26 protected JpaLifecycleCallback postPersist; 27 protected JpaLifecycleCallback preRemove; 28 protected JpaLifecycleCallback postRemove; 29 protected JpaLifecycleCallback preUpdate; 30 protected JpaLifecycleCallback postUpdate; 31 protected JpaLifecycleCallback postLoad; 32 33 public JpaLifecycleCallback getPostLoad() { 34 return postLoad; 35 } 36 37 public void setPostLoad(JpaLifecycleCallback postLoad) { 38 this.postLoad = postLoad; 39 } 40 41 public JpaLifecycleCallback getPostPersist() { 42 return postPersist; 43 } 44 45 public void setPostPersist(JpaLifecycleCallback postPersist) { 46 this.postPersist = postPersist; 47 } 48 49 public JpaLifecycleCallback getPostRemove() { 50 return postRemove; 51 } 52 53 public void setPostRemove(JpaLifecycleCallback postRemove) { 54 this.postRemove = postRemove; 55 } 56 57 public JpaLifecycleCallback getPostUpdate() { 58 return postUpdate; 59 } 60 61 public void setPostUpdate(JpaLifecycleCallback postUpdate) { 62 this.postUpdate = postUpdate; 63 } 64 65 public JpaLifecycleCallback getPrePersist() { 66 return prePersist; 67 } 68 69 public void setPrePersist(JpaLifecycleCallback prePersist) { 70 this.prePersist = prePersist; 71 } 72 73 public JpaLifecycleCallback getPreRemove() { 74 return preRemove; 75 } 76 77 public void setPreRemove(JpaLifecycleCallback preRemove) { 78 this.preRemove = preRemove; 79 } 80 81 public JpaLifecycleCallback getPreUpdate() { 82 return preUpdate; 83 } 84 85 public void setPreUpdate(JpaLifecycleCallback preUpdate) { 86 this.preUpdate = preUpdate; 87 } 88 89 public String getClassName() { 90 return className; 91 } 92 93 public void setClassName(String className) { 94 this.className = className; 95 } 96 97 @Override 98 public String toString() { 99 return "JpaEntityListener:" + className; 100 } 101 } 102 | Popular Tags |