2740N/A/*
2740N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2740N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2740N/A *
2740N/A * This code is free software; you can redistribute it and/or modify it
2740N/A * under the terms of the GNU General Public License version 2 only, as
2740N/A * published by the Free Software Foundation. Oracle designates this
2740N/A * particular file as subject to the "Classpath" exception as provided
2740N/A * by Oracle in the LICENSE file that accompanied this code.
2740N/A *
2740N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2740N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2740N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2740N/A * version 2 for more details (a copy is included in the LICENSE file that
2740N/A * accompanied this code).
2740N/A *
2740N/A * You should have received a copy of the GNU General Public License version
2740N/A * 2 along with this work; if not, write to the Free Software Foundation,
2740N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2740N/A *
2740N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2740N/A * or visit www.oracle.com if you need additional information or have any
2740N/A * questions.
2740N/A */
2740N/A
2740N/Apackage com.sun.rowset;
2740N/A
2740N/Aimport java.sql.SQLException;
2740N/Aimport javax.sql.rowset.CachedRowSet;
2740N/Aimport javax.sql.rowset.FilteredRowSet;
2740N/Aimport javax.sql.rowset.JdbcRowSet;
2740N/Aimport javax.sql.rowset.JoinRowSet;
2740N/Aimport javax.sql.rowset.WebRowSet;
2740N/Aimport javax.sql.rowset.RowSetFactory;
2740N/A
2740N/A/**
2740N/A * This is the implementation specific class for the
2740N/A * <code>javax.sql.rowset.spi.RowSetFactory</code>. This is the platform
2740N/A * default implementation for the Java SE platform.
2740N/A *
2740N/A * @author Lance Andersen
2740N/A *
2740N/A *
2740N/A * @version 1.7
2740N/A */
2740N/Apublic final class RowSetFactoryImpl implements RowSetFactory {
2740N/A
2740N/A public CachedRowSet createCachedRowSet() throws SQLException {
2740N/A return new com.sun.rowset.CachedRowSetImpl();
2740N/A }
2740N/A
2740N/A public FilteredRowSet createFilteredRowSet() throws SQLException {
2740N/A return new com.sun.rowset.FilteredRowSetImpl();
2740N/A }
2740N/A
2740N/A
2740N/A public JdbcRowSet createJdbcRowSet() throws SQLException {
2740N/A return new com.sun.rowset.JdbcRowSetImpl();
2740N/A }
2740N/A
2740N/A public JoinRowSet createJoinRowSet() throws SQLException {
2740N/A return new com.sun.rowset.JoinRowSetImpl();
2740N/A }
2740N/A
2740N/A public WebRowSet createWebRowSet() throws SQLException {
2740N/A return new com.sun.rowset.WebRowSetImpl();
2740N/A }
2740N/A
2740N/A}