cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Manuel Diaz Lara <jmdia...@yahoo.com.INVALID>
Subject About Improved Transaction API on 4.0
Date Tue, 20 Mar 2018 15:11:21 GMT
  runtime.performInTransaction(() -> {
	// ... do some changes
	context.commitChanges();

	// ... do more changes
	context.commitChanges();

	return true;
});   Previous code is an example on "Guide to 4.0 Features". 
My questions are:    
   - What is then persistence state of objects after first commitChanges() ?    

   - If second commitChanges()  fails, what happen to the persistence state coming from firs
commitChages() ?
   - What happen if we return false?
Atte. Juan Manuel Díaz Lara
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message