Pergunta

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

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top