1 23 24 package com.sun.ejb.containers; 25 26 27 import javax.ejb.*; 28 29 import com.sun.ejb.*; 30 31 36 public abstract class EJBLocalRemoteObject 37 { 38 protected static final boolean debug = false; 39 40 transient protected BaseContainer container; 41 transient protected Object primaryKey; 42 transient private boolean removed=false; 43 44 transient private SessionContextImpl context; 46 47 48 final void setContainer(Container container) 49 { 50 this.container = (BaseContainer)container; 51 } 52 53 60 61 protected final Container getContainer() 62 { 63 return container; 64 } 65 66 final Container _getContainerInternal() 67 { 68 return container; 69 } 70 71 final void setRemoved(boolean r) 72 { 73 removed = r; 74 } 75 76 final boolean isRemoved() 77 { 78 return removed; 79 } 80 81 final void setKey(Object key) 82 { 83 primaryKey = key; 84 } 85 86 final Object getKey() 87 { 88 return primaryKey; 89 } 90 91 final SessionContextImpl getContext() 93 { 94 return context; 95 } 96 97 final void setContext(SessionContextImpl ctx) 99 { 100 context = ctx; 101 } 102 103 final void clearContext() 105 { 106 context = null; 107 } 108 } 109 | Popular Tags |