Class JdbcRef
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
JdbcRef
Un Ref
JDBC. Pour en savoir plus sur cette classe, consultez java.sql.Ref
.
Documentation détaillée
setObject(object)
Pour en savoir plus sur cette méthode, consultez
java.sql.Ref#setObject(Object)
.
Paramètres
Nom | Type | Description |
object | Object | Objet à définir comme cible de référence. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (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. |"]]