net.sf.saffron.sql
Class SqlUtil

java.lang.Object
  |
  +--net.sf.saffron.sql.SqlUtil

public abstract class SqlUtil
extends Object

Contains utility functions related to SQL parsing, all static.

Since:
Nov 26, 2003
Version:
$Id: $
Author:
jhyde

Constructor Summary
SqlUtil()
           
 
Method Summary
(package private) static SqlNode andExpressions(SqlNode node1, SqlNode node2)
           
(package private) static ArrayList flatten(SqlNode node)
           
private static void flatten(SqlNode node, ArrayList list)
           
static String getAlias(SqlNode node)
           
static SqlNode getFromNode(SqlSelect query, int ordinal)
          Returns the nth (0-based) input to a join expression.
static SqlNode getFromNode(SqlSelect query, String alias)
          Returns the input with a given alias.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlUtil

public SqlUtil()
Method Detail

getFromNode

public static SqlNode getFromNode(SqlSelect query,
                                  String alias)
Returns the input with a given alias.


andExpressions

static SqlNode andExpressions(SqlNode node1,
                              SqlNode node2)

flatten

static ArrayList flatten(SqlNode node)

getAlias

public static String getAlias(SqlNode node)

getFromNode

public static SqlNode getFromNode(SqlSelect query,
                                  int ordinal)
Returns the nth (0-based) input to a join expression.


flatten

private static void flatten(SqlNode node,
                            ArrayList list)

SourceForge.net_Logo