01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.persistency.core.impl.query;
10:
11: import com.completex.objective.components.persistency.Persistency;
12: import com.completex.objective.components.persistency.SelectQueryBuilder;
13: import com.completex.objective.components.persistency.core.impl.SelectQueryBuilderImpl;
14:
15: /**
16: * Query factory implementation that does not contain persistency instance
17: *
18: * @author Gennady Krizhevsky
19: */
20: public class NonCompilingQueryFactory extends QueryFactoryImpl {
21:
22: public static final SelectQueryBuilder SELECT_QUERY_BUILDER = new SelectQueryBuilderImpl();
23: private static final NonCompilingQueryFactory instance = new NonCompilingQueryFactory();
24:
25: private NonCompilingQueryFactory() {
26: super (Persistency.NULL_PERSISTENCY, SELECT_QUERY_BUILDER);
27: }
28:
29: public static NonCompilingQueryFactory getInstance() {
30: return instance;
31: }
32:
33: void setup(QueryImpl query) {
34: super.setup(query);
35: }
36:
37: }
|