Class MetaObjectAccessor
Facade for accessing meta object data.
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Storage
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class MetaObjectAccessor
Constructors
MetaObjectAccessor(MetaObject, String)
Initializes a new instance of the MetaObjectAccessor class. for reading values from a specific meta object.
Declaration
public MetaObjectAccessor(MetaObject metaObject, string language)
Parameters
Type | Name | Description |
---|---|---|
MetaObject | metaObject | The meta object. |
System.String | language | The language of the meta object. |
MetaObjectAccessor(Byte[], Int32, Int32)
Initializes a new instance of the MetaObjectAccessor class for reading values from serialized data with fallback to meta objects.
Declaration
[Obsolete("Use constructor MetaObjectAccessor(int objectId, int metaClassId) instead. Will remain at least until August 2016.")]
public MetaObjectAccessor(byte[] serializedData, int objectId, int metaClassId)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | serializedData | The serialized data. |
System.Int32 | objectId | The object id (entry/node). Used if serialized data is empty or can't be deserialized. |
System.Int32 | metaClassId | The meta class id. Used if serialized data is empty or can't be deserialized. |
MetaObjectAccessor(Int32, Int32)
Initializes a new instance of the MetaObjectAccessor class for reading values from meta objects.
Declaration
public MetaObjectAccessor(int objectId, int metaClassId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | objectId | The object id (entry/node). Used if serialized data is empty or can't be deserialized. |
System.Int32 | metaClassId | The meta class id. Used if serialized data is empty or can't be deserialized. |
Methods
GetCreated(MetaDataContext)
Gets the created date.
Declaration
public DateTime GetCreated(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Returns
Type | Description |
---|---|
System.DateTime |
GetCreated(String)
Gets the created date.
Declaration
public DateTime GetCreated(string language)
Parameters
Type | Name | Description |
---|---|---|
System.String | language | The language. |
Returns
Type | Description |
---|---|
System.DateTime |
GetCreatorId(MetaDataContext)
Gets the creator id.
Declaration
public string GetCreatorId(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Returns
Type | Description |
---|---|
System.String |
GetCreatorId(String)
Gets the creator id.
Declaration
public string GetCreatorId(string language)
Parameters
Type | Name | Description |
---|---|---|
System.String | language | The language. |
Returns
Type | Description |
---|---|
System.String |
GetFieldValues(MetaDataContext)
Gets the field values.
Declaration
public Hashtable GetFieldValues(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Returns
Type | Description |
---|---|
System.Collections.Hashtable |
GetFieldValues(String)
Gets the field values.
Declaration
public Hashtable GetFieldValues(string language)
Parameters
Type | Name | Description |
---|---|---|
System.String | language | The language. |
Returns
Type | Description |
---|---|
System.Collections.Hashtable |
GetMetaClass()
Gets the meta class using the current meta data context.
Declaration
public MetaClass GetMetaClass()
Returns
Type | Description |
---|---|
MetaClass |
GetMetaClass(MetaDataContext)
Gets the meta class.
Declaration
public MetaClass GetMetaClass(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Returns
Type | Description |
---|---|
MetaClass |
GetModified(MetaDataContext)
Gets the modified date.
Declaration
public DateTime GetModified(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Returns
Type | Description |
---|---|
System.DateTime |
GetModified(String)
Gets the modified date.
Declaration
public DateTime GetModified(string language)
Parameters
Type | Name | Description |
---|---|---|
System.String | language | The language. |
Returns
Type | Description |
---|---|
System.DateTime |
GetModifierId(MetaDataContext)
Gets the modifier id.
Declaration
public string GetModifierId(MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
MetaDataContext | context | The context. |
Returns
Type | Description |
---|---|
System.String |
GetModifierId(String)
Gets the modifier id.
Declaration
public string GetModifierId(string language)
Parameters
Type | Name | Description |
---|---|---|
System.String | language | The language. |
Returns
Type | Description |
---|---|
System.String |