src/share/classes/javax/sql/rowset/serial/SQLOutputImpl.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -574,10 +574,11 @@
if (url == null) {
attribs.add(null);
} else {
attribs.add(new SerialDatalink(url));
}
+
}
/**
* Writes the next attribute to the stream as a <code>String</code>
@@ -592,11 +593,11 @@
* @exception SQLException if a database access error occurs
* @since 1.6
*/
@SuppressWarnings("unchecked")
public void writeNString(String x) throws SQLException {
- throw new UnsupportedOperationException("Operation not supported");
+ attribs.add(x);
}
/**
* Writes an SQL <code>NCLOB</code> value to the stream.
*
@@ -606,11 +607,11 @@
* @exception SQLException if a database access error occurs
* @since 1.6
*/
@SuppressWarnings("unchecked")
public void writeNClob(NClob x) throws SQLException {
- throw new UnsupportedOperationException("Operation not supported");
+ attribs.add(x);
}
/**
* Writes an SQL <code>ROWID</code> value to the stream.
@@ -621,11 +622,11 @@
* @exception SQLException if a database access error occurs
* @since 1.6
*/
@SuppressWarnings("unchecked")
public void writeRowId(RowId x) throws SQLException {
- throw new UnsupportedOperationException("Operation not supported");
+ attribs.add(x);
}
/**
* Writes an SQL <code>XML</code> value to the stream.
@@ -636,9 +637,9 @@
* @exception SQLException if a database access error occurs
* @since 1.6
*/
@SuppressWarnings("unchecked")
public void writeSQLXML(SQLXML x) throws SQLException {
- throw new UnsupportedOperationException("Operation not supported");
+ attribs.add(x);
}
}