|
|||||||||
| Home >> All >> java >> [ sql overview ] | PREV NEXT | ||||||||
Uses of Interface
java.sql.Connection
| Uses of Connection in java.sql |
| Methods in java.sql that return Connection | |
Connection |
Statement.getConnection()
This method returns the Connection instance that was
used to create this object. |
static Connection |
DriverManager.getConnection(java.lang.String url,
java.util.Properties properties)
This method attempts to return a connection to the specified JDBC URL string using the specified connection properties. |
static Connection |
DriverManager.getConnection(java.lang.String url,
java.lang.String user,
java.lang.String password)
This method attempts to return a connection to the specified JDBC URL string using the specified username and password. |
static Connection |
DriverManager.getConnection(java.lang.String url)
This method attempts to return a connection to the specified JDBC URL string. |
Connection |
Driver.connect(java.lang.String url,
java.util.Properties properties)
This method connects to the specified database using the connection properties supplied. |
Connection |
DatabaseMetaData.getConnection()
This method returns the Connection object that was used
to generate the metadata in this object. |
|
|||||||||
| Home >> All >> java >> [ sql overview ] | PREV NEXT | ||||||||