Design Pattern Framework 3.5
DataAccess Class
Patterns-In-Action! Application ► DataObjects ► DataAccess
This class shields the client from the details of database specific
data-access objects. It returns the appropriate data-access objects
according to the configuration in web.config.
Declaration Syntax
C# | Visual Basic |
public static class DataAccess
Public NotInheritable Class DataAccess
Members
All Members | Properties | ||||
|
|
|
Icon | Member | Description |
---|---|---|
CustomerDao |
Gets a provider-specific customer data access object.
|
|
OrderDao |
Gets a provider-specific order data access object.
|
|
ProductDao |
Gets a provider-specific product data access object.
|
Remarks
GoF Design Patterns: Factory, Singleton, Proxy.
This class makes extensive use of the Factory pattern in determining which
database specific DAOs (Data Access Objects) to return.
This class is like a Singleton -- it is a static class (Shared in VB) and
therefore only one 'instance' will ever exist.
This class is a Proxy as it 'stands in' for the actual Data Access Object Factory.
Inheritance Hierarchy
Object | |
DataAccess |