KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > resource > cci > Connection

javax.resource.cci
Interface Connection

See Also:
Top Examples, Source Code, ConnectionFactory, Interaction

public void close()
           throws ResourceException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[346]Creates the Connection with the given ManagedConnection and DirContext
By Balendran M on 2003/08/14 02:38:10  Rate
/** The underlying ManagedConnection instance*/ 
     private ManagedConnectionImpl mc = null; 
  
  
     /** The underlying DirContext this class wraps */ 
     private DirContext ctx = null; 
  
  
     /** 
      * Creates the Connection with the given ManagedConnection and DirContext. 
      * 
      * @param mc ManagedConnectionImpl instance 
      * 
      * @param ctx DirContext instance 
      */
 
     public ConnectionImpl ( ManagedConnectionImpl mc, DirContext ctx )   {  
         this.mc = mc; 
         this.ctx = ctx; 
      }  
  
  
     /** 
      * Closes the connection handle at the application level. 
      * 
      * @throws ResourceException 
      */
 
     public void close (  )  throws ResourceException  {  
         ctx = null; 
         mc.removeConnection ( this ) ; 
      } 


public Interaction createInteraction()
                              throws ResourceException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[347]Creates an Interaction associated with a ManagedConnection
By Balendran M on 2003/08/14 02:40:17  Rate
/** The underlying ManagedConnection instance*/ 
     private ManagedConnectionImpl mc = null; 
  
  
     /** The underlying DirContext this class wraps */ 
     private DirContext ctx = null; 
  
  
     /** 
      * Creates the Connection with the given ManagedConnection and DirContext. 
      * 
      * @param mc ManagedConnectionImpl instance 
      * 
      * @param ctx DirContext instance 
      */
 
     public ConnectionImpl ( ManagedConnectionImpl mc, DirContext ctx )   {  
         this.mc = mc; 
         this.ctx = ctx; 
      }  
  
  
     /** 
      * Creates an Interaction associated with this Connection. 
      * 
      * @return Interaction instance 
      */
 
     public Interaction createInteraction (  )  throws ResourceException  {  
         InteractionImpl interaction = new InteractionImpl ( this ) ; 
         return interaction; 
      } 


public LocalTransaction getLocalTransaction()
                                     throws ResourceException
See Also:
NotSupportedException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ConnectionMetaData getMetaData()
                               throws ResourceException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ResultSetInfo getResultSetInfo()
                               throws ResourceException
See Also:
NotSupportedException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags