jdk/test/javax/sql/testng/util/StubSQLXML.java
author sundar
Mon, 16 May 2016 14:50:43 +0530
changeset 37951 ce2744a0f1a7
parent 27490 271c130f59b7
permissions -rw-r--r--
8156914: jlink API minor cleanups Reviewed-by: mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27490
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
     1
/*
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
     4
 *
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
     7
 * published by the Free Software Foundation.
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
     8
 *
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    13
 * accompanied this code).
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    14
 *
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    18
 *
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    21
 * questions.
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    22
 */
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    23
package util;
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    24
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    25
import java.io.InputStream;
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    26
import java.io.OutputStream;
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    27
import java.io.Reader;
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    28
import java.io.Writer;
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    29
import java.sql.SQLException;
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    30
import java.sql.SQLXML;
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    31
import javax.xml.transform.Result;
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    32
import javax.xml.transform.Source;
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    33
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    34
public class StubSQLXML implements SQLXML{
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    35
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    36
    @Override
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    37
    public void free() throws SQLException {
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    38
        throw new UnsupportedOperationException("Not supported yet.");
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    39
    }
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    40
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    41
    @Override
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    42
    public InputStream getBinaryStream() throws SQLException {
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    43
        throw new UnsupportedOperationException("Not supported yet.");
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    44
    }
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    45
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    46
    @Override
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    47
    public OutputStream setBinaryStream() throws SQLException {
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    48
        throw new UnsupportedOperationException("Not supported yet.");
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    49
    }
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    50
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    51
    @Override
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    52
    public Reader getCharacterStream() throws SQLException {
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    53
        throw new UnsupportedOperationException("Not supported yet.");
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    54
    }
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    55
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    56
    @Override
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    57
    public Writer setCharacterStream() throws SQLException {
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    58
        throw new UnsupportedOperationException("Not supported yet.");
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    59
    }
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    60
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    61
    @Override
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    62
    public String getString() throws SQLException {
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    63
        throw new UnsupportedOperationException("Not supported yet.");
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    64
    }
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    65
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    66
    @Override
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    67
    public void setString(String value) throws SQLException {
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    68
        throw new UnsupportedOperationException("Not supported yet.");
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    69
    }
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    70
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    71
    @Override
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    72
    public <T extends Source> T getSource(Class<T> sourceClass) throws SQLException {
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    73
        throw new UnsupportedOperationException("Not supported yet.");
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    74
    }
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    75
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    76
    @Override
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    77
    public <T extends Result> T setResult(Class<T> resultClass) throws SQLException {
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    78
        throw new UnsupportedOperationException("Not supported yet.");
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    79
    }
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    80
271c130f59b7 8064356: Add BaseRowSet, SQLInputImpl, and SQLOutputImpl tests
lancea
parents:
diff changeset
    81
}