Table of Contents

Interface IObjectLayerOnSession

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

Defines methods for object access layers created for nested units of work and units of work (or sessions) created in client applications based on ISerializableObjectLayerEx implementations.

public interface IObjectLayerOnSession

Methods

GetParentObjectsToDelete(Session)

When implemented by a class, returns a collection of objects marked for deletion in parent sessions.

ICollection GetParentObjectsToDelete(Session session)

Parameters

session Session

A Session object to which objects marked for deletion are loaded.

Returns

ICollection

A collection of objects loaded to the session from the immediate parent session. Collection elements match objects marked for deletion in parent sessions.

GetParentObjectsToSave(Session)

When implemented by a class, returns a collection of objects marked for saving in parent sessions.

ICollection GetParentObjectsToSave(Session session)

Parameters

session Session

A Session object to which objects marked for saving are loaded.

Returns

ICollection

A collection of objects loaded to the session from the immediate parent session. Collection elements match objects marked for saving in parent sessions.

GetParentTouchedClassInfos(Session)

When implemented by a class, returns the metadata of objects modified in parent sessions relative to a specified session.

ICollection GetParentTouchedClassInfos(Session session)

Parameters

session Session

A Session object specifying a session whose immediate parent session starts the search for modified objects up the nesting session hierarchy.

Returns

ICollection

A collection of XPClassInfo objects identifying objects modified in parent sessions relative to the session.

IsParentObjectToDelete(Session, object)

When implemented by a class, indicates if a specified object corresponds to a an object marked for deletion in parent sessions.

bool IsParentObjectToDelete(Session session, object theObject)

Parameters

session Session

A Session object specifying a session which contains theObject.

theObject object

The session‘s object to test.

Returns

bool

true if theObject corresponds to one of the objects marked for deletion in parent sessions; otherwise, false.

IsParentObjectToSave(Session, object)

When implemented by a class, indicates if a specified object corresponds to a an object marked for saving in parent sessions.

bool IsParentObjectToSave(Session session, object theObject)

Parameters

session Session

A Session object specifying a session which contains theObject.

theObject object

The session‘s object to test.

Returns

bool

true if theObject corresponds to one of the objects marked for saving in parent sessions; otherwise, false.