01: /*
02: * Copyright 2002-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.springframework.jdbc.core;
18:
19: /**
20: * Represents a returned {@link java.sql.ResultSet} from a stored procedure call.
21: *
22: * <p>A {@link ResultSetExtractor}, {@link RowCallbackHandler} or {@link RowMapper}
23: * must be provided to handle any returned rows.
24: *
25: * <p>Returned {@link java.sql.ResultSet ResultSets} - like all stored procedure
26: * parameters - <b>must</b> have names.
27: *
28: * @author Thomas Risberg
29: * @author Juergen Hoeller
30: */
31: public class SqlReturnResultSet extends ResultSetSupportingSqlParameter {
32:
33: /**
34: * Create a new instance of the {@link SqlReturnResultSet} class.
35: * @param name name of the parameter, as used in input and output maps
36: * @param extractor ResultSetExtractor to use for parsing the {@link java.sql.ResultSet}
37: */
38: public SqlReturnResultSet(String name, ResultSetExtractor extractor) {
39: super (name, 0, extractor);
40: }
41:
42: /**
43: * Create a new instance of the {@link SqlReturnResultSet} class.
44: * @param name name of the parameter, as used in input and output maps
45: * @param handler RowCallbackHandler to use for parsing the {@link java.sql.ResultSet}
46: */
47: public SqlReturnResultSet(String name, RowCallbackHandler handler) {
48: super (name, 0, handler);
49: }
50:
51: /**
52: * Create a new instance of the {@link SqlReturnResultSet} class.
53: * @param name name of the parameter, as used in input and output maps
54: * @param mapper RowMapper to use for parsing the {@link java.sql.ResultSet}
55: */
56: public SqlReturnResultSet(String name, RowMapper mapper) {
57: super (name, 0, mapper);
58: }
59:
60: }
|