*
The moose likes JDBC and the fly likes Example of reusing common functionality (like transaction management) using reflection and delegates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Example of reusing common functionality (like transaction management) using reflection and delegates" Watch "Example of reusing common functionality (like transaction management) using reflection and delegates" New topic
Author

Example of reusing common functionality (like transaction management) using reflection and delegates

Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
Can anybody give an example about reusing the same functionality like transaction management (begintrans, committrans and rollbacktrans) using two methods : reflection and delegates? thanks.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Why on earth would you want to use reflection for that sort of thing?

This isn't a "beginning Java" question, so I shall move this discussion.
 
Consider Paul's rocket mass heater.
 
subject: Example of reusing common functionality (like transaction management) using reflection and delegates
 
Similar Threads
How to implement this requirement
hibernate with Container Managed Transactions (CMT)
Best practices for retreive/edit EJB system
check if setEditable is defined as a method
Pattern question for gurus