Groups > Borland > Delphi Object Oriented design > Re: Data layer as a package




Data layer as a package

Data layer as a package
Thu, 2 Aug 2007 15:35:46 -0400
I am about to start a large project that will consists of many applications 
accessing various tables in a main MSSQL database.  The same application may 
be executed by several different users on a network at once.  A table 
containing something like company department definitions will be needed on 
more that one application and may have several users running applications 
that access that table.

Does it make sense to create a package with datamodules for these kind of 
tables?  For example, a datamodule would be created in the package to handle 
the department table.  Offering methods such as New(), Save() and Delete(); 
in addition this dm could contain a query listing all departments for use on 
a DataSource.

This would allow me to make a change to the package then recompile 
applications using that package...centralizing my data access layer in the 
package.  Is there a better way?

Thanks. 

Post Reply
Re: Data layer as a package
Mon, 06 Aug 2007 09:11:55 -030
You need to separate your business logic and data access into a separate 
application (App server) using something like RemObject DataAbtract, or 
Kwbm, or build something similar on your own.

Leonardo M. Ramé
http://leonardorame.blogspot.com
Post Reply
about | contact