MapperFilters Methods |
The MapperFilters type exposes the following members.
Name | Description | |
---|---|---|
Add(MapperFilter) |
Adds a MapperFilter to the collection
| |
Add(String, Object) |
Adds an object to the collection. Override. This method simply calls the Add method with CollectionAddFlags.replace as the flags.
(Inherited from EAPCollectionBase.) | |
Add(String, MapperFilter) |
Adds a MapperFilter object to the collection.
| |
Add(String, String) |
Simple way to add a SQL filter CLAUSE to the collection.
| |
Add(String, Object, CollectionAddFlags) |
Adds an item to the collection
(Inherited from EAPCollectionBase.) | |
AddAt |
Adds an item to the collection at the specified index. To append an item use -1 or
the collection item count as the index.
(Inherited from EAPCollectionBase.) | |
AddDebugInfo |
Append debug information to this collection's DebugInfo text.
Note that this information is currently visible only in the debugger.
| |
AddRowKeyFilter(IMapper, String) |
Creates a new RowKey MapperFilter and adds it to the collection.
The filter is built by calling the provided mapper's RowKeyFilter(String) and passing the mapper's RowKey.
See CreateRowKeyFilter(String, String, String) for more details on a RowKey filter.
| |
AddRowKeyFilter(String, String, String) |
Creates a new RowKey MapperFilter and adds it to the collection.
See CreateRowKeyFilter(String, String, String) for more details on a RowKey filter.
| |
Clear |
Clears the collection
(Inherited from EAPCollectionBase.) | |
ClearByFlag |
Clears all filters having any of the specified FilterFlags set.
| |
ClearExceptFlag |
Clears all filters not having any of the specified FilterFlags set.
| |
Clone |
Creates a copy of the object and returns it.
| |
Contains |
Determines whether an element is in the collection.
(Inherited from EAPCollectionBase.) | |
ContainsClause |
Determine if a particular SQL filter clause is already present in the collection.
| |
ContainsKey |
Checks for the existence of an item in the hashtable
(Inherited from EAPCollectionBase.) | |
CopyTo |
Copies the entire ArrayList to a compatible one-dimensional Array, starting at the beginning of the target array.
(Inherited from EAPCollectionBase.) | |
CreateInstance(IAppContext, String) |
Creates an instance of the collection. If metadata caching is enabled, this method retrieves an
instance from the global cache and creates a clone of the object. If metadata caching is enabled and
the object isn't yet cached, this method caches the object.
| |
CreateInstance(IAppContext, String, Boolean) |
Creates an instance of the collection. If metadata caching is enabled, this method retrieves an
instance from the global cache and creates a clone of the object. If metadata caching is enabled and
the object isn't yet cached, this method caches the object.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that can iterate through the ArrayList.
(Inherited from EAPCollectionBase.) | |
GetFilter(GetFilterFlags) |
Returns the complete filter by combining filters in the collection according to provided GetFilterFlags.
In general GetFilter(GetFilterFlags, IMapper) is preferred as it has improved handlng for NamedFilters.
For testing for filter existence HasFilter(GetFilterFlags, FilterFlags) is preferred.
| |
GetFilter(GetFilterFlags, IMapper) |
Returns the complete filter by combining filters in the collection according to provided GetFilterFlags
and resolving any filters marked FutureEval (which requires the IMapper.
For testing for filter existence HasFilter(GetFilterFlags, FilterFlags) is preferred.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetItem(Int32) |
Returns an item that matches the specified string index
(Inherited from EAPCollectionBase.) | |
GetItem(String) |
Returns an item that matches the specified string index
(Inherited from EAPCollectionBase.) | |
GetItemName |
Returns the name of the item.
(Overrides EAPCollectionBaseGetItemName(Object).) | |
GetLikelyParentKeyValue |
Inspects the filters collection for filters marked Parent and extracts the row key value
(FieldValue) associated with each such filter.
Some Parent filters may not have non-null/empty 'values' associated with them.
If multiple Parent filters with non-null/empty values are found, then, arbitrarily, one of the values will be returned,
but the fact is devlogged.
| |
GetLikelyPKValue |
Inspects the filters collection for filters marked PK and extracts the row key value
(FieldValue) associated with each such filter.
Some PK filters may not have non-null/empty 'values' associated with them.
If multiple PK filters with non-null/empty values are found, then, arbitrarily, one of the values will be returned,
but the fact is devlogged.
| |
GetLongDesc |
Construct a detailed description for the entire collection of filters.
| |
GetShortDesc |
Calculates a short description for the entire collection of applied filters.
| |
GetShortDesc(FilterDescOptions) |
Calculates a short description for the entire collection of applied filters per the provided FilterDescOptions.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasFilter |
Determines the existence of one or more relevant filters in the collection according to provided GetFilterFlags.
Note that use of HasFilter(GetFilterFlags, FilterFlags) is preferred over GetFilter(GetFilterFlags) when testing for the existence
of filtering.
| |
IndexOf |
Returns the zero-based index of the first occurrence of an object in the internal ArrayList or in a portion of it.
(Inherited from EAPCollectionBase.) | |
IndexOfKey |
Returns the index of the item in the collection (by key)
(Inherited from EAPCollectionBase.) | |
Insert |
Inserts an element into the internal ArrayList at the specified index
(Inherited from EAPCollectionBase.) | |
IsDirty |
Determine the current dirty state of the collection and all MapperFilter items in it.
| |
IsMarkedForDeletion |
Returns true if the item is marked for deletion.
(Overrides EAPCollectionBaseIsMarkedForDeletion(Object).) | |
IsTypeOK |
Verifies the item is an acceptable type. Generally this is a test like "return (item is [class]);".
(Overrides EAPCollectionBaseIsTypeOK(Object).) | |
Load |
Loads the collection from the xmt_filters table.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RecalcHash |
Recalculates the internal hash
(Inherited from EAPCollectionBase.) | |
Remove(Object) |
Removes the first occurrence of a specific object from the collection
(Inherited from EAPCollectionBase.) | |
Remove(String) |
Remove the specified item from the collection.
(Inherited from EAPCollectionBase.) | |
RemoveAt |
Removes the element at the specified index
(Inherited from EAPCollectionBase.) | |
RemoveMarkedItems |
Removes the properties marked for deletion.
(Inherited from EAPCollectionBase.) | |
RemoveRange |
Removes the element at the specified index
(Inherited from EAPCollectionBase.) | |
SetDirty |
Set the dirty state of the collection and possibly all items in it.
| |
SetItem(Int32, Object) |
Sets an item's value at the specified index.
(Inherited from EAPCollectionBase.) | |
SetItem(String, Object) |
Sets an item's value at the string index indicated by the parameters.
(Inherited from EAPCollectionBase.) | |
Sort(Boolean) |
Sort the list by its key value.
(Inherited from EAPCollectionBase.) | |
Sort(IComparer) |
Sort the collection using the provided comparer.
(Inherited from EAPCollectionBase.) | |
SplitClauses |
Splits a string of zero or more filter or description clauses that were munged using ClauseSeparator.
Generally the munged string will have been created by calling either GetFilter(GetFilterFlags)
or GetLongDesc(GetFilterFlags) and passing the UseSeparator flag.
| |
Subset |
Obtain a MapperFilters collection with a subset of this collection's MapperFilter filters
where each has all the specified flags set.
For example, just ForUser to get all user-applied filters.
| |
ToolbarDesc |
Get a string describing these filters and appropriate for use as a toolbar description.
| |
ToString |
Construct the complete filter from this collection.
(Overrides ObjectToString.) | |
ToString(GetFilterFlags) |
Construct the complete filter from this collection (per GetFilterFlags flags).
| |
Truncate |
Truncate the array starting at the specified index.
(Inherited from EAPCollectionBase.) | |
Unload |
Called when the collection is cleared allowing a derived class to clean up.
(Inherited from EAPCollectionBase.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |