문제

I have a page where I have implemented an af:query and a result table. The problem is that I can't retrieve within a managed bean method the exact query that is used at runtime by this component. Is there any way to get the query string that is being executed within the af:query component?

Thanks

도움이 되었습니까?

해결책

I found the answer here https://community.oracle.com/thread/3516102 I have to override the executeQueryForCollection(), and, before super call, I can print out the result of getQuery() method.

The detailed solution is explained here: Get SQL Query and Parameters from af:search

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top