I'm converting a table with the Criteria plugin to filter it to a GrailsUI datatable .. My plan was to try and utilize the Criteria builder as a kind of engine and supply the HQL it generates as a filter to my datatable .. It's going okay BUT i'm now left with a string which looks like ..
filterOn={member.list={members={criteria={properties=[externalRefA], tests=[equal], parameters=[[Morning]], property=externalRefA, test=equal, value=Morning}}, queryStatement=from com.rbm.Member as x where x.externalRefA = ?, queryParameters=[Morning]}}
What i'd like to do is drag out the queryStatement and the queryParameters so that i can pass them to a findAll on a domain and i think i'll be good to go .. Anyone any ideas how i can parse this in a Groovy way ?
TIA
Rob