src/share/classes/javax/sql/rowset/serial/SerialDatalink.java

Print this page




  59 
  60     /**
  61      * The SQL type of the elements in this <code>SerialDatalink</code>
  62      * object.  The type is expressed as one of the contants from the
  63      * class <code>java.sql.Types</code>.
  64      * @serial
  65      */
  66     private int baseType;
  67 
  68     /**
  69      * The type name used by the DBMS for the elements in the SQL
  70      * <code>DATALINK</code> value that this SerialDatalink object
  71      * represents.
  72      * @serial
  73      */
  74     private String baseTypeName;
  75 
  76     /**
  77       * Constructs a new <code>SerialDatalink</code> object from the given
  78       * <code>java.net.URL</code> object.
  79       * <P>
  80       * @param url the {@code URL} to create the {@code SerialDataLink} from
  81       * @throws SerialException if url parameter is a null
  82       */
  83     public SerialDatalink(URL url) throws SerialException {
  84         if (url == null) {
  85             throw new SerialException("Cannot serialize empty URL instance");
  86         }
  87         this.url = url;
  88     }
  89 
  90     /**
  91      * Returns a new URL that is a copy of this <code>SerialDatalink</code>
  92      * object.
  93      *
  94      * @return a copy of this <code>SerialDatalink</code> object as a
  95      * <code>URL</code> object in the Java programming language.
  96      * @throws SerialException if the <code>URL</code> object cannot be de-serialized
  97      */
  98     public URL getDatalink() throws SerialException {
  99 




  59 
  60     /**
  61      * The SQL type of the elements in this <code>SerialDatalink</code>
  62      * object.  The type is expressed as one of the contants from the
  63      * class <code>java.sql.Types</code>.
  64      * @serial
  65      */
  66     private int baseType;
  67 
  68     /**
  69      * The type name used by the DBMS for the elements in the SQL
  70      * <code>DATALINK</code> value that this SerialDatalink object
  71      * represents.
  72      * @serial
  73      */
  74     private String baseTypeName;
  75 
  76     /**
  77       * Constructs a new <code>SerialDatalink</code> object from the given
  78       * <code>java.net.URL</code> object.
  79       *
  80       * @param url the {@code URL} to create the {@code SerialDataLink} from
  81       * @throws SerialException if url parameter is a null
  82       */
  83     public SerialDatalink(URL url) throws SerialException {
  84         if (url == null) {
  85             throw new SerialException("Cannot serialize empty URL instance");
  86         }
  87         this.url = url;
  88     }
  89 
  90     /**
  91      * Returns a new URL that is a copy of this <code>SerialDatalink</code>
  92      * object.
  93      *
  94      * @return a copy of this <code>SerialDatalink</code> object as a
  95      * <code>URL</code> object in the Java programming language.
  96      * @throws SerialException if the <code>URL</code> object cannot be de-serialized
  97      */
  98     public URL getDatalink() throws SerialException {
  99