1 22 package org.jboss.ejb; 23 24 25 import javax.transaction.Transaction ; 26 27 import org.jboss.invocation.Invocation; 28 29 49 public interface BeanLock 50 { 51 56 public Object getId(); 57 58 63 public void setId(Object id); 64 65 68 public void setTimeout(int timeout); 69 70 73 public void setContainer(Container container); 74 77 public void sync(); 78 79 82 public void releaseSync(); 83 84 91 public void schedule(Invocation mi) 92 throws Exception ; 93 94 100 public void setTransaction(Transaction tx); 101 102 109 public Transaction getTransaction(); 110 111 116 public void endTransaction(Transaction tx); 117 118 126 public void wontSynchronize(Transaction tx); 127 128 132 public void endInvocation(Invocation mi); 133 134 137 public void addRef(); 138 139 142 public void removeRef(); 143 144 149 public int getRefs(); 150 } 151 | Popular Tags |