/**
  * Mutator for whether to detach all objects on commit of the txn.
  *
  * @param detach Whether to detach objects on commit of the txn.
  */
 public void setDetachAllOnCommit(boolean detach) {
   pm.setDetachAllOnCommit(detach);
 }