Reflection inquiry?

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 1980 Views - Last Post: 16 July 2012 - 10:46 PM

#16 mensahero  Icon User is offline

  • I Desire...
  • member icon

Reputation: 17
  • View blog
  • Posts: 678
  • Joined: 26-May 08

Re: Reflection inquiry?

Posted 16 July 2012 - 10:46 PM

View Postbaavgai, on 16 July 2012 - 07:02 AM, said:

It's really not reflection's fault; it's the methodology. You'd only need to use reflect once per class. How long does that take? Now, if you did it for every single transaction, now we're talking overhead.


Thanks for this advice, its really helpful and has a really clear point.


jon.kiparsky said:

Events.java has fields date, time, place, participants, description, maybe a few other fields. These are stored as Java-flavored objects.
The object has methods to import and export its fields by writing a query to a database (presumably it gets the DB access from the running class), and it can also populate itself by whatever other means you find useful, ie, it can read a line from a flat data file if you need, or take direct keyboard input, or whatever.


So its a single object that handles everything related to it, very OOP approach. It's a great idea, I'll just have to mix this with our current MVC structure and see what I can came up with.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2