Class QueryInfoProvider
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Enables access to queries.
[ProviderInterface(typeof(IQueryInfoProvider))]
public class QueryInfoProvider : AbstractInfoProvider<QueryInfo, QueryInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<QueryInfo>, IInfoByGuidProvider<QueryInfo>, IInfoByNameProvider<QueryInfo>, IBulkInfoProvider<QueryInfo>, IFullNameInfoProvider, IQueryInfoProvider, IInfoProvider<QueryInfo>, IInfoByIdProvider<QueryInfo>
- Inheritance
-
objectQueryInfoProvider
- Implements
- Inherited Members
-
AbstractInfoProvider<QueryInfo, QueryInfoProvider, ObjectQuery<QueryInfo>>.CreateInfo(DataRow, bool)
- Extension Methods
Constructors
QueryInfoProvider()
Constructor
public QueryInfoProvider()
Methods
GetFullNameDictionary()
Creates new dictionary for caching the objects by full name
public ProviderInfoDictionary<string> GetFullNameDictionary()
Returns
- ProviderInfoDictionary<string>
GetFullNameWhereCondition(string)
Gets the where condition that searches the object based on the given full name
public IWhereCondition GetFullNameWhereCondition(string fullName)
Parameters
fullNamestringObject full name
Returns
GetObjectQueryInternal()
Gets the object query for the provider
protected override ObjectQuery<QueryInfo> GetObjectQueryInternal()
Returns
GetQueryInfo(string, bool)
Returns QueryInfo with specified name.
public static QueryInfo GetQueryInfo(string name, bool throwException = true)
Parameters
namestringQueryInfo name.
throwExceptionboolIf true, exception is thrown if query does not exist.
Returns
- QueryInfo
Query object. Null if the query doesn't exist.
GetQueryType(int)
Gets the query type based on the given type ID
[Obsolete("Method is deprecated and will be removed in next version.")]
public static QueryTypeEnum GetQueryType(int queryTypeId)
Parameters
queryTypeIdintQuery type ID
Returns
GetQueryTypeID(QueryTypeEnum)
Gets the query type ID based on the given type
public static int GetQueryTypeID(QueryTypeEnum queryType)
Parameters
queryTypeQueryTypeEnumQuery type
Returns
- int