Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
What kind of error? What's the stack trace? 'Cause this is still the right way to go about it. Assuming that the array has at least one result row, that isOriginally posted by garfild Baram:
[...]hash = (HashMap)arr.get(0);
Raises an Error. [...]
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
A set of Java classes representing the objects in your problem, and the relationships between them, is called an object model. If the final destination for your data is an object model, then putting the query results in a List of Maps would be a very roundabout way to go about it.Originally posted by garfild Baram:
I created 3 classes (each for one table) that containes parameters that represent each field in the table.
If I have a query that retrieves many records from all tables how do I elegantly draws them from the hashMap that contains all data?
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|