01: package net.sourceforge.jaxor.mappers;
02:
03: import net.sourceforge.jaxor.MetaField;
04: import net.sourceforge.jaxor.api.FieldLifeCycleListener;
05: import net.sourceforge.jaxor.api.JaxorContext;
06:
07: /**
08: * Created By: Mike
09: * Date: Nov 27, 2003
10: * Time: 9:15:07 PM
11: *
12: * Last Checkin: $Author: mrettig $
13: * Date: $Date: 2004/01/24 18:04:00 $
14: * Revision: $Revision: 1.5 $
15: */
16: public class UserFieldAdapter extends FieldAdapterImpl implements
17: FieldLifeCycleListener {
18:
19: public UserFieldAdapter(MetaField metaData, Object obj) {
20: super (metaData, obj);
21: }
22:
23: public void beforeInsert(JaxorContext context) {
24: setValue(context.getUser());
25: }
26:
27: public void beforeUpdate(JaxorContext context) {
28: setValue(context.getUser());
29: }
30:
31: public void beforeDelete(JaxorContext context) {
32: }
33: }
|