IT. Expert System.

Android Reference

Ref


java.sql

Interface Ref



  • public interface Ref
    This interface represents an SQL Ref - a data object containing a cursor or pointer to a result table.

    The data structure identified by an instance of Ref is held in the database, so the data is not necessarily read and converted into a Java object until getObject is called. However, if the database supports the Ref type, it is not typically necessary to get the underlying object before using it in a method call - the Ref object can be used in place of the data structure.

    A Ref object is stored into the database using the PreparedStatement.setRef(int, Ref) method.

    • Method Summary

      Methods
      Modifier and Type Method and Description
      String getBaseTypeName()
      Gets the fully-qualified SQL name of the SQL structured type that this Ref references.
      Object getObject()
      Gets the SQL structured type instance referenced by this Ref.
      Object getObject(Map<String,Class<?>> map)
      Returns the associated object and uses the relevant mapping to convert it to a Java type.
      void setObject(Object value)
      Sets the value of the structured type that this Ref references to a supplied object.
    • Method Detail

      • getBaseTypeName

        String getBaseTypeName()
                               throws SQLException
        Gets the fully-qualified SQL name of the SQL structured type that this Ref references.
        Returns:
        the fully qualified name of the SQL structured type.
        Throws:
        SQLException - if there is a database error.
      • getObject

        Object getObject()
                         throws SQLException
        Gets the SQL structured type instance referenced by this Ref.
        Returns:
        a Java object whose type is defined by the mapping for the SQL structured type.
        Throws:
        SQLException - if there is a database error.
      • getObject

        Object getObject(Map<String,Class<?>> map)
                         throws SQLException
        Returns the associated object and uses the relevant mapping to convert it to a Java type.
        Parameters:
        map - the mapping for type conversion.
        Returns:
        a Java object whose type is defined by the mapping for the SQL structured type.
        Throws:
        SQLException - if there is a database error.
      • setObject

        void setObject(Object value)
                       throws SQLException
        Sets the value of the structured type that this Ref references to a supplied object.
        Parameters:
        value - the Object representing the new SQL structured type that this Ref references.
        Throws:
        SQLException - if there is a database error.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1745 / . Delta: 0.03123 с