Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get the query in it's current state
- String lQuery = vo.getQuery();
- //get Valriables
- VariableValueManager lEnsureVariableManager = vo.ensureVariableManager();
- Variable[] lVariables = lEnsureVariableManager.getVariables();
- int lCount = lEnsureVariableManager.getVariableCount();
- // Dump query
- System.out.println("---query--- " + lQuery);
- // if variables found dump them
- if (lCount > 0)
- {
- System.out.println("---Variables:");
- for (int ii = 0; ii < lCount; ii++)
- {
- Object lObject = lEnsureVariableManager.getVariableValue(lVariables[ii]);
- System.out.println(" --- Name: " + lVariables[ii].getName() + " Value: " +
- (lObject != null ? lObject.toString() : "null"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement