Parameter assignments through Spoon
- Dominant language
- Java
- Stars
- 2k
- Forks
- 392
- Avg merge
- 11h 24m
- Merged PRs (30d)
- 36
Description
Hi @algomaster99 ,
Have opened a separate issue.
Thanks for replying on my post and for the same here again I am writing my problem below.
****************************************************************************************
Does Spoon helps to finds the lineage (call hierarchy) of a parameter passed in below example ?
For Example:
If in a java code we have ResultSet rs = stmt.executeQuery(**QUERY**);
Then declaration and initialization of QUERY might be from one of the below ways :
Direct static query - ResultSet rs = stmt.executeQuery("SELECT id, first, last, age FROM Employees");
As a passed parameter/variable - ResultSet rs = stmt.executeQuery(QUERY);
and QUERY can be even made dynamically such as :
query1 = SELECT;
col1 = id;
col2 = first;
col3 = last;
col4 = age;
query2 = col1 + "," + col2 + "," + col3 + "," + col4; (id,first,last,age)
query3 = FROM;
query4 = Employees; (tbl_name)
clause1 = WHERE;
clause2 = BETWEEN;
query5 = clause1 or clause 2 based on condition;
QUERY= query1 + query2 + query3 + query4 + query5; (SELECT id, first, last, age FROM Employees)
**So please suggest if there is a provision in spoon to find how the QUERY is made completely (after adding query1 + query2 + query3 + query4 + query5)**
I hope the problem is clear or else please let me know I will try to explain in some other way.
****************************************************************************************
**So my goal is to identify the complete queries written in other applications through Spoon and correct them as my new requirements.**
Contributor guide
Assessment
This issue has not been assessed yet.