author | phh |
Sat, 30 Nov 2019 14:33:05 -0800 | |
changeset 59330 | 5b96c12f909d |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
6529 | 1 |
/* |
2 |
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
package javax.sql.rowset; |
|
27 |
||
28 |
import java.sql.SQLException; |
|
29 |
||
30 |
/** |
|
31 |
* An interface that defines the implementation of a factory that is used |
|
32 |
* to obtain different types of {@code RowSet} implementations. |
|
33 |
* |
|
34 |
* @author Lance Andersen |
|
35 |
* @since 1.7 |
|
36 |
*/ |
|
37 |
public interface RowSetFactory{ |
|
38 |
||
39 |
/** |
|
40 |
* <p>Creates a new instance of a CachedRowSet.</p> |
|
41 |
* |
|
42 |
* @return A new instance of a CachedRowSet. |
|
43 |
* |
|
44 |
* @throws SQLException if a CachedRowSet cannot |
|
45 |
* be created. |
|
46 |
* |
|
47 |
* @since 1.7 |
|
48 |
*/ |
|
49 |
public CachedRowSet createCachedRowSet() throws SQLException; |
|
50 |
||
51 |
/** |
|
52 |
* <p>Creates a new instance of a FilteredRowSet.</p> |
|
53 |
* |
|
54 |
* @return A new instance of a FilteredRowSet. |
|
55 |
* |
|
56 |
* @throws SQLException if a FilteredRowSet cannot |
|
57 |
* be created. |
|
58 |
* |
|
59 |
* @since 1.7 |
|
60 |
*/ |
|
61 |
public FilteredRowSet createFilteredRowSet() throws SQLException; |
|
62 |
||
63 |
/** |
|
64 |
* <p>Creates a new instance of a JdbcRowSet.</p> |
|
65 |
* |
|
66 |
* @return A new instance of a JdbcRowSet. |
|
67 |
* |
|
68 |
* @throws SQLException if a JdbcRowSet cannot |
|
69 |
* be created. |
|
70 |
* |
|
71 |
* @since 1.7 |
|
72 |
*/ |
|
73 |
public JdbcRowSet createJdbcRowSet() throws SQLException; |
|
74 |
||
75 |
/** |
|
76 |
* <p>Creates a new instance of a JoinRowSet.</p> |
|
77 |
* |
|
78 |
* @return A new instance of a JoinRowSet. |
|
79 |
* |
|
80 |
* @throws SQLException if a JoinRowSet cannot |
|
81 |
* be created. |
|
82 |
* |
|
83 |
* @since 1.7 |
|
84 |
*/ |
|
85 |
public JoinRowSet createJoinRowSet() throws SQLException; |
|
86 |
||
87 |
/** |
|
88 |
* <p>Creates a new instance of a WebRowSet.</p> |
|
89 |
* |
|
90 |
* @return A new instance of a WebRowSet. |
|
91 |
* |
|
92 |
* @throws SQLException if a WebRowSet cannot |
|
93 |
* be created. |
|
94 |
* |
|
95 |
* @since 1.7 |
|
96 |
*/ |
|
97 |
public WebRowSet createWebRowSet() throws SQLException; |
|
98 |
||
32427
c22b7e41adf3
8134984: Text files should end in exactly one newline
martin
parents:
25859
diff
changeset
|
99 |
} |