| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.util.SqlUtil
public class SqlUtil
Utilities for dealing with SQL strings.
| Field Summary | |
|---|---|
static char | 
CR_CHAR
 | 
static char | 
NL_CHAR
 | 
static char | 
SPACE_CHAR
 | 
static char | 
TAB_CHAR
 | 
| Method Summary | |
|---|---|
static java.sql.SQLException | 
createFeatureNotSupportedException()
 | 
static boolean | 
isUpdateSql(java.lang.String sql)
Determines whether a sql statement is an update (INSERT, UPDATE, or DELETE).  | 
static java.lang.String | 
normalize(java.lang.String inputSqlString)
Simple method which normalizes a SQL string by replacing CR characters, new line characters and Tab characters with spaces, then trimming the string to remove unneeded spaces.  | 
static boolean | 
stringsAreDifferent(java.lang.String newSql,
                    java.lang.String oldSql)
determine if the supplied sql Strings are different  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final char CR_CHAR
public static final char NL_CHAR
public static final char SPACE_CHAR
public static final char TAB_CHAR
| Method Detail | 
|---|
public static boolean isUpdateSql(java.lang.String sql)
                           throws java.lang.IllegalArgumentException
sql - Sql string
java.lang.IllegalArgumentException - If sql string is invalid and neither a 
 query or an updatepublic static java.lang.String normalize(java.lang.String inputSqlString)
inputSqlString - 
public static boolean stringsAreDifferent(java.lang.String newSql,
                                          java.lang.String oldSql)
newSql - the new SQL StringoldSql - the old SQL String
public static java.sql.SQLException createFeatureNotSupportedException()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||