XPObjectSpace Members

Constructors

Name Description
XPObjectSpace(ITypesInfo, XpoTypeInfoSource, CreateUnitOfWorkHandler)

Creates a new instance of the XPObjectSpace class.

XPObjectSpace(ITypesInfo, XpoTypeInfoSource, UInt16, CreateUnitOfWorkHandler)

Creates a new instance of the XPObjectSpace class.

XPObjectSpace(ITypesInfo, XpoTypeInfoSource, UInt16, UnitOfWork)

Creates a new instance of the XPObjectSpace class.

Fields

Name Description
InstantFeedbackSourceDismissSession
InstantFeedbackSourceResolveSession

Properties

Name Description
AsyncServerModeSourceDismissSession

Obsolete. This API is obsolete now.

AsyncServerModeSourceResolveSession

Obsolete. This API is obsolete now.

Connection

Gets the connection to the underlying data source.

Database

Gets the name of the database used when a connection associated with the current Object Space's XPObjectSpace.Session is opened.

InstantFeedbackMappingMode

Specifies what properties should be mapped on a grid in the InstantFeedback mode.

IsConnected

Indicates whether the XPObjectSpace's Session is connected to the database.

ModifiedObjects

Returns a collection of objects that have been created, modified or deleted after they were retrieved or committed.

Session

Provides access to a Session that is used to load and save persistent objects.

XpoTypeInfoSource

Methods

Name Description
ApplyCriteria(Object, CriteriaOperator)

Filters a particular collection on the server side.

ApplyFilter(Object, CriteriaOperator)

Filters a particular collection on the client side.

CanApplyCriteria(Type)

Indicates whether collections of a particular type can be filtered on the server side.

CanApplyFilter(Object)

Indicates whether a particular collection can be filtered on the client side.

CanInstantiate(Type)

Indicates whether instances of a particular type can be created.

CombineCriteria(CriteriaOperator[])

Combines criteria operators passed as parameters.

Contains(Object)

Indicates whether a specified object belongs to the current Object Space.

CreateInstantFeedbackCollection(Type, CriteriaOperator)
CreateNestedObjectSpace()

Creates a nested Object Space.

CreateParseCriteriaScope()

Used when parsing a CriteriaOperator represented by a string and containing persistent objects.

CreateServerCollection(Type, CriteriaOperator)

Creates and initializes a new instance of the XPServerCollectionSource class with the current Object Space's XPObjectSpace.Session and criteria-specific options.

CreateSortingCollection(IList<SortProperty>)
Dispose()

Releases all resources used by an XPObjectSpace object.

EnableObjectDeletionOnRemove(Object, Boolean)

Enables/disables the deletion of persistent objects from the data source when they are removed from the specified collection.

Evaluate(Type, CriteriaOperator, CriteriaOperator)

Evaluates the specified criteria for business objects of the given type.

FindObject(Type, CriteriaOperator, Boolean)

Searches for the first object which matches the specified criteria.

FindObjectSpaceByObject(Object)

Determines the Object Space used to load and save a specified persistent object.

GetCollectionObjectType(Object)
GetCollectionSorting(Object)

Returns the sort settings for a particular collection.

GetCriteria(Object)

Returns the criteria used to filter a particular collection on the server side.

GetDisplayableProperties(Object)

Gets the properties considered visible by the specified collection.

GetEvaluatorContextDescriptor(Type)

Creates an instance of the EvaluatorContextDescriptor that is used to supply metadata on the specified type to the ExpressionEvaluator objects.

GetFilter(Object)

Returns the criteria used to filter a particular collection on the client side.

GetIntermediateObjectReferences(Object, out Object, out Object)
GetKeyValue(Object)

Returns the key property's value of the specified persistent object.

GetKeyValueAsString(Object)

Returns the key property's value of the specified object, converted to a string representation.

GetListServer(Object)

For internal use.

GetObject(Object)

Retrieves an object from another Object Space to the current Object Space.

GetObjectByKey(Type, Object)

Returns the persistent object that has the specified value for its key property.

GetObjectKey(Type, String)

Converts the key property value string representation into its actual type.

GetObjectsQuery<T>(Boolean)

Gets a queryable data structure that provides functionality to evaluate queries against a specific business object type.

GetObjectsToDelete(Boolean)

Returns a collection of persistent objects that will be deleted when the current transaction is committed, including objects that will be deleted in the parent transaction(s), optionally.

GetObjectsToSave(Boolean)

Returns a collection of persistent objects that will be saved when the current transaction is committed, including objects that will be saved in the parent transaction(s), optionally.

GetTopReturnedObjectsCount(Object)

Returns the maximum number of objects to be retrieved by the specified collection from a data store.

IsCollectionLoaded(Object)

Indicates whether a particular collection is loaded with objects from the database.

IsDeletedObject(Object)

Indicates whether the specified persistent object is deleted and this is committed to the database.

IsDeletionDeferredType(Type)

Returns a value that indicates if the deferred deletion is enabled for persistent objects of a given type.

IsDisposedObject(Object)

Determines whether an object has been disposed of.

IsIntermediateObject(Object)
IsNewObject(Object)

Indicates whether a specified object has been created but has not been saved to the database.

IsObjectDeletionOnRemoveEnabled(Object)

Indicates whether the deletion of persistent objects from the data source when they are removed from the specified collection is enabled.

IsObjectToDelete(Object)

Indicates whether the specified object has been deleted but not committed in the transaction currently in progress.

IsObjectToSave(Object)

Indicates whether the specified object has been added, deleted or modified, but not committed in the transaction currently in progress.

ParseCriteria(String)

Parses the specified criteria expression in the XPObjectSpace's XPObjectSpace.Session.

RaiseObjectPropertyChanged(Object, String)

This method is intended for internal use.

ReloadCollection(Object)

Clears a collection, and marks it to be reloaded with data from the database.

ReloadObject(Object)

Reloads the state of the specified persistent object and its aggregated objects from the data store.

RemoveFromModifiedObjects(Object)

Removes the specified object from the list of objects to be committed.

SetCollectionSorting(Object, IList<SortProperty>)

Applies the specified sorting to a given collection.

SetDisplayableProperties(Object, String)

Sets the properties to be visible by the specified collection.

SetPrefetchPropertyNames(Object, String[])
SetTopReturnedObjectsCount(Object, Int32)

Sets the maximum number of objects that can be retrieved from the specified collection in a data store.

TryGetObjectHandle(Object, out String)

Creates a handle for the specified object if this object is persistent and is not a new one.