Example usage for Java org.springframework.jdbc.datasource DriverManagerDataSource fields, constructors, methods, implement or subclass
The text is from its open source code.
DriverManagerDataSource() Constructor for bean-style configuration. | |
DriverManagerDataSource(String url, String username, String password) Create a new DriverManagerDataSource with the given standard DriverManager parameters. | |
DriverManagerDataSource(String url) Create a new DriverManagerDataSource with the given JDBC URL, not specifying a username or password for JDBC access. |
Connection | getConnection() This implementation delegates to getConnectionFromDriver , using the default username and password of this DataSource. |
String | getUrl() Return the JDBC URL to use for connecting through the Driver. |
String | getUsername() Return the JDBC username to use for connecting through the Driver. |
void | setConnectionProperties(@Nullable Properties connectionProperties) Specify arbitrary connection properties as key/value pairs, to be passed to the Driver. |
void | setDriverClassName(String driverClassName) Set the JDBC driver class name. |
void | setPassword(@Nullable String password) Set the JDBC password to use for connecting through the Driver. |
void | setSchema(@Nullable String schema) Specify a database schema to be applied to each Connection. |
void | setUrl(@Nullable String url) Set the JDBC URL to use for connecting through the Driver. |
void | setUsername(@Nullable String username) Set the JDBC username to use for connecting through the Driver. |
String | toString() Returns a string representation of the object. |