Uses of Interface
java.sql.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
Modifier 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 Connection
DriverManager.getConnection(String url)
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, Properties info)
Attempts to establish a connection to the given database URL.Statement.getConnection()
Retrieves theConnection
object that produced thisStatement
object. -
Uses of Connection in javax.sql
Modifier and TypeMethodDescriptionDataSource.getConnection()
Attempts to establish a connection with the data source that thisDataSource
object represents.DataSource.getConnection(String username, String password)
Attempts to establish a connection with the data source that thisDataSource
object represents.PooledConnection.getConnection()
Creates and returns aConnection
object that is a handle for the physical connection that thisPooledConnection
object represents.RowSetInternal.getConnection()
Retrieves theConnection
object that was passed to thisRowSet
object. -
Uses of Connection in javax.sql.rowset
Modifier and TypeMethodDescriptionvoid
CachedRowSet.acceptChanges(Connection con)
Propagates all row update, insert and delete changes to the data source backing thisCachedRowSet
object using the specifiedConnection
object to establish a connection to the data source.void
CachedRowSet.execute(Connection conn)
Populates thisCachedRowSet
object with data, using the given connection to produce the result set from which the data will be read.