Exemplo n.º 1
0
 /**
  * Sets the SQL structured type that this <code>SerialRef</code> object references to the given
  * <code>Object</code> object.
  *
  * @param obj an <code>Object</code> representing the SQL structured type to be referenced
  * @throws SerialException if an error is encountered generating the the structured type
  *     referenced by this <code>SerialRef</code> object
  */
 public void setObject(Object obj) throws SerialException {
   try {
     reference.setObject(obj);
   } catch (SQLException e) {
     throw new SerialException("SQLException: " + e.getMessage());
   }
   object = obj;
 }