Simple way to detect if a TransferObject has been deleted?

0 views
Skip to first unread message

LT

unread,
Feb 2, 2008, 11:46:26 PM2/2/08
to transfer-dev
Hi, guys.

Is there a simple way to test a TransferObject to see if the record it
represents has been deleted?
Thanks.

LT

Mark Mandel

unread,
Feb 3, 2008, 6:48:56 AM2/3/08
to transf...@googlegroups.com
You can use .getIsPersisted() to see if the object is from the DB.

If an object has been deleted, getIsPersisted() will return false.

Does that do what you need?

Mark

lagos.tout

unread,
Feb 4, 2008, 3:02:09 AM2/4/08
to transf...@googlegroups.com

Cool. Thanks. That worked.
 
LT
Reply all
Reply to author
Forward
0 new messages