1 23 24 package javax.resource.spi; 25 26 import javax.security.auth.Subject ; 27 import javax.transaction.xa.XAResource ; 28 import javax.resource.ResourceException ; 29 30 53 54 public interface ManagedConnection { 55 56 84 public 85 Object getConnection(Subject subject, 86 ConnectionRequestInfo cxRequestInfo) 87 throws ResourceException ; 88 89 100 101 public 102 void destroy() throws ResourceException ; 103 104 137 public 138 void cleanup() throws ResourceException ; 139 140 163 public 164 void associateConnection(Object connection) 165 throws ResourceException ; 166 167 168 169 178 public 179 void addConnectionEventListener(ConnectionEventListener listener); 180 181 187 public 188 void removeConnectionEventListener( 189 ConnectionEventListener listener); 190 191 204 public 205 XAResource getXAResource() throws ResourceException ; 206 207 218 public 219 LocalTransaction getLocalTransaction() throws ResourceException ; 220 221 231 public 232 ManagedConnectionMetaData getMetaData() throws ResourceException ; 233 234 254 public 255 void setLogWriter(java.io.PrintWriter out) throws ResourceException ; 256 257 275 public 276 java.io.PrintWriter getLogWriter() throws ResourceException ; 277 } 278 | Popular Tags |