I've seen a lot of projects use either a properties file or a global constants class, both not very good designs in my opinion but nonetheless a very common "practice", to hold all the query strings that are run by the application. If you get to the DAO classes and find references to constants or keys where you'd normally find the query strings, then use an
IDE like Eclipse to find everything that references the constants or use your favorite text search tool to search through *all* the files in your project for places where the keys are used.