Class SQLQueryUtil

java.lang.Object
com.kheops.util.SQLQueryUtil

public class SQLQueryUtil extends Object
  • Constructor Details

    • SQLQueryUtil

      public SQLQueryUtil(String sqlQuery)
  • Method Details

    • getFromClause

      public String getFromClause()
    • getSelectClause

      public String getSelectClause()
    • getWhereClause

      public String getWhereClause()
    • getColumns

      public String[] getColumns(boolean parseColumnAliases)
      Returns column names found in the 'SELECT' part of the SQL query.
      Parameters:
      parseColumnAliases - a flag that defines whether column aliases are returned instead of column names
      Returns:
      column names found in the 'SELECT' part of the SQL query
    • getRealColumnName

      public String getRealColumnName(String aliasName, boolean ignoreCase)
    • getTables

      public String[] getTables()
    • getTableAliases

      public HashMap getTableAliases()
    • getTableAlias

      public String getTableAlias(String name, boolean containsField, boolean canReturnNull)
    • removeAllTableAliases

      public void removeAllTableAliases()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • removeAllFieldAliases

      public void removeAllFieldAliases()