📄 oracle.jdbc.driver.clientdatasupport.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><!--NewPage--><html><head><!-- Generated by javadoc on Thu Dec 02 03:30:11 PST 1999 --><title> Interface oracle.jdbc.driver.ClientDataSupport</title></head><body><a name="_top_"></a><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-oracle.jdbc.driver.html">This Package</a> <a href="Package-oracle.jdbc.driver.html">Previous</a> <a href="oracle.jdbc.driver.OracleResultSetCache.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Interface oracle.jdbc.driver.ClientDataSupport</h1><dl> <dt> public interface <b>ClientDataSupport</b></dl>An object that supports storing and retrieving client data objects usingassociated keys. It serves as a convenience for caching client data.<p>The objects used as keys must provide a deterministic implementation ofthe <code>hashCode</code> and <code>equals</code> methods.<p>Objects implementing ClientDataSupport treat the client data valuesand keys as opaque objects. Accordingly, the values and keys stored donot affect the ClientDataSupport object's definition of the<code>hashCode</code> or <code>equals</code> methods. <p>As this service is provided by the implementor purely as aconvenience to the client, the implementor does not guarantee that themappings are retained. In particular the mappings are not persistent andwill be empty after deserialization or in a new clone. The implementormay silently release the mappings for other reasons as well, e.g. toreclaim storage.<p><hr><a name="index"></a><h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getClientData(java.lang.Object)"><b>getClientData</b></a>(Object) <dd> Returns the client data value mapped to the specified key. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#removeClientData(java.lang.Object)"><b>removeClientData</b></a>(Object) <dd> Removes the specified key and any associated client data. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setClientData(java.lang.Object, java.lang.Object)"><b>setClientData</b></a>(Object, Object) <dd> Maps the specified client data value to the specified key.</dl><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="getClientData(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getClientData"><b>getClientData</b></a><pre> public abstract Object getClientData(Object key)</pre><dl> <dd> Returns the client data value mapped to the specified key.Returns null if the key is not mapped to any value.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> keykey - whose associated value is to be returned. <dt> <b>Returns:</b> <dd> the value mapped to the specified key, or null if there is nomapping for this key. <dt> <b>Throws:</b> NullPointerException <dd> if the specified key is null. </dl></dd></dl><a name="setClientData(java.lang.Object, java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setClientData"><b>setClientData</b></a><pre> public abstract Object setClientData(Object key, Object value)</pre><dl> <dd> Maps the specified client data value to the specified key. Neitherthe key nor the value can be null. If there is an existing mappingfor this key, the old value is replaced.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> keykey - with which the specified client data value is to be associated. <dd> valueclient - data value to be associated with the specified key. <dt> <b>Returns:</b> <dd> previous client data value associated with specified key, or null if there was no previous association. <dt> <b>Throws:</b> NullPointerException <dd> if the specified key or value is null. </dl></dd></dl><a name="removeClientData(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="removeClientData"><b>removeClientData</b></a><pre> public abstract Object removeClientData(Object key)</pre><dl> <dd> Removes the specified key and any associated client data.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> keykey - which is to be removed along with its associated value <dt> <b>Returns:</b> <dd> previous client data value associated with specified key,or null if there was no previous association. <dt> <b>Throws:</b> NullPointerException <dd> if the specified key is null. </dl></dd></dl><hr><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-oracle.jdbc.driver.html">This Package</a> <a href="Package-oracle.jdbc.driver.html">Previous</a> <a href="oracle.jdbc.driver.OracleResultSetCache.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -