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

Print this page




 125         if (fields != null) {
 126             Class<?> c = this.obj.getClass();
 127             return c.getFields();
 128         } else {
 129             throw new SerialException("SerialJavaObject does not contain" +
 130                 " a serialized object instance");
 131         }
 132     }
 133 
 134     /**
 135          * The identifier that assists in the serialization of this
 136      * <code>SerialJavaObject</code> object.
 137      */
 138     static final long serialVersionUID = -1465795139032831023L;
 139 
 140     /**
 141      * A container for the warnings issued on this <code>SerialJavaObject</code>
 142      * object. When there are multiple warnings, each warning is chained to the
 143      * previous warning.
 144      */
 145     java.util.Vector chain;
 146 
 147     /**
 148      * Registers the given warning.
 149      */
 150     private void setWarning(RowSetWarning e) {
 151         if (chain == null) {
 152             chain = new java.util.Vector();
 153         }
 154         chain.add(e);
 155     }
 156 }


 125         if (fields != null) {
 126             Class<?> c = this.obj.getClass();
 127             return c.getFields();
 128         } else {
 129             throw new SerialException("SerialJavaObject does not contain" +
 130                 " a serialized object instance");
 131         }
 132     }
 133 
 134     /**
 135          * The identifier that assists in the serialization of this
 136      * <code>SerialJavaObject</code> object.
 137      */
 138     static final long serialVersionUID = -1465795139032831023L;
 139 
 140     /**
 141      * A container for the warnings issued on this <code>SerialJavaObject</code>
 142      * object. When there are multiple warnings, each warning is chained to the
 143      * previous warning.
 144      */
 145     java.util.Vector<RowSetWarning> chain;
 146 
 147     /**
 148      * Registers the given warning.
 149      */
 150     private void setWarning(RowSetWarning e) {
 151         if (chain == null) {
 152             chain = new java.util.Vector<RowSetWarning>();
 153         }
 154         chain.add(e);
 155     }
 156 }