| java.lang.Object org.apache.ojb.otm.connector.OTMJCAManagedConnection
OTMJCAManagedConnection | public class OTMJCAManagedConnection implements ManagedConnection,LocalTransaction(Code) | | author: Matthew Baird |
addConnectionEventListener | public void addConnectionEventListener(ConnectionEventListener cel)(Code) | | |
associateConnection | public void associateConnection(Object connection)(Code) | | |
begin | public void begin() throws ResourceException(Code) | | |
cleanup | public void cleanup()(Code) | | |
commit | public void commit() throws ResourceException(Code) | | |
destroy | public void destroy()(Code) | | |
getConnection | OTMConnection getConnection()(Code) | | get the underlying wrapped connection
OTMConnection raw connection to the OTM. |
getConnection | public Object getConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo) throws ResourceException(Code) | | |
getLocalTransaction | public LocalTransaction getLocalTransaction()(Code) | | the OTMConnection is the transaction
|
getManagedConnectionFactory | ManagedConnectionFactory getManagedConnectionFactory()(Code) | | |
getMetaData | public ManagedConnectionMetaData getMetaData() throws ResourceException(Code) | | |
isDestroyed | boolean isDestroyed()(Code) | | |
removeConnectionEventListener | public void removeConnectionEventListener(ConnectionEventListener cel)(Code) | | |
rollback | public void rollback() throws ResourceException(Code) | | |
sendEvents | void sendEvents(int eventType, Exception ex, Object connectionHandle)(Code) | | Section 6.5.6 of the JCA 1.5 spec instructs ManagedConnection instances to notify connection listeners with
close/error and local transaction-related events to its registered set of listeners.
The events for begin/commit/rollback are only sent if the application server did NOT
initiate the actions.
This method dispatchs all events to the listeners based on the eventType
Parameters: eventType - as enumerated in the ConnectionEvents interface Parameters: ex - an optional exception if we are sending an error message Parameters: connectionHandle - an optional connectionHandle if we have access to it. |
|
|