DataObjectLoadOptions Class |
Namespace: Omada.OE.Model
[SerializableAttribute] public class DataObjectLoadOptions : DataObjectLoadOptionsBase
The DataObjectLoadOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | AccessModifierClassInfo |
Can be used to specify the details of an access modifier class.
If an access modifier is specified it overrides an eventual access modifier specified on the data object type of the data objects being loaded.
Can be null.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | AllVersions |
Determines whether only the newest (default) or all versions should be loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | ApplyCaching |
Caching can be applied when no special objects are being loaded and
when no property security is being applied.
|
![]() | BuildTree |
Defines whether the tree structur must be composed during the load of DataObjects
BuildTree does not affect the number of objects loaded from the database in the first place,
but if there are holes in the tree structure, the missing objects are loaded in a second round.
Objects loaded in the secund round are populated with limitted data. These object
has the attribute IsMissingParent set to true and does not appear in the DataObjects collection.
|
![]() | CreateSpecialDataObjects |
Determines whether special objects are created during the load of DataObjects.
If set to true, User objects are created for DataObjects of type User.
If not set, all objects are loaded as DataObjects which saves performance.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | DataObjectIds | (Inherited from DataObjectLoadOptionsBase.) |
![]() | DataObjectTypeIds | (Inherited from DataObjectLoadOptionsBase.) |
![]() | DataObjectUIds | (Inherited from DataObjectLoadOptionsBase.) |
![]() | ExcludeDataObjectIds | (Inherited from DataObjectLoadOptionsBase.) |
![]() | ExcludeObjectsWithoutChildPossibility |
If set, only object which allow child objects are loaded.
USed in the tree structure to save performance.
|
![]() | Filter |
Certain attributes on the filter is handled specially:
* AcceptanceFlags and ActionStatus is only used by ProcessController.GetActivityManager()
* RootNodeId is never used - the caller must translate it to the treenode load options.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | FilterExpressions | (Inherited from DataObjectLoadOptionsBase.) |
![]() | FixedFields |
Which fixed fields should be read?
Only a subset of fixed fields can be controlled with this collection, others are always loaded.
If the list is empty, none of the (applicable) fixed fields are populated.
Use AddAllFixedFields to populate the collection in an easy way.
|
![]() | ForceMaxObjects |
MaxObjects is ignore if Allversions=true.
ForceMaxObjects overrides this.
|
![]() | IdNegList |
Negative list of dataobject ID's.
No objects with the provided ID's are loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | IdPosList |
Positive list of dataobject ID's. Unless the list is empty,
only objects with the provided ID's are loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | IndexFirst |
Index of the first object to be read.
IndexFirst is 0-based.
|
![]() | LoadActiveActivityObjects |
Specifies if the ActiveActivities collection must be populated.
|
![]() | LoadActivityAssignees |
Specifies whether the Assignee information will be loaded for the activities (if any) that are loaded.
|
![]() | LoadActivityForms | |
![]() | LoadActivityProcessObjects |
Specifies if process objects must be loaded for loaded activity objects.
|
![]() | LoadChildrenAllowsChildrenInfo |
Determines if child object information must be loaded must be loaded (does at least one child object allow child objects)
The information does not respect security (having access to see those child objects)
The result is stored in DataObject.ChildrenAllowsChildren.
|
![]() | LoadDataExchangeConfigId |
If set to true, the value of DataExchangeConfigId on the loaded DataObjects will be populated.
|
![]() | LoadFileAttachments |
Determines if file attachments shall be loaded.
|
![]() | LoadProcessActivityObjects |
Specifies if activity objects must be loaded for loaded process objects.
|
![]() | LoadProcessTargetObjects |
Specifies if target objects must be loaded for process objects.
|
![]() | LoadReadInfo |
Determines if information on who read the version object and when should be loaded.
|
![]() | LoadReferences | Obsolete. |
![]() | LoadSecurity |
Determines if object security must be loaded.
If set, the DataObject.SecurityObject attribute will be populated.
|
![]() | MaxObjects |
Maximum number of objects to load.
(If BuildTree=true we may load more objects)
If MaxObjects = 0 all objects are loaded.
|
![]() | MustBeReferredByDataObjectIds | (Inherited from DataObjectLoadOptionsBase.) |
![]() | MustHaveReferenceToDataObjectIds | (Inherited from DataObjectLoadOptionsBase.) |
![]() | NotReferredThroughRefPropertyIdList |
Only object which are not referred to by any object through the provided reference propertyies are loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | OverrideAccessModifier |
Specifies whether the access modifier specified in AccessModifierClassInfo should be overridden.
An eventual access modifier specified on the data object type, of the data objects being loaded, is also overridden.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | OverrideDataObjectSecurity |
Determines whether dataobjects should be loaded even though the user doesn't have access to them.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | OverrideFilter |
Determines whether the filter (expressions) should be disregarded.
Note: This option is primarily for the cache refresh metod in AppLogic.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | OverridePropertySecurity |
Determines whether properties should be loaded even though the user doesn't have access to them.
|
![]() | OverrideSecurity |
Sets the following flags:
- OverrideDataObjectSecurity
- OverridePropertySecurity
- OverrideAccessModifier
(Inherited from DataObjectLoadOptionsBase.) |
![]() | ParentIds | (Inherited from DataObjectLoadOptionsBase.) |
![]() | PropertyIds |
PropertyIds can be used to limit which properties are populated on the loaded data objects.
Only loading a subset of properties can have a positive impact on performance.
If the list is empty, all properties are populated (unless SkipProperties is true)
|
![]() | ReferredObjectIdList |
Only object which refers the provided data objects through a reference property are loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | ReferringObjectIdList |
Only object which are referred to by the provided data objects through a reference property are loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | SearchFullTextIndex |
Defines if a fulltext search is required.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | SearchString |
If SearchString is defined only objects which match the search string is loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | ShortTextVersions |
Determines whether only short versions of the contents
of the various value properties of datatype=text will be loaded.
Loading the short versions improves performance.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | SkipAllObjects |
If this option is set nothing will be loaded at all!
(Inherited from DataObjectLoadOptionsBase.) |
![]() | SkipDBLockedObjects | Obsolete.
Determines whether locked objects are skipped.
If set to true, READPAST is used as locking hint in the database.
Used in for instance dataobjlst.aspx as it increases the throughput.
It may cause objects to disappear from the list while being updated in another transaction.
To be used with grat caution.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | SkipDefaultValues |
Skip the assignment of default values to the data objects
|
![]() | SkipObjectsWithInfiniteDateTimeValues |
Skip objects with infinite date time values in the properties specified in the list.
An infinite date time is a date time value where the year is 9999. Only the year part of the date time is checked.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | SkipProperties |
If PropertyIds is empty and SkipProperties is true then no properties are populated at all on the loaded data objects.
|
![]() | SkipReferencePropertyPopulation |
Specifies that reference property values must not be populated, i.e. their displayname shall not be loaded.
Can be used to save performance when many objects are loaded and
where the display name of reference property values are not used.
Population of reference property values also involves checking and removing any that are for invalid objects.
|
![]() | SkipVersionsCreatedAfter |
If set, only versions created after a certain date is loaded.
Used when AllVersions=true.
|
![]() | SkipVersionsCreatedBefore |
If set, only versions created before a certain date is loaded.
Used when AllVersions=true.
|
![]() | SortFields |
Contains the sort fields.
If no fields are provided we sort on Data Object ID.
FixedFields must be provided with a negated Id.
|
![]() | SqlFilterParameters |
Can hold parameters to the custom sql filters applied in SqlFilters.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | SqlFilters |
SqlFilters can be used to apply custom sql filtering to the data object query.
Each filter is added like this: "[where|and] ([filter])".
Using the SqlFilters requires knowledge of the construction of the data object query!
SqlFilters should ONLY be used if none of the other available filters can be applied!
Examples:
- "do.number > 100"
- "not exists (select 1 from sometable as st where st.doid = do.id)"
(Inherited from DataObjectLoadOptionsBase.) |
![]() | TemplateStatus | (Inherited from DataObjectLoadOptionsBase.) |
![]() | TreeNodeChildren |
Levels of children to load under those object provided in TreeNodeIdList.
TreeNodeChildren does only have effect of TreeNodeIdList contains some elements.
All means all nodes on all leves under the provided objects
None: No child objects are loaded.
OneLevel: One level of children are loaded (the direct children)
TwoLevels: Two levels of children are loaded (children and childrens children)
ThreeLevels: Three levels of children are loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | TreeNodeIdList |
Only load object which has the provided parents or children
See also TreeNodes, TreeNodeChildren og TreeNodeParents.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | TreeNodeParents |
Behaviour for loading objects in TreeNodeIdList.
TreeNodeParents only has effect of TreeNodeIdList contains some elements.
None: No parents to the objects in TreeNodeIdList are loaded.
RootPath: Direct nodes on the path from the object in TreeNodeIdList to the ROOT are loaded.
RootPathAndChildren: As RootPath, but immediate children to nodes are also loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | TreeNodes |
Load the objects as provided in TreeNodeIdList
(Inherited from DataObjectLoadOptionsBase.) |
![]() | TypeIdNegList |
Negative list of dataobject Type ID's.
The types with the provided UID's will not be loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | UIdPosList |
Positive list of dataobject UID's. Unless the list is empty,
only objects with the provided UID's are loaded.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | UnresolvedFilterExpressions |
Unresolved filter expressions are added using IDataObjectLoadOptionsBase.AddFilterExpression()
(Inherited from DataObjectLoadOptionsBase.) |
![]() | UseClassicLoadMethod | Obsolete. |
Name | Description | |
---|---|---|
![]() | AddAllFixedFields |
Add alll possible fixed fields to the load options
|
![]() | AddFilterExpression(UnresolvedFilterExpression) |
Add filter expression object to the collection
(Inherited from DataObjectLoadOptionsBase.) |
![]() | AddFilterExpression(String, ExpInnerOperator, Boolean, String) | (Inherited from DataObjectLoadOptionsBase.) |
![]() | AddFilterExpression(String, ExpInnerOperator, IEnumerableGuid, String) | (Inherited from DataObjectLoadOptionsBase.) |
![]() | AddFilterExpression(String, ExpInnerOperator, IEnumerableInt32, String) | (Inherited from DataObjectLoadOptionsBase.) |
![]() | AddFilterExpression(String, ExpInnerOperator, DateTime, String) | (Inherited from DataObjectLoadOptionsBase.) |
![]() | AddFilterExpression(String, ExpInnerOperator, Int32, String) | (Inherited from DataObjectLoadOptionsBase.) |
![]() | AddFilterExpression(String, ExpInnerOperator, String, String) | (Inherited from DataObjectLoadOptionsBase.) |
![]() | AssignDisplayOptionsFromView |
Assigns particular load options from a view. It is used in placed where DataObjects
are loaded based on a view for display to the user. The method is not merged with
AssignFromView since DataObjects sometimes are loaded based on a view without the
need for all the normal view attributes.
|
![]() | AssignFrom |
Initialize and object from another load options object
(Inherited from DataObjectLoadOptionsBase.) |
![]() | AssignFromView |
Assigns all options based on the view definition. The parent attribute from the view
can be overridden with the parentId parameter.
(Overrides DataObjectLoadOptionsBaseAssignFromView(DataObjectView, Int32).) |
![]() | getOverrideSecurity |
Returns true if security shall be overridden on the data load.
(Overrides DataObjectLoadOptionsBasegetOverrideSecurity.) |
![]() | setOverrideSecurity |
Sets all securyty override flags (DataObjectSecurity, AccessModifier and Property)
(Overrides DataObjectLoadOptionsBasesetOverrideSecurity(Boolean).) |
![]() | SetPaging |
Sets the values of the
MaxObjects and IndexFirst properties accordingly
to load paginated data.
|
![]() | SetSearchString |
Sets the value of SearchString unless the provided value is empty and leaveIfEmpty=true.
(Inherited from DataObjectLoadOptionsBase.) |
![]() | ValidateOptions |
Validates that the supplied attributes are not mutual exclusive.
An exception can be raised. In particular cases the attributes
are corrected.
(Overrides DataObjectLoadOptionsBaseValidateOptions.) |
Name | Description | |
---|---|---|
![]() | SkipCheckForTypeChanges |
The check for changes to the DataObjectType object can be skipped when running inside a loop.
(Inherited from DataObjectLoadOptionsBase.) |
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |
Name | Description | |
---|---|---|
![]() ![]() ![]() | IDataObjectLoadOptionsBaseSqlFilters |
States a list of sql filters.
Sql filters are added to the "where" clause of the query used for loading data objects.
Using sql filters requires knowledge of how the data object query is constructed
and should be used with great caution.
(Inherited from DataObjectLoadOptionsBase.) |