KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cayenne > jpa > map > JpaEntityListener


1 /*****************************************************************
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  ****************************************************************/

19
20 package org.apache.cayenne.jpa.map;
21
22 public class JpaEntityListener {
23
24     protected String JavaDoc 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 JavaDoc getClassName() {
90         return className;
91     }
92
93     public void setClassName(String JavaDoc className) {
94         this.className = className;
95     }
96
97     @Override JavaDoc
98     public String JavaDoc toString() {
99         return "JpaEntityListener:" + className;
100     }
101 }
102
Popular Tags