Hi,
We do this now by implementing the TimeStampable interface. When the object
is being loaded, timestamp will be set before other field if your object
actually implement TimeStampable interface. Hence, u can set loading = true
in the jdoSetTimeStamp method ( the condition would be timestamp == 0 and
database == null, i.e. jdoPersistence/jdoBeforeCreate have not been called
before ). We then reset the loading flag = false in the jdoLoad method.
Hope this help.
Regards,
Low Heng Sin ( [EMAIL PROTECTED] )
-----Original Message-----
From: Mark Ericson [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 8:19
To: [EMAIL PROTECTED]
Subject: [castor-dev] Feature request
If possible it would be extremely valuable to change the 'jdoLoad()' method
to use the same pattern as create and remove. In particular to implement a
'jdoBeforeLoad()' and 'jdoAfterLoad() operation.
By doing this the object implementation can be in a 'loading' state where it
can track those fields that are populated during the load operation. My
application of this is for an object that will do its own dirty field
tracking. The implementation will track which fields are set during the
loading state of the object vs. modified while the object is not in the
loading state.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev