java.lang.Objectcom.microfocus.cobol.connector.cci.CobolConnection
CobolConnection class represents an application level connection handle that is used by a component to access a Cobol Server instance.
Constructor Summary | |
protected |
CobolConnection(CobolManagedConnection mc)
Cobol Connection is obtained through a CobolConnection Factory. |
Method Summary | |
void |
activate()
|
protected void |
associateConnection(CobolManagedConnection newMc)
Associate a connection handle with a physical managed connection |
void |
close()
close the CobolConnection handle |
javax.resource.cci.Interaction |
createInteraction()
Create an interaction with the Cobol Server. |
void |
dispose()
dispose a cobol connection. |
javax.ejb.EJBContext |
getEJBContext()
Get the EJBContext |
javax.resource.cci.LocalTransaction |
getLocalTransaction()
Get the Local Transaction instance that needs to be used by the bean. |
protected CobolManagedConnection |
getManagedConnection()
Get the Managed Connection associated with this connection handle. |
ConnectionMetaData |
getMetaData()
Get Connection Meta data. |
ResultSetInfo |
getResultSetInfo()
Result Set is not supported |
protected void |
invalidate()
Invalidate a Managed Connection |
void |
passivate()
|
void |
resetLocalTransaction()
|
void |
resetXAFlow()
|
void |
setEJBContext(javax.ejb.EJBContext e)
Set the EJB context that the CobolConnection can later use to determine if the bean is stateful or stateless. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected CobolConnection(CobolManagedConnection mc)
mc
- The Managed Connection instance.Method Detail |
public void setEJBContext(javax.ejb.EJBContext e) throws RemoteException
e
- the EJBContext to be set
RemoteException
public javax.ejb.EJBContext getEJBContext()
public javax.resource.cci.Interaction createInteraction() throws ResourceException
ResourceException
CobolInteraction
public javax.resource.cci.LocalTransaction getLocalTransaction() throws ResourceException
ResourceException
CobolLocalTransaction
public ResultSetInfo getResultSetInfo() throws ResourceException
ResourceException
public void close() throws ResourceException
ResourceException
public ConnectionMetaData getMetaData() throws ResourceException
ResourceException
CobolConnectionMetaData
public void dispose() throws ResourceException
dispose
in interface MFCobolConnection
ResourceException
public void activate() throws ResourceException
activate
in interface MFCobolConnection
ResourceException
public void passivate() throws ResourceException
passivate
in interface MFCobolConnection
ResourceException
protected void associateConnection(CobolManagedConnection newMc) throws ResourceException
newMc
- The Managed connection instance.
ResourceException
protected void invalidate()
protected CobolManagedConnection getManagedConnection()
public void resetXAFlow()
resetXAFlow
in interface MFCobolConnection
public void resetLocalTransaction()
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.