In our system we have separate API to build query where we need to pass each column and table name separately like below:
dw.setCOLUMN("Column1");
dw.setCOLUMN("Column2");
dw.setTABLE("TableName");
If I would get chance I will remove this API and go with simple SQL query execution (like many Java application does) but due to the existing code and design I am helpless to make any change.
If I have a query like "SELECT function('test'), column1 FROM table" I want to parse the column names separately like function('test') and column1. Are there any API to parse SQL query and return column names and table names separately?