KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdbc > FetchInfo


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdbc;
13
14 import com.versant.core.common.OID;
15
16 /**
17  * This is a data structure that is used to hold information when fetching data
18  * from a queryResult
19  */

20 public class FetchInfo {
21     public static final int BREAK_STATUS_DEFAULT = 0;
22     public static final int BREAK_STATUS_NULL = 1;
23     public static final int BREAK_STATUS_VALID = 2;
24     public static final int BREAK_STATUS_READ = 3;
25
26     /**
27      * Why did the iteration stop.
28      */

29     public int breakStatus;
30     /**
31      * Did we advance to a next row.
32      */

33     public boolean onNextRow;
34     /**
35      * Is this a valid row.
36      */

37     public boolean onValidRow;
38     /**
39      * If we advanced to the next row then this is the oid.
40      */

41     public OID nextOid;
42     public boolean finished;
43
44     public void reset() {
45         nextOid = null;
46         breakStatus = 0;
47         onNextRow = false;
48     }
49 }
50
Popular Tags