KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdo > VersantQueryPlan


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.jdo;
13
14 import java.io.Serializable JavaDoc;
15
16 /**
17  * Execution plan for a query.
18  */

19 public class VersantQueryPlan implements Serializable JavaDoc {
20
21     private String JavaDoc datastoreQuery;
22     private String JavaDoc datastorePlan;
23
24     public VersantQueryPlan() {
25     }
26
27     /**
28      * Get the generated datastore query language (e.g. SQL) for the query.
29      * Note that this may depend on the values of the query parameters
30      */

31     public String JavaDoc getDatastoreQuery() {
32         return datastoreQuery;
33     }
34
35     public void setDatastoreQuery(String JavaDoc datastoreQuery) {
36         this.datastoreQuery = datastoreQuery;
37     }
38
39     /**
40      * Get the datastore execution plan for the query. Note that this may
41      * depend on the values of the query parameters. If this is not supported
42      * for the target database then null is returned.
43      */

44     public String JavaDoc getDatastorePlan() {
45         return datastorePlan;
46     }
47
48     public void setDatastorePlan(String JavaDoc datastorePlan) {
49         this.datastorePlan = datastorePlan;
50     }
51
52 }
53
Popular Tags