KickJava   Java API By Example, From Geeks To Geeks.

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


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 import com.versant.core.util.CharBuf;
16
17 /**
18  */

19 public class HavingExp extends UnaryExp {
20
21     public HavingExp(SqlExp child) {
22         super(child);
23     }
24
25     /**
26      * Append SQL for this node to s. This is the method that subclasses
27      * should override.
28      *
29      * @param driver The driver being used
30      * @param s Append the SQL here
31      * @param leftSibling
32      */

33     public void appendSQLImp(SqlDriver driver, CharBuf s, SqlExp leftSibling) {
34         s.append(" HAVING ");
35         childList.appendSQLImp(driver, s, leftSibling);
36     }
37 }
38
Popular Tags