Path: blob/master/src/java.sql.rowset/share/classes/javax/sql/rowset/RowSetFactory.java
40948 views
/*1* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.sql.rowset;2627import java.sql.SQLException;2829/**30* An interface that defines the implementation of a factory that is used31* to obtain different types of {@code RowSet} implementations.32*33* @author Lance Andersen34* @since 1.735*/36public interface RowSetFactory{3738/**39* <p>Creates a new instance of a CachedRowSet.</p>40*41* @return A new instance of a CachedRowSet.42*43* @throws SQLException if a CachedRowSet cannot44* be created.45*46* @since 1.747*/48public CachedRowSet createCachedRowSet() throws SQLException;4950/**51* <p>Creates a new instance of a FilteredRowSet.</p>52*53* @return A new instance of a FilteredRowSet.54*55* @throws SQLException if a FilteredRowSet cannot56* be created.57*58* @since 1.759*/60public FilteredRowSet createFilteredRowSet() throws SQLException;6162/**63* <p>Creates a new instance of a JdbcRowSet.</p>64*65* @return A new instance of a JdbcRowSet.66*67* @throws SQLException if a JdbcRowSet cannot68* be created.69*70* @since 1.771*/72public JdbcRowSet createJdbcRowSet() throws SQLException;7374/**75* <p>Creates a new instance of a JoinRowSet.</p>76*77* @return A new instance of a JoinRowSet.78*79* @throws SQLException if a JoinRowSet cannot80* be created.81*82* @since 1.783*/84public JoinRowSet createJoinRowSet() throws SQLException;8586/**87* <p>Creates a new instance of a WebRowSet.</p>88*89* @return A new instance of a WebRowSet.90*91* @throws SQLException if a WebRowSet cannot92* be created.93*94* @since 1.795*/96public WebRowSet createWebRowSet() throws SQLException;9798}99100101