01: /*
02: * User: Michael Rettig
03: * Date: Sep 9, 2002
04: * Time: 10:24:23 PM
05: */
06: package net.sourceforge.jaxor.example.simple;
07:
08: import net.sourceforge.jaxor.AbstractEntity;
09: import net.sourceforge.jaxor.api.LifeCycleListener;
10:
11: public abstract class AthleteBase extends AbstractEntity implements
12: Player, LifeCycleListener {
13: public void beforeInsert() {
14: }
15:
16: public void beforeCreate() {
17: }
18:
19: public void afterCreate() {
20: PlayerLookupFinderBase playerFinderBase = new PlayerLookupFinderBase(
21: getJaxorContext());
22: PlayerLookupEntity ent = playerFinderBase
23: .newInstance(getPlayerId());
24: ent.setTable(getFields().getTable());
25: }
26:
27: public void afterLoad() {
28: }
29:
30: public void afterInsert() {
31: }
32:
33: public void beforeUpdate() {
34: }
35:
36: public void afterUpdate() {
37: }
38:
39: public void beforeDelete() {
40: }
41: }
|