Class MetaObjectSerialized

This is the object that will serialized in the system field to improve read performance of the meta data engine.

Inheritance
System.Object
MetaObjectSerialized
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Storage
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class MetaObjectSerialized : ISerializable

Constructors

MetaObjectSerialized()

Initializes a new instance of the MetaObjectSerialized class.

Declaration
public MetaObjectSerialized()

MetaObjectSerialized(Dictionary<String, MetaObject>)

Initializes a new instance of the MetaObjectSerialized class.

Declaration
public MetaObjectSerialized(Dictionary<string, MetaObject> objects)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, MetaObject> objects

The objects.

MetaObjectSerialized(SerializationInfo, StreamingContext)

Initializes a new instance of the MetaObjectSerialized class.

Declaration
protected MetaObjectSerialized(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The info.

System.Runtime.Serialization.StreamingContext context

The context.

Fields

SerializedFieldName

Public string literal for the serialized field name.

Declaration
public const string SerializedFieldName = "SerializedData"
Field Value
Type Description
System.String

Properties

BinaryValue

Gets the binary value.

Declaration
public byte[] BinaryValue { get; }
Property Value
Type Description
System.Byte[]

The binary value.

Created

Gets or sets the created.

Declaration
public DateTime Created { get; set; }
Property Value
Type Description
System.DateTime

The created.

CreatorId

Gets or sets the creator id.

Declaration
public string CreatorId { get; set; }
Property Value
Type Description
System.String

The creator id.

FieldStorage

Gets the field storage.

Declaration
protected Hashtable FieldStorage { get; }
Property Value
Type Description
System.Collections.Hashtable

The field storage.

Modified

Gets or sets the modified.

Declaration
public DateTime Modified { get; set; }
Property Value
Type Description
System.DateTime

The modified.

ModifierId

Gets or sets the modifier id.

Declaration
public string ModifierId { get; set; }
Property Value
Type Description
System.String

The modifier id.

Methods

AddMetaObject(String, MetaObject)

Adds the meta object.

Declaration
public void AddMetaObject(string language, MetaObject metaObject)
Parameters
Type Name Description
System.String language

The language.

MetaObject metaObject

The meta object.

CreateNew(Byte[])

Creates the new MetaObjectSerialized object from the binary array.

Declaration
public static MetaObjectSerialized CreateNew(byte[] data)
Parameters
Type Name Description
System.Byte[] data

The data.

Returns
Type Description
MetaObjectSerialized

GetCreated(String, Boolean)

Gets the created date for a specific language

Declaration
public virtual DateTime GetCreated(string language, bool fallbackToNonLanguageSpecific)
Parameters
Type Name Description
System.String language

The language to get the created date for.

System.Boolean fallbackToNonLanguageSpecific

If true, the language with minimum create date will be used.

Returns
Type Description
System.DateTime

The created date for the specific language.

GetCreatorId(String, Boolean)

Gets the creator id for a specific language

Declaration
public virtual string GetCreatorId(string language, bool fallbackToNonLanguageSpecific)
Parameters
Type Name Description
System.String language

The language to get the creator id for.

System.Boolean fallbackToNonLanguageSpecific

If true, the language with minimum create date will be used to get the creator id.

Returns
Type Description
System.String

The creator id for the specific language.

GetModified(String, Boolean)

Gets the modified date for a specific language

Declaration
public virtual DateTime GetModified(string language, bool fallbackToNonLanguageSpecific)
Parameters
Type Name Description
System.String language

The language to get the modified date for.

System.Boolean fallbackToNonLanguageSpecific

If true, the language with maximum modified date will be used.

Returns
Type Description
System.DateTime

The modified date for the specific language.

GetModifierId(String, Boolean)

Gets the modifier id for a specific language

Declaration
public virtual string GetModifierId(string language, bool fallbackToNonLanguageSpecific)
Parameters
Type Name Description
System.String language

The language to get the modifier id for.

System.Boolean fallbackToNonLanguageSpecific

If true, the language with maximum modified date will be used to get the modifier id.

Returns
Type Description
System.String

The modifier id for the specific language.

GetObjectData(SerializationInfo, StreamingContext)

Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.

Declaration
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The System.Runtime.Serialization.SerializationInfo to populate with data.

System.Runtime.Serialization.StreamingContext context

The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.

Exceptions
Type Condition
System.Security.SecurityException

The caller does not have the required permission.

GetValues(String)

Gets the values.

Declaration
public Hashtable GetValues(string language)
Parameters
Type Name Description
System.String language

The language.

Returns
Type Description
System.Collections.Hashtable

Implements

System.Runtime.Serialization.ISerializable