Thoughts from ADO

[email protected] Thu, 25 Nov 2010 09:23:35 +1000
Newsgroups gmane.comp.java.orm.simpleorm
Message-ID <[email protected]>
I was reading through ADO.Net recently, and two ideas from it might be good to add to SimpleOrm.

The first is DataSet.GetChanges, which produces a dataset which only has changed records.  It does a copy, but we could easily do a PurgeCleanRecords.  The point being that if a dataset is returned from a remote middle tier, we could purge out any unchanged records for efficiency.  Minor point but easy to implement.

The second is AcceptChanges.  What this does is explicitly mark a record non-dirty, and copies fields to the optimistic values.  It would be called by SessionJDBC after reading or updating records.  Might be a slightly cleaner approach to our current handing of dirtyness.

(SimpleOrm was conceived independently of ADO.Net, but there are similarities and I am always happy to pinch good ideas.)

Regards,

Anthony

Dr Anthony Berglas, [email protected]       Mobile: +61 4 4838 8874
Just because it is possible to push twigs along the ground with ones nose
does not necessarily mean that is the best way to collect firewood.



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/SimpleORM/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/SimpleORM/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/