public class SQLQueryUtil
extends java.lang.Object
Constructor and Description |
---|
SQLQueryUtil(java.lang.String sqlQuery) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getColumns(boolean parseColumnAliases)
Returns column names found in the 'SELECT' part of the SQL query.
|
java.lang.String |
getFromClause() |
java.lang.String |
getRealColumnName(java.lang.String aliasName,
boolean ignoreCase) |
java.lang.String |
getSelectClause() |
java.lang.String |
getTableAlias(java.lang.String name,
boolean containsField,
boolean canReturnNull) |
java.util.HashMap |
getTableAliases() |
java.lang.String[] |
getTables() |
java.lang.String |
getWhereClause() |
void |
removeAllFieldAliases() |
void |
removeAllTableAliases() |
java.lang.String |
toString() |
public java.lang.String getFromClause()
public java.lang.String getSelectClause()
public java.lang.String getWhereClause()
public java.lang.String[] getColumns(boolean parseColumnAliases)
parseColumnAliases
- a flag that defines whether or not column aliases
are returned instead of column namespublic java.lang.String getRealColumnName(java.lang.String aliasName, boolean ignoreCase)
public java.lang.String[] getTables()
public java.util.HashMap getTableAliases()
public java.lang.String getTableAlias(java.lang.String name, boolean containsField, boolean canReturnNull)
public void removeAllTableAliases()
public java.lang.String toString()
toString
in class java.lang.Object
public void removeAllFieldAliases()