| Modifier and Type | Method and Description |
|---|---|
| public void | destroy()
Called once by the driver when the connection this provider instance belongs to is being closed. |
| public Properties | Returns: client info as Propertiesconnection object conn)Returns the client info for the connection that this provider instance belongs to. |
| public String | Returns: the client info by given property nameconnection object conn, String property name name)Returns the client info for the connection that this provider instance belongs to. |
| public void | initialize(Connection
the connection that the provider belongs too. conn, Properties a java.util.Properties instance that contains
configuration information for the connection. configurationProps)Called once by the driver when it needs to configure the provider. |
| public void | setClientInfo(Connection
connection object conn, Properties Properties object properties)Sets the client info for the connection that this provider instance belongs to. |
| public void | setClientInfo(Connection
connection object conn, String property name name, String property value value)Sets the client info for the connection that this provider instance belongs to. |
| destroy | back to summary |
|---|---|
| public void destroy() throws SQLException Called once by the driver when the connection this provider instance belongs to is being closed. Implementations are expected to clean up and resources at this point in time.
| |
| getClientInfo | back to summary |
|---|---|
| public Properties getClientInfo(Connection conn) throws SQLException Returns the client info for the connection that this provider instance belongs to. The connection instance is passed as an argument for convenience's sake. Providers can use the connection to communicate with the database, but it will be within the scope of any ongoing transactions, so therefore implementations should not attempt to change isolation level, autocommit settings or call rollback() or commit() on the connection.
| |
| getClientInfo | back to summary |
|---|---|
| public String getClientInfo(Connection conn, String name) throws SQLException Returns the client info for the connection that this provider instance belongs to. The connection instance is passed as an argument for convenience's sake. Providers can use the connection to communicate with the database, but it will be within the scope of any ongoing transactions, so therefore implementations should not attempt to change isolation level, autocommit settings or call rollback() or commit() on the connection.
| |
| initialize | back to summary |
|---|---|
| public void initialize(Connection conn, Properties configurationProps) throws SQLException Called once by the driver when it needs to configure the provider.
| |
| setClientInfo | back to summary |
|---|---|
| public void setClientInfo(Connection conn, Properties properties) throws SQLClientInfoException Sets the client info for the connection that this provider instance belongs to. The connection instance is passed as an argument for convenience's sake. Providers can use the connection to communicate with the database, but it will be within the scope of any ongoing transactions, so therefore implementations should not attempt to change isolation level, autocommit settings or call rollback() or commit() on the connection.
| |
| setClientInfo | back to summary |
|---|---|
| public void setClientInfo(Connection conn, String name, String value) throws SQLClientInfoException Sets the client info for the connection that this provider instance belongs to. The connection instance is passed as an argument for convenience's sake. Providers can use the connection to communicate with the database, but it will be within the scope of any ongoing transactions, so therefore implementations should not attempt to change isolation level, autocommit settings or call rollback() or commit() on the connection.
| |