0

I m having many dataobjects (*.java)(having getters and setters)

My requirement is that, I want to write a generic Method, which will accept argument as Object and will call all getters of that Object.

Basically I want to write a log file with all dataobjects which are going to be inserted in database. When I insert into database, log will be written to log file.

How can we get all getters of Object ?

Is it possible ?

Or otherwise simply I have to do explicit casting........ ???

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by masijade
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.