Please, help!
According to this: 
http://code.google.com/intl/uk-UA/appengine/articles/life_of_write.html.

Let's suppose that I call the low-level put method outside of a
transaction and an exception throws. If exception occures at the
commit phase entity won't be saved otherwise if exception occures at
the applyed phase entity will be saved.

Is there a way to find out entity is really saved or not in the
datastore after exception?

If I execute the same operation inside a transaction, for exampe:
Transaction tx = datastore.beginTransaction();
try {
 .... put entity code ...
  tx.commit();
} finally {
  if (tx.isActive()) {
    tx.rollback();
}
Suppose exception occures in the apply phase, then  tx.rollback() will
be fired? Can it make sure that enitty really won't be saved in the
datastore?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to