Re: Thoughts from ADO

Franck Routier <[email protected]> Thu, 25 Nov 2010 18:42:20 +0100
Newsgroups gmane.comp.java.orm.simpleorm
Organization Axège sarl
Message-ID <1290706940.13363.20.camel@franck-laptop>
Hi Anthony,

> 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.

Do you mean if the dataset has to travel on the wire or between several
JVMs ?

> 
> 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.

Couldn't you elaborate on this, I don't get the point ?...


While we are on new ideas, I'm missing a feature in current Simpleorm,
related to data validation.
Currently we can valide a field, or a record.
But there is no easy way to validate coherence between different
records.
For example I can handle the fact that a field must be a date, or a date
after 01/01/2000, with SValidator. I can check on the record level that
the beginning date is before the end date of the record, with
onValidateRecord(). But I have no way to check that two record won't
have overlapping periods before committing... (well, no way native to
Simpleorm).

I don't really know how this would be possible, or how other frameworks
address this issue, but it would certainly be interesting to have.

Any comment ?

Regards,

Franck




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

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/