01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.persistency.core.impl;
10:
11: import java.sql.ResultSet;
12: import java.sql.SQLException;
13:
14: /**
15: * @author Gennady Krizhevsky
16: */
17: public class ResultSetWrapper extends AbstractResultSetWrapper {
18: private ResultSet resultSet;
19:
20: public ResultSetWrapper(ResultSet resultSet, int index) {
21: this .resultSet = resultSet;
22: this .index = index;
23: }
24:
25: public ResultSetWrapper(ResultSet resultSet) {
26:
27: this .resultSet = resultSet;
28: }
29:
30: public void close() throws SQLException {
31: try {
32: closed = true;
33: close(this .resultSet);
34: } finally {
35: this .resultSet = null;
36: }
37: }
38:
39: public ResultSet getResultSet() {
40: return resultSet;
41: }
42:
43: }
|