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.jdo;
12:
13: import java.util.Iterator;
14: import java.util.List;
15:
16: /**
17: * Interface for collections returned by JDOQL queries.
18: *
19: * @see QueryResultBase
20: * @see ForwardQueryResult
21: * @see RandomAccessQueryResult
22: * @see MemoryQueryResult
23: */
24: public interface QueryResult extends List {
25:
26: public QueryResult getNext();
27:
28: public void setNext(QueryResult next);
29:
30: public QueryResult getPrev();
31:
32: public void setPrev(QueryResult prev);
33:
34: /**
35: * Close all open iterators.
36: */
37: public void close();
38:
39: public void setParams(Object[] params);
40:
41: public Iterator createInternalIterNoFlush();
42:
43: }
|