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.io.Serializable;
14:
15: /**
16: * Execution plan for a query.
17: */
18: public class VersantQueryPlan implements Serializable {
19:
20: private String datastoreQuery;
21: private String datastorePlan;
22:
23: public VersantQueryPlan() {
24: }
25:
26: /**
27: * Get the generated datastore query language (e.g. SQL) for the query.
28: * Note that this may depend on the values of the query parameters
29: */
30: public String getDatastoreQuery() {
31: return datastoreQuery;
32: }
33:
34: public void setDatastoreQuery(String datastoreQuery) {
35: this .datastoreQuery = datastoreQuery;
36: }
37:
38: /**
39: * Get the datastore execution plan for the query. Note that this may
40: * depend on the values of the query parameters. If this is not supported
41: * for the target database then null is returned.
42: */
43: public String getDatastorePlan() {
44: return datastorePlan;
45: }
46:
47: public void setDatastorePlan(String datastorePlan) {
48: this.datastorePlan = datastorePlan;
49: }
50:
51: }
|