Class JdbcRef
Stay organized with collections
Save and categorize content based on your preferences.
JdbcRef
A JDBC Ref
. For documentation of this class, see java.sql.Ref
.
Detailed documentation
setObject(object)
For documentation of this method, see
java.sql.Ref#setObject(Object)
.
Parameters
Name | Type | Description |
object | Object | The object to set as the refernence target. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["\u003cp\u003e\u003ccode\u003eJdbcRef\u003c/code\u003e is a JDBC representation of an SQL \u003ccode\u003eREF\u003c/code\u003e, providing methods to interact with SQL structured types.\u003c/p\u003e\n"],["\u003cp\u003eIt allows retrieval of the SQL type name (\u003ccode\u003egetBaseTypeName()\u003c/code\u003e) and the referenced object (\u003ccode\u003egetObject()\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eJdbcRef\u003c/code\u003e also enables updating the referenced object using \u003ccode\u003esetObject(Object)\u003c/code\u003e.\u003c/p\u003e\n"]]],["JdbcRef, a JDBC `Ref`, offers methods to manage SQL references. `getBaseTypeName()` retrieves the fully-qualified SQL name of the referenced type. `getObject()` returns the object that the `JdbcRef` points to. `setObject(object)` allows setting a new object as the reference target. Each method's detailed functionality mirrors the specifications found in the `java.sql.Ref` documentation, as outlined in the provided links.\n"],null,["# Class JdbcRef\n\nJdbcRef\n\nA JDBC `Ref`. For documentation of this class, see [`java.sql.Ref`](https://docs.oracle.com/javase/6/docs/api/java/sql/Ref.html). \n\n### Methods\n\n| Method | Return type | Brief description |\n|-----------------------------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getBaseTypeName()](#getBaseTypeName()) | `String` | For documentation of this method, see [` java.sql.Ref#getBaseTypeName()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Ref.html#getBaseTypeName()). |\n| [getObject()](#getObject()) | `Object` | For documentation of this method, see [` java.sql.Ref#getObject()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Ref.html#getObject()). |\n| [setObject(object)](#setObject(Object)) | `void` | For documentation of this method, see [`java.sql.Ref#setObject(Object)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Ref.html#setObject(java.lang.Object)). |\n\nDetailed documentation\n----------------------\n\n### `get``Base``Type``Name()`\n\nFor documentation of this method, see [`\njava.sql.Ref#getBaseTypeName()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Ref.html#getBaseTypeName()).\n\n#### Return\n\n\n`String` --- The fully-qualified SQL name of the SQL structured type this [JdbcRef](#)\nreferences.\n\n*** ** * ** ***\n\n### `get``Object()`\n\nFor documentation of this method, see [`\njava.sql.Ref#getObject()`](https://docs.oracle.com/javase/6/docs/api/java/sql/Ref.html#getObject()).\n\n#### Return\n\n\n`Object` --- The object that this [JdbcRef](#) references.\n\n*** ** * ** ***\n\n### `set``Object(object)`\n\nFor documentation of this method, see [`java.sql.Ref#setObject(Object)`](https://docs.oracle.com/javase/6/docs/api/java/sql/Ref.html#setObject(java.lang.Object)).\n\n#### Parameters\n\n| Name | Type | Description |\n|----------|----------|---------------------------------------------|\n| `object` | `Object` | The object to set as the refernence target. |"]]