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.sql.exp;
12:
13: import com.versant.core.jdbc.sql.SqlDriver;
14: import com.versant.core.util.CharBuf;
15:
16: /**
17: */
18: public class HavingExp extends UnaryExp {
19:
20: public HavingExp(SqlExp child) {
21: super (child);
22: }
23:
24: /**
25: * Append SQL for this node to s. This is the method that subclasses
26: * should override.
27: *
28: * @param driver The driver being used
29: * @param s Append the SQL here
30: * @param leftSibling
31: */
32: public void appendSQLImp(SqlDriver driver, CharBuf s,
33: SqlExp leftSibling) {
34: s.append(" HAVING ");
35: childList.appendSQLImp(driver, s, leftSibling);
36: }
37: }
|