src/share/classes/javax/sql/rowset/serial/SQLOutputImpl.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2003, 2012, 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
--- 1,7 ----
/*
! * 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,583 ****
--- 574,584 ----
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,602 ****
* @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");
}
/**
* Writes an SQL <code>NCLOB</code> value to the stream.
*
--- 593,603 ----
* @exception SQLException if a database access error occurs
* @since 1.6
*/
@SuppressWarnings("unchecked")
public void writeNString(String x) throws SQLException {
! attribs.add(x);
}
/**
* Writes an SQL <code>NCLOB</code> value to the stream.
*
*** 606,616 ****
* @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");
}
/**
* Writes an SQL <code>ROWID</code> value to the stream.
--- 607,617 ----
* @exception SQLException if a database access error occurs
* @since 1.6
*/
@SuppressWarnings("unchecked")
public void writeNClob(NClob x) throws SQLException {
! attribs.add(x);
}
/**
* Writes an SQL <code>ROWID</code> value to the stream.
*** 621,631 ****
* @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");
}
/**
* Writes an SQL <code>XML</code> value to the stream.
--- 622,632 ----
* @exception SQLException if a database access error occurs
* @since 1.6
*/
@SuppressWarnings("unchecked")
public void writeRowId(RowId x) throws SQLException {
! attribs.add(x);
}
/**
* Writes an SQL <code>XML</code> value to the stream.
*** 636,644 ****
* @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");
}
}
--- 637,645 ----
* @exception SQLException if a database access error occurs
* @since 1.6
*/
@SuppressWarnings("unchecked")
public void writeSQLXML(SQLXML x) throws SQLException {
! attribs.add(x);
}
}