Uses of Interface
java.sql.Connection
Packages that useConnection
Package
Description
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
Provides the API for server side data source access and processing from the Java programming language.
Standard interfaces and base classes for JDBC
RowSet implementations.Uses ofConnection injava.sql
Methods injava.sql that returnConnectionModifier and TypeMethodDescriptionConnectionBuilder.build()Returns an instance of the object defined by this builder.Driver.connect(String url,Properties info) Attempts to make a database connection to the given URL.DatabaseMetaData.getConnection()Retrieves the connection that produced this metadata object.staticConnectionDriverManager.getConnection(String url) Attempts to establish a connection to the given database URL.staticConnectionDriverManager.getConnection(String url,String user,String password) Attempts to establish a connection to the given database URL.staticConnectionDriverManager.getConnection(String url,Properties info) Attempts to establish a connection to the given database URL.Statement.getConnection()Retrieves theConnectionobject that produced thisStatementobject.Uses ofConnection injavax.sql
Methods injavax.sql that returnConnectionModifier and TypeMethodDescriptionDataSource.getConnection()Attempts to establish a connection with the data source that thisDataSourceobject represents.DataSource.getConnection(String username,String password) Attempts to establish a connection with the data source that thisDataSourceobject represents.PooledConnection.getConnection()Creates and returns aConnectionobject that is a handle for the physical connection that thisPooledConnectionobject represents.RowSetInternal.getConnection()Retrieves theConnectionobject that was passed to thisRowSetobject.Uses ofConnection injavax.sql.rowset
Methods injavax.sql.rowset with parameters of typeConnectionModifier and TypeMethodDescriptionvoidCachedRowSet.acceptChanges(Connection con) Propagates all row update, insert and delete changes to the data source backing thisCachedRowSetobject using the specifiedConnectionobject to establish a connection to the data source.voidCachedRowSet.execute(Connection conn) Populates thisCachedRowSetobject with data, using the given connection to produce the result set from which the data will be read.