Example usage for Java org.springframework.jdbc.datasource SingleConnectionDataSource fields, constructors, methods, implement or subclass
The text is from its open source code.
SingleConnectionDataSource(String url, String username, String password, boolean suppressClose) Create a new SingleConnectionDataSource with the given standard DriverManager parameters. | |
SingleConnectionDataSource() Constructor for bean-style configuration. | |
SingleConnectionDataSource(String url, boolean suppressClose) Create a new SingleConnectionDataSource with the given standard DriverManager parameters. | |
SingleConnectionDataSource(Connection target, boolean suppressClose) Create a new SingleConnectionDataSource with a given Connection. |
void | destroy() Close the underlying Connection. |
Connection | getConnection() |
void | initConnection() Initialize the underlying Connection via the DriverManager. |
void | setAutoCommit(boolean autoCommit) Set whether the returned Connection's "autoCommit" setting should be overridden. |
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 | setSuppressClose(boolean suppressClose) Set whether the returned Connection should be a close-suppressing proxy or the physical 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. |