Teddy I believe isDirty() is a method on the Record object itself.

On 5/31/06, Teddy Payne <[EMAIL PROTECTED] > wrote:
I should download a copy of Reactor for when I am at work.

So there is an isDirty() method in the record factory?  If this is the case, knowing that if I have a dirty read or not would suit my needs just as much as having an exists() method.

I am not trying to undermine you Tom.  I swear!

I just read through an OR mapping presentation and he even alluded to the isDirty() when loading data. (Thanks Ken!)



On 5/31/06, Doug Hughes <[EMAIL PROTECTED]> wrote:
You make a compelling argument.  Not having a reliable interface is a big
mistake.

In a day or so I'm going to start requesting that people add trouble tickets
to trac. When I do that, please add this as a bug for the BC 2 milestone.

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf
Of Tom Chiverton
Sent: Wednesday, May 31, 2006 8:54 AM
To: [email protected]
Subject: Re: [Reactor For CF] Why no exists() method for objects with
auto_increment PK ?

On Wednesday 31 May 2006 13:15, Doug Hughes wrote:
> When a new record is created it'll have an ID, but you won't be able to
> tell from that if it really is a new record or an existing record.  That's
> why for those I add the call to the exists method.

Ahh :-)
It's not missing from auto_increment PK's, it's added to non-auto_increment,

if I get you right.

> I don't want to add exists in all cases because I don't think that you
> should have that extra call to the DB unless it's really needed.

:nods
I'm not suggesting adding the call to exists() in the general save() method
though (that would generate a pointless extra DB call as you say), just
always having it in the DAO and exposing it via the Record as a matter of
course for people who want to use it.

--
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of
the Year at the 2005 Growth Company Awards





-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/







-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/






--
<cf_payne />


-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/



-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

Reply via email to