Inspecting java variable
I'm writing a plugin to inspect some elements of my code.
I need to make a reference of the object "vo" to the argument "TABLE" of JapeWrapper.dao;
The goal is to validate that COLUMN2 belongs to the TABLE;
<code>
JapeWrapper jape = JapeWrapper.dao ("TABLE");
DynamicVO vo = jape.findOne ("COLUMN1 =?", "Anything");
String column = vo.asString ("COLUMN2"); // "vo" is an object to access "TABLE"
</code>
Someone have an idea?
Please sign in to leave a comment.
This is a rather complicated DFA-related task (data-flow-analysis).
At the moment there's no public API for that and the only implementation I know is the closed-source JPA/Hibernate/Connection query parameter reference resolution (JpaQueryParameterReferenceProvider).