KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > server > CachedQueryResult


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.server;
13
14 import com.versant.core.common.OIDArray;
15
16 import java.util.ArrayList JavaDoc;
17
18 /**
19  * This is a datastruct to hold query results in the level2Cache.
20  */

21 public class CachedQueryResult {
22     /**
23      * The actual results.
24      */

25     public ArrayList JavaDoc results;
26     /**
27      * All indirect oids.
28      */

29     public OIDArray indirectOIDs;
30
31     public int getResultSize() {
32         if (results == null) return 0;
33         return results.size();
34     }
35 }
36
Popular Tags