JavaScript is disabled on your browser.
 
JavaScript is disabled on your browser.
 
 
  
 
 
 
 
Packages that use Connection    
Package 
Description 
 
java.sql 
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java™ programming language.
 
 
javax.sql 
Provides the API for server side data source access and processing from
the Java™ programming language.
 
 
javax.sql.rowset 
Standard interfaces and base classes for JDBC RowSet
implementations.
 
 
 
 
 
 
Methods in javax.sql  that return Connection    
Modifier and Type 
Method 
Description 
 
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.
 
 
Connection RowSetInternal. getConnection 
Retrieves the Connection object that was passed to this
 RowSet object.
 
 
 
 
 
Methods in javax.sql.rowset  with parameters of type Connection    
Modifier and Type 
Method 
Description 
 
voidCachedRowSet. acceptChanges Connection  con)
Propagates all row update, insert and delete changes to the
 data source backing this CachedRowSet object
 using the specified Connection object to establish a
 connection to the data source.
 
 
voidCachedRowSet. execute Connection  conn)
Populates this CachedRowSet object with data, using the
 given connection to produce the result set from which the data will be read.
 
 
 
 
 
 
 
 
 
JavaScript is disabled on your browser.
 
 
  
 
Report a bug or suggest an enhancement Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.Copyright  © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.license terms  and the documentation redistribution policy . 
 
Scripting on this page tracks web page traffic, but does not change the content in any way.