Skip to content

Tag: parsing

Replace Parameters in SQL query text with XXXXX

I m writing a small utility that captures and logs SQL statements, but will have to remove sensitive data from the Query text and replace with with some dummy text (i.e:XXXXX). What is a good way to parse the SQL query in java and replace parameters value? for example: replace with Answer Using JSQLParser (V0…

Expression language to SQL where clause transformations?

We have one domain object, I’m looking for a simple expression language that we can write that will generate SQL. (particulary the where clause of SQL) For example. translates to Does anything like this exist, or do I have to write my own? Please let me know if you think I might as well be searching for…