--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:

> Oh, collery: Using FDS data-sync is a bad idea from this point of 
view, as it  allows the app very fine grained access (i.e. at the 
level of tables) as opposed to a high level business process (create 
a user with these properties). I don't see a way to have FDS managed 
data-sync *and* proper control over what goes in the DB. <


On the contrary the client side code of FDMS only manages changes to 
an object's properties and messages those changes to the server which 
processes them and sends the changes to other subscribed clients.  
This object is your transfer object (TO) which, typically represents 
only a portion of your server side domain model. This TO can contain 
logic or merely values (as in the value object or VO case). But, it 
is an object which typically represents something like a customer, 
user, or some complex object graph not merely a row in a DB table.

It is the server side "assembler" that is responsible for reconciling 
the updates to these objects with the corresponding server model. 
This includes identifying conflicts or other data integrity 
constraints and faulting as appropriate. This "assembler" can contact 
any business process it needs to, typically a data access object 
layer. And it does support the notion of "create a user with these 
properties". The assembler is notified of each request from the 
client through a change object.  This "assembler" is custom code that 
you write to run in a server side container. This gives the developer 
complete control over what is applied to the domain model on the 
server side (which could be persisted to a DB).

A hibernate "assembler" is provided and can perform DB interactions 
directly but, its use is not enforced by FDMS, it is provided as a 
convenience.

Hope that clears things up.
jw





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

<*> Your email settings:
    Individual Email | Traditional

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

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[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/
 



Reply via email to