| java.sql.Ref |
A manifestation of the SQL REF type - a reference to an SQL type contained in the database.
The SQL REF's are held in a table along with SQL structured types. Every REF has an individual identifier for each single instance. The SQL REF is used instead of the structured type it references.
A Ref object is stored into the database using the PreparedStatement.setRef method.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the fully-qualified SQL name of the SQL structured type that this
Ref references.
| |||||||||||
Gets the SQL structured type instance referenced by this Ref.
| |||||||||||
Returns the associated object and uses the relevant mapping to convert it
to a Java type.
| |||||||||||
Sets the value of the structured typethat this Ref references to a
supplied Object.
| |||||||||||
Gets the fully-qualified SQL name of the SQL structured type that this Ref references.
| SQLException | if there is a database error |
|---|
Gets the SQL structured type instance referenced by this Ref.
| SQLException | if there is a database error |
|---|
Returns the associated object and uses the relevant mapping to convert it to a Java type.
| map | a java.util.Map which contains the mapping to use |
|---|
| SQLException | if there is a database error |
|---|
Sets the value of the structured typethat this Ref references to a supplied Object.
| value | the Object representing the new SQL structured type that this Ref will reference. |
|---|
| SQLException | if there is a database error |
|---|