1 28 29 package com.caucho.ejb.hessian; 30 31 import javax.ejb.EJBHome ; 32 import javax.ejb.EJBMetaData ; 33 import javax.ejb.Handle ; 34 import javax.ejb.HomeHandle ; 35 import javax.ejb.RemoveException ; 36 import java.rmi.RemoteException ; 37 38 41 abstract public class HomeStub extends HessianStub implements EJBHome { 42 private transient EJBMetaData _metaData; 43 44 abstract public String getHessianType(); 45 46 49 public HomeHandle getHomeHandle() throws RemoteException 50 { 51 return _client.getHomeHandle(); 52 } 53 54 public EJBMetaData getEJBMetaData() throws RemoteException 55 { 56 if (_metaData == null) 57 _metaData = _ejb_getEJBMetaData(); 58 59 return _metaData; 60 } 61 62 67 public void remove(Handle handle) throws RemoteException , RemoveException 68 { 69 _ejb_remove(handle); 70 } 71 72 77 public void remove(Object publicKey) throws RemoteException , RemoveException 78 { 79 _ejb_remove(publicKey); 80 } 81 82 protected EJBMetaData _ejb_getEJBMetaData() throws RemoteException 83 { 84 throw new UnsupportedOperationException (); 85 } 86 87 protected void _ejb_remove(Handle handle) 88 throws RemoteException , RemoveException 89 { 90 throw new UnsupportedOperationException (); 91 } 92 93 protected void _ejb_remove(Object primaryKey) 94 throws RemoteException , RemoveException 95 { 96 throw new UnsupportedOperationException (); 97 } 98 } 99 | Popular Tags |