KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdbc > sql > exp > LeafExp


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.jdbc.sql.exp;
13
14 import com.versant.core.jdbc.sql.SqlDriver;
15
16 /**
17  * An expression with no children.
18  */

19 public class LeafExp extends SqlExp {
20
21     public LeafExp() {
22     }
23
24     public SqlExp createInstance() {
25         return new LeafExp();
26     }
27
28     /**
29      * Create an aliases for any subtables we may have.
30      */

31     public int createAlias(int index) {
32         return index;
33     }
34
35     /**
36      * Normalize this node i.e. transform it into its simplist possible form.
37      * This will turn sub selects into joins and so on.
38      */

39     public SqlExp normalize(SqlDriver driver, SelectExp sel, boolean convertExists) {
40         return null;
41     }
42
43 }
44
45
Popular Tags