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.server;
12:
13: import com.versant.core.common.OIDArray;
14:
15: import java.util.ArrayList;
16:
17: /**
18: * This is a datastruct to hold query results in the level2Cache.
19: */
20: public class CachedQueryResult {
21: /**
22: * The actual results.
23: */
24: public ArrayList results;
25: /**
26: * All indirect oids.
27: */
28: public OIDArray indirectOIDs;
29:
30: public int getResultSize() {
31: if (results == null)
32: return 0;
33: return results.size();
34: }
35: }
|