KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > storagemanager > ExecuteQueryReturn


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.storagemanager;
13
14 import com.versant.core.server.CompiledQuery;
15 import com.versant.core.server.QueryResultWrapper;
16
17 /**
18  * This holds a CompiledQuery and RunningQuery instance returned by a
19  * call to {@link StorageManager#executeQuery}. This will not need to extend
20  * QueryResultWrapper when JDOConnection is finally gone.
21  */

22 public interface ExecuteQueryReturn extends QueryResultWrapper {
23
24     /**
25      * Get the compiled form of the query. This can be cached and passed to
26      * {@link StorageManager#executeQuery} to avoid recompilation. If a
27      * compiledQuery was passed to executeQuery then this may return null.
28      * This is used to optimize remote access.
29      */

30     public CompiledQuery getCompiledQuery();
31
32     /**
33      * This is passed to {@link StorageManager#fetchNextQueryResult}
34      * or {@link StorageManager#fetchRandomAccessQueryResult} to retrieve
35      * the results of the query.
36      */

37     public RunningQuery getRunningQuery();
38
39 }
40
41
Popular Tags