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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlUtil
public SqlUtil()
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
n
th (0-based) input to a join expression.
flatten
private static void flatten(SqlNode node,
ArrayList list)