To answer your first question, I'd say that you should leave any 
checking logic out of your DAOs.

For clarity, a DAO is where you do your DB querying; it returns Transfer 
Objects (TOs) as results, and accepts TOs as input for narrowing 
searches.  They usually represent an object that you want stored or 
retrieved from the database.

Your TOs should have setters and getters, and even should have zero 
logic unless you put it in the setters.  If you try to put a 50 
character string into a TO where the DB expects only 6 characters (for 
example), the TO should throw an exception or error out in some way.

If its not a getter or a setter, it doesn't belong in the TO, and if you 
have logic that checks the input data for correctness it belongs in the 
TOs setter.

(That's how I do it in Java, anyway.)

I don't have any experience with FDS, but you should give it a shot. 
Its free for a single box with up to 100 users, but if you ever outgrow 
that you'll need some real money on hand.  The prices have been 
mentioned on the list many times.

-- 
jeremiah();


Briggs, Christian M wrote:
> Hi Steven,
> 
> Thanks for the tip.  I have looked into Flex Dataservices, but am 
> hesitant for two reasons: (1)  I am working on a self-funded startup at 
> the moment, and am wary of the possible cost of the licensed version in 
> the future, and  (2)  I haven’t heard anything about performance
> 
> If anyone can help to answer these questions, I’d be grateful!
> 
> cb
> 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

<*> 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/
 


Reply via email to