Uses of Interface
java.sql.Connection
Packages that use Connection
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 of Connection in java.sql
Methods in java.sql that return ConnectionModifier 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.static ConnectionDriverManager.getConnection(String url) Attempts to establish a connection to the given database URL.static ConnectionDriverManager.getConnection(String url, String user, String password) Attempts to establish a connection to the given database URL.static ConnectionDriverManager.getConnection(String url, Properties info) Attempts to establish a connection to the given database URL.Statement.getConnection()Retrieves theConnectionobject that produced thisStatementobject. -
Uses of Connection in javax.sql
Methods in javax.sql that return ConnectionModifier 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 of Connection in javax.sql.rowset
Methods in javax.sql.rowset with parameters of type ConnectionModifier 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.