AbstractInfoProviderTInfo, TProvider, TQuery Class |
Namespace: CMS.DataEngine
public abstract class AbstractInfoProvider<TInfo, TProvider, TQuery> : IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, ITestableProvider where TInfo : new(), AbstractInfoBase<TInfo> where TProvider : new(), AbstractInfoProvider<TInfo, TProvider, TQuery> where TQuery : new(), ObjectQueryBase<TQuery, TInfo>
The AbstractInfoProviderTInfo, TProvider, TQuery type exposes the following members.
Name | Description | |
---|---|---|
AbstractInfoProviderTInfo, TProvider, TQuery(Boolean) |
Default constructor.
| |
AbstractInfoProviderTInfo, TProvider, TQuery(ObjectTypeInfo, HashtableSettings) |
Default constructor.
|
Name | Description | |
---|---|---|
DataSource |
Data source for the provider
| |
HashtableSettings |
Gets hashtable settings
| |
InfoObject |
Info object instance the provider is working with.
| |
IsValid |
Indicates if the provider instance is up-to-date and can be used to manage object instances.
| |
ProviderObject |
Provider object.
| |
TypeInfo |
Object type information.
|
Name | Description | |
---|---|---|
BeginTransaction |
Creates a new transaction over this provider.
| |
BulkDelete |
Bulk deletes info objects based on the given condition.
| |
BulkInsertInfos(IEnumerableBaseInfo) |
Bulk inserts the given list of info objects
| |
BulkInsertInfos(IEnumerableTInfo, BulkInsertSettings) |
Bulk inserts the given list of info objects.
| |
CheckObject |
Checks if the given info object is not null. Throws an exception if it is.
| |
CheckUniqueCodeName |
Checks if the object has unique code name. Returns true if the object has unique code name.
| |
CheckUniqueValues |
Checks if a record with the same column values already exists in the database. Returns true if the set of values is unique.
| |
ClearHashtables |
Clears the object's hashtables.
| |
CreateDefaultBulkInsertSettings |
Creates bulk insert settings. By default CheckConstraints
and TableLock flags are set.
| |
CreateInfo |
Creates a new info object.
| |
CreateWebFarmTask(String, String) |
Creates web farm task specific for current object and action name
| |
CreateWebFarmTask(String, String, Byte, String) |
Creates web farm task specific for current object and action name
| |
DeleteInfo |
Deletes the object to the database.
| |
DeleteObjectFromHashtables |
Deletes the object instance from the hashtables.
| |
GetDeleteQuery |
Gets the object query that deletes all items matching the query parameters
| |
GetInfoByCodeName(String, Boolean) |
Gets an instance of info object based on the given code name.
| |
GetInfoByCodeName(String, Int32, Boolean) |
Gets an instance of info object based on the given code name.
| |
GetInfoByCodeName(String, Int32, Boolean, Boolean) |
Gets an instance of info object based on the given code name.
| |
GetInfoByCodeName(String, Int32, Int32, Boolean) |
Gets an instance of info object based on the given code name.
| |
GetInfoByFullName |
Gets an instance of info object based on the given full name.
| |
GetInfoByGuid(Guid, Boolean) |
Gets an instance of info object based on the given GUID.
| |
GetInfoByGuid(Guid, Int32, Boolean) |
Gets an instance of info object based on the GUID.
| |
GetInfoById |
Gets an instance of info object based on ID.
| |
GetInfosByIds |
Gets the list of info objects by their IDs.
| |
GetObjectQuery |
Gets the object query for the provider
| |
GetObjectQueryInternal |
Gets the object query for the provider
| |
Init |
Initializes the provider with the given type info and hashtable settings
| |
InitHashtableSettings | ||
InitTypeInfoAndRegister |
Initializes the provider variables.
| |
Invalidate |
Sets this provider as invalid
| |
LoadAllInfos |
Loads all infos to the hashtable
| |
LoadInfos |
Loads all objects from the database to memory.
| |
ProcessWebFarmTask |
Runs the processing of specific web farm task for current provider
| |
ProcessWebFarmTaskInternal |
Runs the processing of specific web farm task for current provider
| |
RegisterObjectInHashtables |
Registers the object instance within the hashtables.
| |
RemoveOriginalCodeNameFromHashtable |
Removes the original object code name from the hashtable
| |
SetAsDefaultProvider |
Sets this provider instance as the default provider
| |
SetInfo |
Inserts or Updates the object to the database.
| |
UpdateData(String, QueryDataParameters, String) |
Updates the data in the database based on the given where condition.
| |
UpdateData(IWhereCondition, IEnumerableKeyValuePairString, Object, Boolean) |
Updates the data in the database based on the given where condition.
| |
UpdateObjectInHashtables |
Updates the object instance in the hashtables. Update is different than RegisterObjectInHashtables(TInfo), because it logs task about changing object.
| |
ValidateCodeName |
Validates the object code name. Returns true if the code name is valid.
|