Java org.springframework.jdbc.datasource SingleConnectionDataSource fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.jdbc.datasource SingleConnectionDataSource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.jdbc.datasource SingleConnectionDataSource.

The text is from its open source code.

Subclass

org.springframework.jdbc.datasource.SingleConnectionDataSource has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voiddestroy()
Close the underlying Connection.
ConnectiongetConnection()
voidinitConnection()
Initialize the underlying Connection via the DriverManager.
voidsetAutoCommit(boolean autoCommit)
Set whether the returned Connection's "autoCommit" setting should be overridden.
voidsetConnectionProperties(@Nullable Properties connectionProperties)
Specify arbitrary connection properties as key/value pairs, to be passed to the Driver.
voidsetDriverClassName(String driverClassName)
Set the JDBC driver class name.
voidsetPassword(@Nullable String password)
Set the JDBC password to use for connecting through the Driver.
voidsetSuppressClose(boolean suppressClose)
Set whether the returned Connection should be a close-suppressing proxy or the physical Connection.
voidsetUrl(@Nullable String url)
Set the JDBC URL to use for connecting through the Driver.
voidsetUsername(@Nullable String username)
Set the JDBC username to use for connecting through the Driver.