JavaTM 2 Platform
Std. Ed. v1.4.2

Uses of Interface
java.sql.Connection

Packages that use Connection
java.sql Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language. 
javax.sql Provides the API for server side data source access and processing from the JavaTM programming language. 
 

Uses of Connection in java.sql
 

Methods in java.sql that return Connection
static Connection DriverManager.getConnection(String url, Properties info)
          Attempts to establish a connection to the given database URL.
static Connection DriverManager.getConnection(String url, String user, String password)
          Attempts to establish a connection to the given database URL.
static Connection DriverManager.getConnection(String url)
          Attempts to establish a connection to the given database URL.
 Connection Driver.connect(String url, Properties info)
          Attempts to make a database connection to the given URL.
 Connection DatabaseMetaData.getConnection()
          Retrieves the connection that produced this metadata object.
 Connection Statement.getConnection()
          Retrieves the Connection object that produced this Statement object.
 

Uses of Connection in javax.sql
 

Methods in javax.sql that return Connection
 Connection RowSetInternal.getConnection()
          Retrieves the Connection object that was passed to this RowSet object.
 Connection DataSource.getConnection()
          Attempts to establish a connection with the data source that this DataSource object represents.
 Connection DataSource.getConnection(String username, String password)
          Attempts to establish a connection with the data source that this DataSource object represents.
 Connection PooledConnection.getConnection()
          Creates and returns a Connection object that is a handle for the physical connection that this PooledConnection object represents.
 


JavaTM 2 Platform
Std. Ed. v1.4.2

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 2003, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.