• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDBC and Object Design

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friend!
I have a table :
Members(
username varchar2(15),
password varchar2(15),
tel varchar2(15),
.... a lot of fields here)
I use JDBC to connect to my table
I want to keep track of users when they enter my site. Which way should I ues
1 . Create a MembersClass containing all the field in my table and methods to access, update these fields. To keep track of users I store MembersClass object in session
1. Create two classes User class containing username and password fields, storing this class in session to keep track of users. The second class is MembersClass like the first one for creating, updating new users.
Thanks in advanced
 
reply
    Bookmark Topic Watch Topic
  • New Topic