Object Access Layer
- 2 minutes to read
An object access layer (OAL for short) is a mediator between a session (or unit of work) and a data access layer. An OAL translates object queries and storage schema updates to corresponding statements, and passes them to a data access layer for execution. With OALs, sessions and units of work abstract data access at the object level, while leaving data store specifics to data access layers.
XPO provides the following object layer implementations.
- SimpleObjectLayer - Created by default for a session or unit of work. This object layer uses a data access layer as a data source.
- SessionObjectLayer - Created by default for nested units of work. This object layer uses a parent unit of work as a data source.
- SerializableObjectLayerClient - Available for applications transferring data over the wire via WCF, .NET Remoting, etc. This object layer uses the SerializableObjectLayer class or any other class implementing the ISerializableObjectLayer interface as a data source.