how to map this update in the gui table to the corresponding entity bean
table in GUI(editable table) entity bean
customer_id,customer_name Customer (ejbobject)
then i change the customer_name in the left table in GUI, i want this change to be reflected and executed on the corresponding
ejb, how can i locate the ejb that corresponds to this particular table row in GUI, What's the best way to establish this mapping.
in ADO.net, Microsoft has databinding mechnasim, is there any conterpart in J2EE.
how to establish a persistent layer myself (ie not using any ejb and communicate directly with batabase)
If i want to update lots of table rows in a time, and i don't want this update to be excuted immediately, ie cache the change
in the persistent layer.And then after i press a button, say "UPDATE", all the updates will be done to the database. How to
implement such a CACHE mechanism?
Like windows application, Swing application is also event driven.You can register a few event listeners with a Swing component, such as JButton and JTable. Any changes to this component will cause it send some event to its registered listeners. So, it is in the listener's method that you can call ejb and synchronize JTable and entity bean. There is no available databinding mechanism in J2EE, so you have to think over and build this mechanism yourself.