1. /*
  2. * @(#)Ref.java 1.13 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.sql;
  11. /**
  12. * The mapping in the Java programming language of an SQL <code>REF</code>
  13. * value, which is a reference to an
  14. * SQL structured type value in the database.
  15. * <P>
  16. * SQL <code>REF</code> values are stored in a special table that contains
  17. * instances of a referenceable SQL structured type, and each <code>REF</code>
  18. * value is a unique identifier for one instance in that table.
  19. * An SQL <code>REF</code> value may be used in place of the
  20. * SQL structured type it references; it may be used as either a column value in a
  21. * table or an attribute value in a structured type.
  22. * <P>
  23. * Because an SQL <code>REF</code> value is a logical pointer to an
  24. * SQL structured type, a <code>Ref</code> object is by default also a logical
  25. * pointer; thus, retrieving an SQL <code>REF</code> value as
  26. * a <code>Ref</code> object does not materialize
  27. * the attributes of the structured type on the client.
  28. * <P>
  29. * A <code>Ref</code> object can be saved to persistent storage and is dereferenced by
  30. * passing it as a parameter to an SQL statement and executing the
  31. * statement.
  32. * <P>
  33. * The <code>Ref</code> interface is new in the JDBC 2.0 API.
  34. * @see Struct
  35. *
  36. */
  37. public interface Ref {
  38. /**
  39. * Retrieves the fully-qualified SQL name of the SQL structured type that
  40. * this <code>Ref</code> object references.
  41. *
  42. * @return the fully-qualified SQL name of the referenced SQL structured type
  43. * @exception SQLException if a database access error occurs
  44. * @since 1.2
  45. * @see <a href="package-summary.html#2.0 API">What Is in the JDBC
  46. * 2.0 API</a>
  47. */
  48. String getBaseTypeName() throws SQLException;
  49. }