A
Andy
Hi all,
I'm building various tiers to support multiple applications. I will
have the data layer, business layer, and serveral UI layers.
Currently I have a Data class when represents a single row in a
specific table. I have a business object which works solely on that
row.
In my business object, I have a method that will retreive the data by
instanciating the DA object, and call its load method. The business
object then copies the properties of the DA object into its own,
translating if necessary (for example, a column might have 1, 2, 3 or 4
while the Business layer has an enum representing each).
It feels like a design pattern such as a factory should apply here, but
I'm not really sure which one (if any), so I'd appreciate feedback from
the group.
Thanks!
Andy
I'm building various tiers to support multiple applications. I will
have the data layer, business layer, and serveral UI layers.
Currently I have a Data class when represents a single row in a
specific table. I have a business object which works solely on that
row.
In my business object, I have a method that will retreive the data by
instanciating the DA object, and call its load method. The business
object then copies the properties of the DA object into its own,
translating if necessary (for example, a column might have 1, 2, 3 or 4
while the Business layer has an enum representing each).
It feels like a design pattern such as a factory should apply here, but
I'm not really sure which one (if any), so I'd appreciate feedback from
the group.
Thanks!
Andy