| Modifier and Type | Field and Description |
|---|---|
| private Properties |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | destroy()
Implements com. Called once by the driver when the connection this provider instance belongs to is being closed. |
| public synchronized Properties | getClientInfo(Connection
connection object conn)Implements com. Returns the client info for the connection that this provider instance belongs to. |
| public synchronized String | getClientInfo(Connection
connection object conn, String property name name)Implements com. Returns the client info for the connection that this provider instance belongs to. |
| public synchronized 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)Implements com. Called once by the driver when it needs to configure the provider. |
| public synchronized void | setClientInfo(Connection
connection object conn, Properties Properties object properties)Implements com. Sets the client info for the connection that this provider instance belongs to. |
| public synchronized void | setClientInfo(Connection
connection object conn, String property name name, String property value value)Implements com. Sets the client info for the connection that this provider instance belongs to. |
| private synchronized void |
| clientInfo | back to summary |
|---|---|
| private Properties clientInfo | |
| CommentClientInfoProvider | back to summary |
|---|---|
| public CommentClientInfoProvider() | |
| destroy | back to summary |
|---|---|
| public synchronized void destroy() throws SQLException Implements com. Doc from com. 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 synchronized Properties getClientInfo(Connection conn) throws SQLException Implements com. Doc from com. 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 synchronized String getClientInfo(Connection conn, String name) throws SQLException Implements com. Doc from com. 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 synchronized void initialize(Connection conn, Properties configurationProps) throws SQLException Implements com. Doc from com. Called once by the driver when it needs to configure the provider.
| |
| setClientInfo | back to summary |
|---|---|
| public synchronized void setClientInfo(Connection conn, Properties properties) throws SQLClientInfoException Implements com. Doc from com. 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 synchronized void setClientInfo(Connection conn, String name, String value) throws SQLClientInfoException Implements com. Doc from com. 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.
| |
| setComment | back to summary |
|---|---|
| private synchronized void setComment(Connection conn) throws SQLClientInfoException | |