01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.jdbc;
12:
13: import com.versant.core.common.OID;
14:
15: /**
16: * This is a data structure that is used to hold information when fetching data
17: * from a queryResult
18: */
19: public class FetchInfo {
20: public static final int BREAK_STATUS_DEFAULT = 0;
21: public static final int BREAK_STATUS_NULL = 1;
22: public static final int BREAK_STATUS_VALID = 2;
23: public static final int BREAK_STATUS_READ = 3;
24:
25: /**
26: * Why did the iteration stop.
27: */
28: public int breakStatus;
29: /**
30: * Did we advance to a next row.
31: */
32: public boolean onNextRow;
33: /**
34: * Is this a valid row.
35: */
36: public boolean onValidRow;
37: /**
38: * If we advanced to the next row then this is the oid.
39: */
40: public OID nextOid;
41: public boolean finished;
42:
43: public void reset() {
44: nextOid = null;
45: breakStatus = 0;
46: onNextRow = false;
47: }
48: }
|