public interface ClientInfoProvider
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called once by the driver when the connection this provider instance
belongs to is being closed.
|
Properties |
getClientInfo(Connection conn)
Returns the client info for the connection that this provider
instance belongs to.
|
String |
getClientInfo(Connection conn,
String name)
Returns the client info for the connection that this provider
instance belongs to.
|
void |
initialize(Connection conn,
Properties configurationProps)
Called once by the driver when it needs to configure the provider.
|
void |
setClientInfo(Connection conn,
Properties properties)
Sets the client info for the connection that this provider
instance belongs to.
|
void |
setClientInfo(Connection conn,
String name,
String value)
Sets the client info for the connection that this provider
instance belongs to.
|
void initialize(Connection conn, Properties configurationProps) throws SQLException
conn - the connection that the provider belongs too.configurationProps - a java.util.Properties instance that contains
configuration information for the connection.SQLException - if initialization fails.void destroy()
throws SQLException
SQLException - if an error occurs.Properties getClientInfo(Connection conn) throws SQLException
conn - connection objectSQLException - if an error occursConnection.getClientInfo()String getClientInfo(Connection conn, String name) throws SQLException
conn - connection objectname - property nameSQLException - if an error occursConnection.getClientInfo(java.lang.String)void setClientInfo(Connection conn, Properties properties) throws SQLClientInfoException
conn - connection objectproperties - Properties objectSQLClientInfoException - if an error occursConnection.setClientInfo(java.util.Properties)void setClientInfo(Connection conn, String name, String value) throws SQLClientInfoException
conn - connection objectname - property namevalue - property valueSQLClientInfoException - if an error occursConnection.setClientInfo(java.lang.String,java.lang.String)