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.jdbc.ejbql;
12:
13: import com.versant.core.jdbc.query.JdbcCompiledQuery;
14: import com.versant.core.jdbc.fetch.FetchSpec;
15: import com.versant.core.metadata.ClassMetaData;
16: import com.versant.core.jdo.QueryDetails;
17:
18: /**
19: * Hacked version of JdbcCompiledQuery to suite the new FetchSpec query
20: * processing. The old stuff needs to be refactored so everything uses
21: * FetchSpec etc. This is a hack so we can get EJBQL into our implementation.
22: */
23: public class JdbcCompiledQueryEJBQL extends JdbcCompiledQuery {
24:
25: private FetchSpec fetchSpec;
26:
27: public JdbcCompiledQueryEJBQL(ClassMetaData cmd,
28: QueryDetails queryParams, FetchSpec fetchSpec) {
29: super (cmd, queryParams);
30: this .fetchSpec = fetchSpec;
31: unique = QueryDetails.FALSE;
32: }
33:
34: public boolean isEJBQLHack() {
35: return true;
36: }
37:
38: public FetchSpec getFetchSpec() {
39: return fetchSpec;
40: }
41:
42: }
|