Interface ConnectionCreator
- All Known Implementing Classes:
BasicConnectionCreator,DriverConnectionCreator,DriverManagerConnectionCreator
public interface ConnectionCreator
Contract for creating JDBC connections on demand.
-
Method Summary
Modifier and TypeMethodDescriptionCreate aConnectiongetUrl()Obtain the URL to which this creator connects.
-
Method Details
-
getUrl
String getUrl()Obtain the URL to which this creator connects. Intended just for informational (logging) purposes.- Returns:
- The connection URL.
-
createConnection
Connection createConnection()Create aConnection- Returns:
- The newly-created
Connection
-