I am trying to create a system which instead of create a Statement in SQL, uses Java classes. I mean create a java class which retrieves values from XML and generates the SQL dinamically.
I already know what way do that but my doubt in more about what way create the object and serialize it, creating the query dinamically. It is a little mess for me.
as with all programming projects, you need to break it down into smaller parts. I see several:
1) create the object
2) serialize it
3) create the query
Each of these are separate, distinct problems. You shouldn't worry at all about #2 and #3 when working on #1. That makes the problems much more manageable.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.