01: /*
02: * User: mrettig
03: * Date: Aug 6, 2002
04: * Time: 4:09:48 PM
05: */
06: package net.sourceforge.jaxor.api;
07:
08: import net.sourceforge.jaxor.EntityRow;
09: import net.sourceforge.jaxor.MetaRow;
10: import net.sourceforge.jaxor.PrimaryKeySet;
11:
12: public interface EntityInterface extends java.io.Serializable {
13:
14: void insert();
15:
16: void update();
17:
18: void delete();
19:
20: void registerDelete();
21:
22: /**
23: * This will delete all linked foreign entites too
24: */
25: void registerCascadingDelete();
26:
27: PrimaryKeySet getPrimaryKeySet();
28:
29: EntityRow getFields();
30:
31: void setFields(EntityRow row);
32:
33: void validate();
34:
35: Class getImplementationClass();
36:
37: void setJaxorContext(JaxorContext conn);
38:
39: JaxorContext getJaxorContext();
40:
41: /**
42: * Register is called to initialize the object to an updateable status. It is called after each load.
43: */
44: void registerLoad();
45:
46: void registerChange();
47:
48: void unregister();
49:
50: void setMetaRow(MetaRow meta);
51:
52: MetaRow getMetaRow();
53:
54: }
|