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

  1. /*
  2.  * @(#)Struct.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.  * The Struct interface represents the default mapping for an SQL
  21.  * structured type.
  22.  */
  23.  
  24. public interface Struct extends SQLData {
  25.  
  26.   /**
  27.   *
  28.   * @returns the SQL Structured Type for which this is the
  29.   * generic representation.
  30.   */
  31.   SQLType getSQLType();
  32.  
  33.   /**
  34.   * The ordered values of the attributes of the SQL 
  35. áá* Structured Type. Use the type-map associated with the 
  36. áá* connection for customizations of the type-mappings.
  37.   *
  38.   * @return an array containing the ordered attribute values
  39.   */
  40.   Object[] getAttributes();
  41.  
  42.   /**
  43.   * The ordered values of the attributes of the SQL 
  44.   * Structured Type. Use the given @map for type-map 
  45. áá* customizations.
  46.   *
  47.   * @param map contains mapping of SQL user-defined types to 
  48. áá* classes
  49.   *
  50.   * @return an array containing the ordered attribute values
  51.   */
  52.   Object[] getAttributes(java.util.Map map); 
  53. }
  54.