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 abstract class AbstractResultSetWrapper {
18: protected int index;
19: protected boolean closed;
20:
21: public boolean isClosed() {
22: return closed;
23: }
24:
25: public abstract void close() throws SQLException;
26:
27: public int getIndex() {
28: return index;
29: }
30:
31: protected void close(ResultSet resultSet) throws SQLException {
32: if (resultSet != null) {
33: resultSet.close();
34: }
35: }
36:
37: protected void setIndex(int index) {
38: this.index = index;
39: }
40: }
|