1.

What Is The Use Of Commitcopyhelper() And Refreshcopyhelper()?

Answer»

commitCopyHelper():INSTEAD of using the remote interface, CopyHelper Access Beans exist that contain getters and setters for CMP fields that do not exist on the remote interface. The methods within the CopyHelper Access Beans write data to a hash table that in TURN updates the database when commitCopyHelper() is called. The hash table can RECORD multiple database changes then update the database in one transaction, unlike the remote methods which REQUIRE one transaction per change.

RefreshCopyHelper():which does the REVERSE function of commitCopyHelper(). The method refreshCopyHelper() writes to the hash table from the database.

commitCopyHelper():Instead of using the remote interface, CopyHelper Access Beans exist that contain getters and setters for CMP fields that do not exist on the remote interface. The methods within the CopyHelper Access Beans write data to a hash table that in turn updates the database when commitCopyHelper() is called. The hash table can record multiple database changes then update the database in one transaction, unlike the remote methods which require one transaction per change.

RefreshCopyHelper():which does the reverse function of commitCopyHelper(). The method refreshCopyHelper() writes to the hash table from the database.



Discussion

No Comment Found