You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Bharat Nagwani <bn...@juniper.net> on 2005/06/14 00:57:04 UTC

Archive Search and Question on updates in JPetstore

I am looking at the Jpetstore code and I see this method in
AccountSqlMapDao

 

public void updateAccount(Account account) {

    update("updateAccount", account);

    update("updateProfile", account);

 

    if (account.getPassword() != null && account.getPassword().length()
> 0) {

      update("updateSignon", account);

    }

  }

 

How are the transaction boundaries handled, so are all the updates here
are done as one transaction automatically?

 

Also archive search is not working
http://www.mail-archive.com/user-java@ibatis.apache.org/

 

thanks


Re: Archive Search and Question on updates in JPetstore

Posted by Larry Meadors <la...@gmail.com>.
They are working, but the mailing list address has changed recently,
so there is not much to search. ;-)

The old email archives are here:

http://www.mail-archive.com/ibatis-dev%40incubator.apache.org/
http://www.mail-archive.com/ibatis-user-cs%40incubator.apache.org/
http://www.mail-archive.com/ibatis-user-java%40incubator.apache.org/

Larry


On 6/13/05, Bharat Nagwani <bn...@juniper.net> wrote:
> 
> Also archive search is not working
> http://www.mail-archive.com/user-java@ibatis.apache.org/ 
>

Re: Archive Search and Question on updates in JPetstore

Posted by Clinton Begin <cl...@gmail.com>.
Hi Bharat,

First, please note the new mailing list address.

To answer your question, JPetStore uses the iBATIS DAO framework, which 
demarcates transactions automatically at the method level, or by calling the 
start/commit/end methods against the DAO transaction manager. So in this 
case, these three updates were paret of the same transaction.

Cheers,
Clinton

On 6/13/05, Bharat Nagwani <bn...@juniper.net> wrote:
> 
>  I am looking at the Jpetstore code and I see this method in 
> AccountSqlMapDao
> 
>  public void updateAccount(Account account) {
> 
> update("updateAccount", account);
> 
> update("updateProfile", account);
> 
>  if (account.getPassword() != null && account.getPassword().length() > 0) 
> {
> 
> update("updateSignon", account);
> 
> }
> 
> }
> 
>  How are the transaction boundaries handled, so are all the updates here 
> are done as one transaction automatically?
> 
>  Also archive search is not working 
> http://www.mail-archive.com/user-java@ibatis.apache.org/
> 
>  thanks
>