Link to home
Start Free TrialLog in
Avatar of coolgem
coolgem

asked on

Java:sql using result set type of class?

Hi
What way should I write the java code to do sql when the out come should only be a bunch of fields to be displayed in a JSF type  JSP? As opposed to a List maybe or as opposed to an ArrayList. Can I get some type example?
Thank you
Avatar of InteractiveMind
InteractiveMind
Flag of United Kingdom of Great Britain and Northern Ireland image

Am not entirely clear; could you elaborate?
Avatar of coolgem
coolgem

ASKER

Can I get an example of a java class that does sql and places the result into some setters?
Thank you
Will the result be for just a single column, or for multiple?
Can you also expand a little on the "setters"; a particular data type?
Avatar of coolgem

ASKER

single column ... string fields and a text field.
thank you
ASKER CERTIFIED SOLUTION
Avatar of InteractiveMind
InteractiveMind
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of coolgem

ASKER

thank you very much have a great weekend!