RE: [CFCDev] Best way to expose a Array of Objects inside a BO

2005-09-21 Thread RADEMAKERS Tanguy
What you could also do is define your own collection type - an ArrayOfComments.cfc that only allows instances of Comment.cfc. Then you return that from BlogPost.getComments(), and implement your various addComment(), removeComment() functions there. /t -Original Message- From: [EMAIL

RE: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread RADEMAKERS Tanguy
Another option is to roll your own date object and pass an instance of it into the function instead. Actually, this could be one way around the whole type safety / null problem with cf - develop a system of object types (Date.cfc, Integer.cfc, String.cfc, etc). Then you could choose to work with

Re: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread Bill Rawlinson
Kerry, You would define you're own rule for what a NULL is for that type since you're creating the component. If a zero-length string is a null to you thens ure isNull would return true. if the rule was the string had to be equal to NULL then no, a zero length string would return false. Bill

RE: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread RADEMAKERS Tanguy
only if it had never been set: cfset myString = createobject(component,types.String) cfoutput#myString.isNull()#/cfoutput --- should return true --- cfset myString.init(Hello World) cfoutput#myString.isNull()#/cfoutput --- should return false --- /t -Original Message- From: [EMAIL

RE: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread RADEMAKERS Tanguy
i'd go with objects are null until explicitly initialized - you could track it with a private attribute and then toggle that from within the init method. You don't ever need to nullify an object once it has been initialized... /t -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread Bill Rawlinson
or, if you did want to null the object you could have a method, setNull() which just turns the flag back on. cfset myString = createobject(component,types.String) cfoutput#myString.isNull()#/cfoutput --- should return true --- cfset myString.init(Hello World)

RE: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread RADEMAKERS Tanguy
but then you'd be open to the weird situation of having an object that claims it is null but contains a value. If you need a null object, just create a new one and don't initialize it. /t -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Rawlinson

Re: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread Bill Rawlinson
i think my setNull function would probably clear out the value. not calling the init function on create seems a little sketchy to me. It is common practice in almost all CFC discussion on this list to call init during creation as the constructor method. I would prefer to explictly set the

RE: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread Kerry
just a nasty little idea for re-nulling an object: function setNull(){ this = createobject(component,getMetaData(this).name); } :P -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of RADEMAKERS Tanguy Sent: 21 September 2005 15:05 To:

Re: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread Patrick McElhaney
Maybe you could have two different objects: a value object and a null object. For example, you could have a Date object that always has a value, and a NullDate that extends Date and doesn't have a value. - You don't skip the init method. (Bill's concern.) - An object can't simultaneously have a

RE: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread RADEMAKERS Tanguy
the problem is that you need a solution that works for all data types, not just dates - so you wind up with a NullDate.cfc, NullString.cfc, etc. If you want nullifyable objects, then Kerry's proposed setNull() method looks like the way to go (IMHO) /t -Original Message- From: [EMAIL

[CFCDev] No CFC BOF at MAX

2005-09-21 Thread Raymond Camden
Just found the list of BOFs for MAX was released, and there is no CFC BOF this year. :( Two years ago I ran an unofficial BOF. If there is enough interest in an unofficial CFC BOF this year, let me know and I'll see what I can work up. --

RE: [CFCDev] No CFC BOF at MAX

2005-09-21 Thread Ian Skinner
I enjoyed last years, was that official or un-official. I would definitely attend one this year official or not. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This

Re: [CFCDev] No CFC BOF at MAX

2005-09-21 Thread Raymond Camden
Two years ago it was unofficial. So I ended up renting a room from the hotel for the meeting. Someone paid for it, I forget who. Last year it was official. On 9/21/05, Ian Skinner [EMAIL PROTECTED] wrote: I enjoyed last years, was that official or un-official. I would definitely attend one

RE: [CFCDev] No CFC BOF at MAX

2005-09-21 Thread Billings, Brian J. (SMG)
If I could make it, I would be there. After the hotel bill at CFUNITED, my company limited me to one conference a year. :( -Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Skinner Sent: Wednesday, September 21, 2005 5:36 PM To:

RE: [CFCDev] No CFC BOF at MAX

2005-09-21 Thread Ali Awan
Still working on getting my company, to send me there. If they do, then I'd be in. Ali -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Camden Sent: Wednesday, September 21, 2005 2:59 PM To: CFCDev@cfczone.org Subject: Re: [CFCDev] No CFC BOF at

[CFCDev] MyGeneration : CodeGeneration Tool

2005-09-21 Thread Peter Hardy
Hi guys, Just stumbled across a code generation tool which looks pretty impressive. I didn't write it (so have no vested interest in it) but it does look promising. It can connect to lots of different databases and allows you to write your code gneration templates in JScript, _vbscript_, C# or

RE: [CFCDev] No CFC BOF at MAX

2005-09-21 Thread Cameron Childress
Brian Said: After the hotel bill at CFUNITED, my company limited me to one conference a year. :( Luckily, movie titles do not show on the final bill... Ray, I'd be up for a CFC BOF, assuming there aren't 20 other things competing for my attention during that hour. ;) -Cameron

Re: [CFCDev] No CFC BOF at MAX

2005-09-21 Thread Eric Knipp
Sounds good to me. Will be my first MAX so I am jazzed.On 9/21/05, Cameron Childress [EMAIL PROTECTED] wrote: Brian Said: After the hotel bill at CFUNITED, my company limited me to one conference a year. :(Luckily, movie titles do not show on the final bill...Ray, I'd be up for a CFC BOF,

RE: [CFCDev] No CFC BOF at MAX

2005-09-21 Thread Billings, Brian J. (SMG)
LOL Thankfully they took care of the two pre classes, the plane, the car , the hotel and all of the Pepsi's I drank (wink) for 5 days. HOTEL= $1200 Car = $500 Plane = $600 CFUNITED = Priceless Oh wait, They forgot to mention the rest of the four thousand dollar AMEX bill !! -Brian

RE: [CFCDev] No CFC BOF at MAX

2005-09-21 Thread hal helms
I think this is very important, Ray. If you need any help, I'd be happy to lend a hand. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Camden Sent: Wednesday, September 21, 2005 5:22 PM To: cfcdev@cfczone.org Subject: [CFCDev] No CFC BOF at MAX

Re: [CFCDev] No CFC BOF at MAX

2005-09-21 Thread Douglas Knudsen
hear hear! me three...as long as I can make it to the Flex/Zorn BOF. With do much emphasis on Flex/Flash/RIa where is CF at MAX athese days really? And what's with all the Next Generation phrases on the MAX scheduler, eh? Maybe its Flex 2.0 ;) DK On 9/21/05, hal helms [EMAIL PROTECTED]

[CFCDev] suggestions for DAO generators for CF (was MyGeneration: CodeGeneration Tool)

2005-09-21 Thread Barry Beattie
's funny that Peter brought this up I'm looking for a DAO generator for CF at the moment. the trouble is, I know exactly what I want but can't find the right one. Can anyone suggest a DAO generator? - MUST support Informix databases (v 9.4) (and eventually SQLServer, but that's later next