home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / sql / StructLocator.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.3 KB  |  51 lines

  1. /*
  2.  * @(#)StructLocator.java    1.3 98/03/18
  3.  *
  4.  * Copyright 1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.sql;
  16.  
  17. /**
  18.  * JDBC 2.0
  19.  *
  20.  * <p>A StructLocator is a transaction duration reference to an array in the 
  21.  * DBMS server.
  22.  */
  23.  
  24. public interface StructLocator {
  25.  
  26.   /**
  27.   * Return the SQL type of the item designated by this locator.
  28.   *
  29.   * @returns object representing SQL type 
  30.   */
  31.   SQLType getBaseType();
  32.  
  33.   /**
  34.   * Materialize the Structured Type value designated by the locator.
  35.   * Use the type-map associated with the connection for customizations
  36.   * of the type mappings.
  37.   *  
  38.   * @return an object representing the item designated by the locator
  39.   */
  40.   Object getObject ();
  41.  
  42.   /**
  43.   * Materialize the Structured Type value designated by the locator.
  44.   * Use the given type-map for customizations of the type mappings.
  45.   *  
  46.   * @return an object representing the item designated by the locator
  47.   */
  48.   Object getObject (java.util.Map map);
  49.  
  50. }
  51.