/*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.resource.adapter.jdbc.jdk6;
import java.io.InputStream;
import java.io.Reader;
import java.sql.NClob;
import java.sql.ResultSet;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
import org.jboss.resource.adapter.jdbc.WrappedResultSet;
import org.jboss.resource.adapter.jdbc.WrappedStatement;
/**
* WrappedResultSetJDK6.
*
* @author <a href="adrian@jboss.com">Adrian Brock</a>
* @version $Revision: 85945 $
*/
public class WrappedResultSetJDK6 extends WrappedResultSet
{
public WrappedResultSetJDK6(WrappedStatement statement, ResultSet resultSet)
{
super(statement, resultSet);
}
public int getHoldability() throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getHoldability();
}
catch (Throwable t)
{
throw checkException(t);
}
}
public Reader getNCharacterStream(int columnIndex) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getNCharacterStream(columnIndex);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public Reader getNCharacterStream(String columnLabel) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getNCharacterStream(columnLabel);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public NClob getNClob(int columnIndex) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getNClob(columnIndex);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public NClob getNClob(String columnLabel) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getNClob(columnLabel);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public String getNString(int columnIndex) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getNString(columnIndex);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public String getNString(String columnLabel) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getNString(columnLabel);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public RowId getRowId(int columnIndex) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getRowId(columnIndex);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public RowId getRowId(String columnLabel) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getRowId(columnLabel);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public SQLXML getSQLXML(int columnIndex) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getSQLXML(columnIndex);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public SQLXML getSQLXML(String columnLabel) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
return resultSet.getSQLXML(columnLabel);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public boolean isClosed() throws SQLException
{
ResultSet resultSet = getWrappedObject();
if (resultSet == null)
return true;
try
{
return resultSet.isClosed();
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateAsciiStream(columnIndex, x, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateAsciiStream(columnIndex, x);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateAsciiStream(columnLabel, x, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateAsciiStream(columnLabel, x);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateBinaryStream(columnIndex, x, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateBinaryStream(columnIndex, x);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateBinaryStream(columnLabel, x, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateBinaryStream(columnLabel, x);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateBlob(columnIndex, inputStream, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateBlob(columnIndex, inputStream);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateBlob(columnLabel, inputStream, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateBlob(columnLabel, inputStream);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateCharacterStream(columnIndex, x, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateCharacterStream(int columnIndex, Reader x) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateCharacterStream(columnIndex, x);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateCharacterStream(columnLabel, reader, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateCharacterStream(columnLabel, reader);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateClob(int columnIndex, Reader reader, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateClob(columnIndex, reader, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateClob(int columnIndex, Reader reader) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateClob(columnIndex, reader);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateClob(String columnLabel, Reader reader, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateClob(columnLabel, reader, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateClob(String columnLabel, Reader reader) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateClob(columnLabel, reader);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNCharacterStream(columnIndex, x, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNCharacterStream(columnIndex, x);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNCharacterStream(columnLabel, reader, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNCharacterStream(columnLabel, reader);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNClob(int columnIndex, NClob clob) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNClob(columnIndex, clob);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNClob(columnIndex, reader, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNClob(int columnIndex, Reader reader) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNClob(columnIndex, reader);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNClob(String columnLabel, NClob clob) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNClob(columnLabel, clob);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNClob(columnLabel, reader, length);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNClob(String columnLabel, Reader reader) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNClob(columnLabel, reader);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNString(int columnIndex, String string) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNString(columnIndex, string);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateNString(String columnLabel, String string) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateNString(columnLabel, string);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateRowId(int columnIndex, RowId x) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateRowId(columnIndex, x);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateRowId(String columnLabel, RowId x) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateRowId(columnLabel, x);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateSQLXML(columnIndex, xmlObject);
}
catch (Throwable t)
{
throw checkException(t);
}
}
public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException
{
ResultSet resultSet = getUnderlyingResultSet();
try
{
resultSet.updateSQLXML(columnLabel, xmlObject);
}
catch (Throwable t)
{
throw checkException(t);
}
}
}