1 28 29 package com.caucho.ejb.session; 30 31 import com.caucho.ejb.AbstractEJBHome; 32 import com.caucho.ejb.AbstractServer; 33 import com.caucho.ejb.protocol.HomeSkeletonWrapper; 34 35 import javax.ejb.*; 36 import java.io.ObjectStreamException ; 37 import java.io.Serializable ; 38 39 42 abstract public class SessionHome extends AbstractEJBHome 43 implements EJBHome, EJBLocalHome, Serializable 44 { 45 protected final SessionServer _server; 46 47 protected SessionHome(SessionServer server) 48 { 49 _server = server; 50 } 51 52 55 public SessionServer getServer() 56 { 57 return _server; 58 } 59 60 63 public EJBMetaData getEJBMetaData() 64 { 65 return getServer().getEJBMetaData(); 66 } 67 68 71 public HomeHandle getHomeHandle() 72 { 73 return getServer().getHomeHandle(); 74 } 75 76 79 public Object getPrimaryKey() 80 { 81 return null; 82 } 83 84 87 public EJBObject getEJBObject() 88 { 89 return null; 90 } 91 92 95 public void remove(Handle handle) 96 throws RemoveException 97 { 98 getServer().remove(handle); 99 } 100 101 104 public void remove(Object primaryKey) 105 throws RemoveException 106 { 107 getServer().remove(primaryKey); 108 } 109 110 113 public AbstractServer __caucho_getServer() 114 { 115 return getServer(); 116 } 117 118 121 public String __caucho_getId() 122 { 123 return null; 124 } 125 126 131 public Object writeReplace() throws ObjectStreamException 132 { 133 return new HomeSkeletonWrapper(getHomeHandle()); 134 } 135 136 protected SessionObject _caucho_getStatelessObject() 137 { 138 return null; 139 } 140 } 141 142 143 | Popular Tags |