TranslationHelper Class |
Namespace: CMS.DataEngine
public class TranslationHelper
The TranslationHelper type exposes the following members.
Name | Description | |
---|---|---|
![]() | TranslationHelper |
Constructor.
|
![]() | TranslationHelper(DataTable) |
Constructor. Creates the helper initialized with given translation table.
|
Name | Description | |
---|---|---|
![]() | AddIDTranslation |
Adds the ID translation to the translation table.
|
![]() | Clear |
Clears the translation table.
|
![]() | FilterExistingRecords |
Filters the existing records from the given array.
|
![]() | GetCodeName(String, Int32) |
Returns the code name of the specified object.
|
![]() | GetCodeName(String, Int32, String) |
Returns the code name of the specified object.
|
![]() ![]() | GetCodeNameColumn |
Gets the code name column for specified object type.
|
![]() ![]() | GetCodeNameFromDB |
Gets the object code name from the database.
|
![]() | GetCodeNamesFromDB |
Gets the code names from database and returns Hastable of couples [ID] -> [Codename]
|
![]() | GetDefaultValue |
Gets default value.
|
![]() ![]() | GetEmptyTable |
Returns empty translation table.
|
![]() ![]() | GetGroupIDColumn |
Gets the group ID column for specified object type.
|
![]() | GetID(String, String, String, Int32, Int32) |
Returns the object ID for specified record.
|
![]() | GetID(String, String, String, Int32, Int32, Int32) |
Returns the object ID for specified record.
|
![]() ![]() | GetIDColumn |
Gets the ID column for specified object type.
|
![]() ![]() | GetIDFromDB |
Gets the object ID from the database.
|
![]() | GetNewID(String, Int32, String, Int32, String, String, String) |
Gets the new ID for given old ID.
|
![]() | GetNewID(String, Int32, String, Int32, String, String, String, Boolean, Int32) |
Gets the new ID for given old ID.
|
![]() ![]() | GetParentIDColumn |
Gets the parent ID column for specified object type.
|
![]() ![]() | GetParentType |
Gets the parent object type for specified object type.
|
![]() | GetRecord(String, Int32) |
Gets the record by ID.
|
![]() | GetRecord(String, String, String, Int32, Int32) |
Gets the record by ID.
|
![]() ![]() | GetSafeClassName |
Gets the safe class name.
|
![]() ![]() | GetSiteIDColumn |
Gets the site id column for specified object type.
|
![]() | HasRecords |
Returns true if the helper contains some records.
|
![]() | ChangeCodeName |
Changes the object code name in the table.
|
![]() ![]() | IsEmpty |
Determines whether the given translation helper contains any translations or not.
|
![]() ![]() | IsExcluded |
Returns true of the column is excluded.
|
![]() | RecordExists(String, Int32) |
Returns true if specified record exists in translation table.
|
![]() | RecordExists(String, String, String, Int32, Int32) |
Returns true if specified record exists in translation table.
|
![]() | RegisterDynamicRecords(DataTable, String, String, String, String) |
Registers the dynamic records from the given table.
|
![]() | RegisterDynamicRecords(DataView, String, String, String, String) |
Registers the records from the given table.
|
![]() | RegisterRecord(String, Int32, String, Int32) |
Registers the record within given translation table.
|
![]() | RegisterRecord(String, Int32, String, String, Int32, String, Int32) |
Registers the record within given translation table.
|
![]() | RegisterRecords(DataTable, String, String, String) |
Registers the records from the given table.
|
![]() | RegisterRecords(String, IListInt32, String, String) |
Registers the records from the given ID list.
|
![]() | RegisterRecords(DataTable, String, String, String, String) |
Registers the records from the given table.
|
![]() | RegisterRecords(DataView, String, String, String, String) |
Registers the records from the given table.
|
![]() | RegisterRecords(DataTable, String, String, String, String, String, String) |
Registers the records from the given table.
|
![]() | RemoveDefaultValue |
Removes default value.
|
![]() | SetDefaultValue |
Sets default value.
|
![]() | TranslateColumn(DataRow, String, String, Int32) |
Translates the DataRow column.
|
![]() | TranslateColumn(GeneralizedInfo, String, String, Int32, Boolean, Boolean) |
Translates the column value of the given info object.
|
![]() | TranslateColumn(IDataContainer, String, String, Int32, Boolean, Boolean) |
Translates the column value of the given container.
|
![]() | TranslateColumns |
Translates all reference object columns.
|
![]() | TranslateListColumn |
Translates the column value with list of IDs of the given info object.
|
Name | Description | |
---|---|---|
![]() | AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) |
![]() | GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) |
![]() | GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) |
![]() | ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) |
![]() | ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) |
![]() | ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) |
![]() | ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) |
![]() | ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) |
![]() | ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
![]() ![]() | AUTO_PARENTID |
Automatic parent ID.
|
![]() ![]() | AUTO_SITEID |
Automatic site ID.
|
![]() ![]() | AUTO_SITENAME |
Automatic site name (Get by SiteIDs from DB).
|
![]() | mConnection |
Connection object used to access data.
|
![]() | mIDConversion |
ID conversion table [objectType.ToLowerCSafe()] -> Hashtable [OldID -> [NewID, NewGroupID]]
|
![]() ![]() | NO_SITE |
No site condition for registering records.
|
![]() ![]() | TRANSLATION_TABLE |
Name of translation table
|
Name | Description | |
---|---|---|
![]() | IDConversion |
ID conversion table [objectType.ToLowerCSafe()] -> Hashtable [OldID -> NewID]
|
![]() | TranslationTable |
Returns the translation table.
|
![]() | UseDisplayNameAsCodeName |
If true, display name is used instead of the code name.
|