Originally posted by Prabhu venkatachalam:
Why do you want to update in EJB QL?
Steps for UPDATING :
1. Get the particular entity bean(in DB it is a row) using its primary key.
2. Using Bean's Component Interface implemented object, change the value using setter methods.
3. Once done, If it is CMP, container will UPDATE the database. If it is BMP, then you need to write a query in ejbLoad to do the updation.
There is no support for updating in EJB QL and even it doesn't make any sense in this context.
HTH,
ok, but how do i using ejbLoad() ?
do you have one example ?
Why do you want to update in EJB QL?
because i need performace, and in my source is this:
Using this source i don't has perfomace becaouse i get the connection (Transaction) and get the value, after i get other connection to update the value.
i need the something as a "SELECT ... FOR UPDATE" where i using one connection(transaction) get the value e update this value.
do you understands?
thanks!