01: package com.titan.phone;
02:
03: import javax.ejb.EntityContext;
04: import java.util.Date;
05: import javax.naming.InitialContext;
06: import javax.naming.NamingException;
07:
08: public abstract class PhoneBean implements javax.ejb.EntityBean {
09:
10: public Object ejbCreate(String number, byte type)
11: throws javax.ejb.CreateException {
12: setNumber(number);
13: setType(type);
14:
15: return null;
16: }
17:
18: public void ejbPostCreate(String number, byte type) {
19: }
20:
21: // persistent fields
22: public abstract String getNumber();
23:
24: public abstract void setNumber(String number);
25:
26: public abstract byte getType();
27:
28: public abstract void setType(byte type);
29:
30: // standard call back methods
31:
32: public void setEntityContext(EntityContext ec) {
33: }
34:
35: public void unsetEntityContext() {
36: }
37:
38: public void ejbLoad() {
39: }
40:
41: public void ejbStore() {
42: }
43:
44: public void ejbActivate() {
45: }
46:
47: public void ejbPassivate() {
48: }
49:
50: public void ejbRemove() throws javax.ejb.RemoveException {
51: }
52:
53: }
|