Interface IDataSetProcessor
Assembly: LemonEdge.API.dll
Syntax
public interface IDataSetProcessor : IBaseDataSetProcessorWithDBSave, IBaseDataSetProcessor, IProcessor, IDisposable
Properties
Dataset
The root dataset item this processor is responsible for
Declaration
IDataset Dataset { get; }
Property Value
FieldInfos
The list of field info records that describe what produced a specified column
ISQLTypeWrapper record.
This links the queryable item field
GetFields(IReadOnlyCache) to the corrosponding
column holding the value result
Declaration
IEnumerable<IDatasetQueryableItemFieldInfo> FieldInfos { get; }
Property Value
Wrapper
The ISQLWrapper that backs this dataset and holds the automatically created sql
Declaration
ISQLWrapper Wrapper { get; }
Property Value
Methods
AllDatasetQueryableItems()
Declaration
IEnumerable<IDatasetQueryableItem> AllDatasetQueryableItems()
Returns
BelongsToDatasetQueryableItemSet(IFilterDescriptor, IDatasetQueryableItem)
Declaration
bool BelongsToDatasetQueryableItemSet(IFilterDescriptor desc, IDatasetQueryableItem item)
Parameters
Returns
BelongsToDatasetQueryableItemSet(ISQLTypeWrapper, IDatasetQueryableItem)
Declaration
bool BelongsToDatasetQueryableItemSet(ISQLTypeWrapper typeWrapper, IDatasetQueryableItem item)
Parameters
Returns
GetColumns(IDatasetQueryableItem)
Declaration
IEnumerable<ISQLTypeWrapper> GetColumns(IDatasetQueryableItem forRoot)
Parameters
Returns
GetDatasetQueryableItemRoots()
Declaration
IEnumerable<IDatasetQueryableItem> GetDatasetQueryableItemRoots()
Returns
GetDatasetQueryableItems(IDatasetQueryableItem)
Declaration
IEnumerable<IDatasetQueryableItem> GetDatasetQueryableItems(IDatasetQueryableItem parent)
Parameters
Returns
GetFilters(Guid?)
Declaration
IEnumerable<IFilterDescriptor> GetFilters(Guid? datasetQueryableItemID)
Parameters
Type |
Name |
Description |
Guid? |
datasetQueryableItemID |
|
Returns
GetFirstRootQueryableItem()
Declaration
IDatasetQueryableItem GetFirstRootQueryableItem()
Returns
GetParameters()
Declaration
IEnumerable<ISQLTypeWrapper> GetParameters()
Returns
GetQueryableItem(Guid)
Declaration
IQueryableItem GetQueryableItem(Guid forDataSourceQueryableItemID)
Parameters
Type |
Name |
Description |
Guid |
forDataSourceQueryableItemID |
The IDatasetQueryableItem to return an instance
of the actual queryable item for
|
Returns
GetQueryableItemFields(Guid)
Declaration
IEnumerable<IQueryableFieldInfo> GetQueryableItemFields(Guid forDataSourceQueryableItemID)
Parameters
Returns
GetQueryableItemParams(Guid)
Declaration
IEnumerable<IQueryableParamInfo> GetQueryableItemParams(Guid forDataSourceQueryableItemID)
Parameters
Returns
GetRootQueryableItem(IDatasetQueryableItem)
Declaration
IDatasetQueryableItem GetRootQueryableItem(IDatasetQueryableItem item)
Parameters
Returns
GetSubEntities()
Declaration
IEnumerable<EntityDescriptor> GetSubEntities()
Returns
GetSubQueries()
Returns all sub queries referenced directly by this dataset
Declaration
IEnumerable<SQLWrapperInterpretor> GetSubQueries()
Returns
GetTotalQueriedEntities()
Returns all the entities that are queried in this dataset and any sub-datasets
Declaration
IEnumerable<EntityDescriptor> GetTotalQueriedEntities()
Returns
IsFirstRootQueryableItem(IDatasetQueryableItem)
Declaration
bool IsFirstRootQueryableItem(IDatasetQueryableItem item)
Parameters
Returns
Joins(Guid)
Declaration
IEnumerable<IDatasetQueryableItemJoin> Joins(Guid forDataSetQueryableItemID)
Parameters
Returns
OnAddFieldInfo(IDatasetQueryableItemFieldInfo)
Adds the specified queryable item field info record to this dataset
Declaration
void OnAddFieldInfo(IDatasetQueryableItemFieldInfo item)
Parameters
OnAddFilter(IDatasetQueryableItem, IFilterDescriptor)
Adds the specified filter descriptor to this dataset
Declaration
void OnAddFilter(IDatasetQueryableItem rootItem, IFilterDescriptor filter)
Parameters
OnAddJoin(IDatasetQueryableItemJoin)
Adds the specified queryable item join record to this dataset
Declaration
void OnAddJoin(IDatasetQueryableItemJoin item)
Parameters
OnAddQueryableItem(IDatasetQueryableItem)
Adds the specified queryable item record to this dataset
Declaration
Task<int> OnAddQueryableItem(IDatasetQueryableItem item)
Parameters
Returns
Type |
Description |
Task<int> |
A task indicating the completion of the operation
|
OnAddQueryableItem(IDatasetQueryableItem, bool)
Declaration
Task<int?> OnAddQueryableItem(IDatasetQueryableItem item, bool addDefaultJoins)
Parameters
Returns
OnAddWrapperType(IDatasetQueryableItem, ISQLTypeWrapper)
Adds the specified sql wrapper type record, of either a column or parameter, for the dataset and thus the
underlying sqlwrapper too
Declaration
void OnAddWrapperType(IDatasetQueryableItem rootItem, ISQLTypeWrapper item)
Parameters
OnDeleteFieldInfo(IDatasetQueryableItemFieldInfo)
Deletes the specified queryable item field info record from this dataset
Declaration
void OnDeleteFieldInfo(IDatasetQueryableItemFieldInfo item)
Parameters
OnDeleteFilter(IFilterDescriptor)
Deletes the specified filter descriptor from this dataset
Declaration
void OnDeleteFilter(IFilterDescriptor filter)
Parameters
OnDeleteJoin(IDatasetQueryableItemJoin)
Deletes the specified queryable item join record from this dataset
Declaration
void OnDeleteJoin(IDatasetQueryableItemJoin item)
Parameters
OnDeleteQueryableItem(IDatasetQueryableItem)
Deletes the specified queryable item record from this dataset
Declaration
void OnDeleteQueryableItem(IDatasetQueryableItem item)
Parameters
OnDeleteWrapperType(ISQLTypeWrapper)
Deletes the specified sql wrapper type record, of either a column or parameter, from the dataset and thus the
underlying sqlwrapper too
Declaration
void OnDeleteWrapperType(ISQLTypeWrapper item)
Parameters
Type |
Name |
Description |
ISQLTypeWrapper |
item |
The sql type wrapper record for a column or parameter of this dataset
|
UpdateAllUnionQueryableItemLinks()
Declaration
void UpdateAllUnionQueryableItemLinks()
UpdateColour(IDatasetQueryableItemFieldInfo)
Declaration
void UpdateColour(IDatasetQueryableItemFieldInfo item)
Parameters
UpdateFiltersParentID(Guid, Guid, IFilterDescriptor)
Updates filters ParentID after copying the DatasetQueryableItems
Declaration
void UpdateFiltersParentID(Guid originalItemId, Guid copiedItemId, IFilterDescriptor filter)
Parameters
Type |
Name |
Description |
Guid |
originalItemId |
Original DataSetQueryableItem's Id which is being copied
|
Guid |
copiedItemId |
Copied DatasetQueryableItem's Id
|
IFilterDescriptor |
filter |
The filter descriptor to add to this dataset
|
Events
OnEventOccured
Raises an event when changes to the processor occur
Declaration
event DatasetProcessorEventHandler OnEventOccured
Event Type
Extension Methods
See Also