Subversion Repository Public Repository

litesoft

Diff Revisions 233 vs 239 for /trunk/Java/core/Server/src/org/litesoft/orsup/nonpublic/PersistentObjectImpl.java

Diff revisions: vs.
  @@ -516,6 +516,19 @@
516 516 }
517 517
518 518 /**
519 + * Refresh this PO into the provided transaction if needed.
520 + *
521 + * @param pTransaction !null
522 + *
523 + * @return Transactional copy of the latest version read via Transaction (if it is not already in the Transaction), or Null if the PO is in another Transaction and isNew() OR has been deleted
524 + */
525 + public T freshIntoIfNotAlreadyIn( Transaction pTransaction )
526 + {
527 + IllegalArgument.ifNull( "Transaction", pTransaction );
528 + return pTransaction.freshIntoIfNotInTransaction( this );
529 + }
530 +
531 + /**
519 532 * @return this if it is already in the Transaction, or a COPY of this in the specified Transaction
520 533 */
521 534 @Override