Utilize Commons BeansUtils to Do Copy Object<br />Albert Guo<br />junyuo@gmail.com<br />1<br />
Agenda<br />Scenario<br />Introduction <br />Demo<br />2<br />
Scenario<br />As user do insert/update/delete,<br />system should keep track of record’s <br />change history<br />NIGT020...
Commons BeanUtils<br />http://commons.apache.org/beanutils/<br />Most Java developers are used to creating Java classes th...
Commons BeanUtils<br />Example use cases include:<br />Building scripting languages that interact with the Java object mod...
Commons BeanUtils<br />6<br />
Demo<br />7<br />
Demo – cont.<br />8<br />
Upcoming SlideShare
Loading in …5
×

Utilize Commons BeansUtils to do copy object

1,084 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,084
On SlideShare
0
From Embeds
0
Number of Embeds
162
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Utilize Commons BeansUtils to do copy object

  1. 1. Utilize Commons BeansUtils to Do Copy Object<br />Albert Guo<br />junyuo@gmail.com<br />1<br />
  2. 2. Agenda<br />Scenario<br />Introduction <br />Demo<br />2<br />
  3. 3. Scenario<br />As user do insert/update/delete,<br />system should keep track of record’s <br />change history<br />NIGT020<br />NIGU020<br />Insert/update/delete NIGT020<br />Insert data into NIGU020 as user do any change<br />3<br />
  4. 4. Commons BeanUtils<br />http://commons.apache.org/beanutils/<br />Most Java developers are used to creating Java classes that conform to the JavaBeans naming patterns for property getters and setters. It is natural to then access these methods directly, using calls to the corresponding getXxx and setXxx methods. <br />4<br />
  5. 5. Commons BeanUtils<br />Example use cases include:<br />Building scripting languages that interact with the Java object model (such as the Bean Scripting Framework).<br />Building template language processors for web presentation and similar uses (such as JSP or Velocity).<br />Building custom tag libraries for JSP and XSP environments (such as Jakarta Taglibs, Struts, Cocoon).<br />Consuming XML-based configuration resources (such as Ant build scripts, web application deployment descriptors, Tomcat's server.xml file).<br />5<br />
  6. 6. Commons BeanUtils<br />6<br />
  7. 7. Demo<br />7<br />
  8. 8. Demo – cont.<br />8<br />

×