How to add filter to 500+ queries at a time

I am using jsqlParser to parse mysql queries, But i have more than 200+ queries to execute, according to user i want to add user_id using parser to each query and fetch result.
But now i am facing performance issue.

is there any solution for that?

If Hibernate ORM is generating these queries then you should think about using filters for this purpose: Hibernate ORM User Guide

I am using Native queries,
For hibernate ORM filters is working, Not sure for Native Query

It’s not possible for native queries. You have to adapt these queries yourself. Hibernate ORM is not able to understand the structure of your native SQL and hence also not able to add predicates.