src/java.sql.rowset/share/classes/com/sun/rowset/RowSetFactoryImpl.java
author stuefe
Thu, 28 Feb 2019 14:22:03 +0100
changeset 54011 21ea4076a275
parent 47216 71c04702a3d5
permissions -rw-r--r--
8219650: [Testbug] Fix potential crashes in new test hotspot gtest "test_print_hex_dump" Reviewed-by: clanger, shade
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
     1
/*
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
     2
 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
     4
 *
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    10
 *
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    15
 * accompanied this code).
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    16
 *
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    20
 *
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    23
 * questions.
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    24
 */
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    25
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    26
package com.sun.rowset;
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    27
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    28
import java.sql.SQLException;
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    29
import javax.sql.rowset.CachedRowSet;
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    30
import javax.sql.rowset.FilteredRowSet;
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    31
import javax.sql.rowset.JdbcRowSet;
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    32
import javax.sql.rowset.JoinRowSet;
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    33
import javax.sql.rowset.WebRowSet;
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    34
import javax.sql.rowset.RowSetFactory;
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    35
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    36
/**
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    37
 * This is the implementation specific class for the
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    38
 * <code>javax.sql.rowset.spi.RowSetFactory</code>. This is the platform
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    39
 * default implementation for the Java SE platform.
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    40
 *
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    41
 * @author Lance Andersen
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    42
 *
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    43
 *
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    44
 * @version 1.7
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    45
 */
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    46
public  final class RowSetFactoryImpl implements RowSetFactory {
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    47
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    48
    public CachedRowSet createCachedRowSet() throws SQLException {
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    49
        return new com.sun.rowset.CachedRowSetImpl();
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    50
    }
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    51
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    52
    public FilteredRowSet createFilteredRowSet() throws SQLException {
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    53
        return new com.sun.rowset.FilteredRowSetImpl();
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    54
    }
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    55
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    56
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    57
    public JdbcRowSet createJdbcRowSet() throws SQLException {
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    58
        return new com.sun.rowset.JdbcRowSetImpl();
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    59
    }
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    60
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    61
    public JoinRowSet createJoinRowSet() throws SQLException {
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    62
        return new com.sun.rowset.JoinRowSetImpl();
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    63
    }
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    64
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    65
    public WebRowSet createWebRowSet() throws SQLException {
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    66
        return new com.sun.rowset.WebRowSetImpl();
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    67
    }
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    68
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents:
diff changeset
    69
}