Transaction...

Diego Ziquinatti <[email protected]>
Newsgroups gmane.comp.java.ozone.user
Message-ID <[email protected]>
Hi,
 
Look this code:
 
==========
  String url = "ozonedb:remote://localhost:3333";
  ExternalDatabase db = ExternalDatabase.openDatabase(url);
  ExternalTransaction tx = db.newTransaction();
  try {
   tx.begin();
   
   // in Ozone, person.nameOfPerson == "JOHN"
   Person person = (Person)bd.objectForName("TEST");
   person.setNameOfPerson("MIKE");
   
   tx.rollback();
(...)
==========
 
Why the attribute nameOfPerson was altered in OzoneDB? Rollback does not function with updates? In my case did not function: the name was altered even with the rollback.  I will be I doing somewhat made a mistake?  
 
Thanks...
 
Diego Ziquinatti



---------------------------------
Crie seu Yahoo! Mail, agora com 100MB de espaço, anti-spam e antivírus grátis!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.