Namespace: Consultingwerk.SmartFramework.Repository
Class 
CreateObjectMasterFromInstanceParameter Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.ParameterObject
Implements: Consultingwerk.IJsonSerializable, Consultingwerk.IValueObjectValidator
SERIALIZABLE

File:CreateObjectMasterFromInstanceParameter
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:23.04.2023 17:42:47



Top Method Summary
Options Name Purpose
# CHARACTER AddSerializableProperties () Adds serializable properties from the calling class using ABL reflection. Supported from OpenEdge 11.6 on only.
Inherited from Consultingwerk.JsonSerializable
# AddSerializableProperties (character) Add a list of Serializable Properties to the SerializableProperties property
Inherited from Consultingwerk.JsonSerializable
# CHARACTER AddSerializableProperties (Class) Adds serializable properties from the given class using ABL reflection. Supported from OpenEdge 11.6 on only.
Inherited from Consultingwerk.JsonSerializable
+ Deserialize (longchar) Deserializes a LONGCHAR representation of the state of the class instance
Inherited from Consultingwerk.JsonSerializable
+ DeserializeFromJsonObject (JsonObject) Initializes the object instance based on the passed in JsonObject representation of the object instance
Inherited from Consultingwerk.JsonSerializable
# DeserializeProperty (JsonObject, character, character, character) Deserializes a single property value to the current JsonObject
Inherited from Consultingwerk.JsonSerializable
+ LOGICAL Equals (Object) Compares this object to the passed in object by value
Inherited from Consultingwerk.ParameterObject
# IEnumerable GetEnumerableInstance (character) Returns an instance of the enumerable type
Inherited from Consultingwerk.JsonSerializable
+ RAW GetHashCode () Returns an 64bit RAW Hash Value representing the object instance
Inherited from Consultingwerk.ParameterObject
+ CHARACTER GetSerializableProperties () Returns the meta data of the serializable properties
Inherited from Consultingwerk.JsonSerializable
+ CHARACTER GetSerializeName (character) Returns the SerializeName of a property
Inherited from Consultingwerk.JsonSerializable
+ Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter IgnoreLocationAttributes (logical) Property Setter for the IgnoreLocationAttributes property
+ LOGICAL IsValid (Object) Validates the properties of the given value object
# LazyAddSerializableProperties () Adds serializable properties from the calling class using ABL reflection. Supported from OpenEdge 11.6 on only.
Inherited from Consultingwerk.JsonSerializable
+ Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter ObjectInstanceGuid (character) Property Setter for the ObjectInstanceGuid property
+ Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter ObjectMasterName (character) Property Setter for the ObjectMasterName property
+ Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter ProductModule (character) Property Setter for the ProductModule property
+ Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter ReplaceInstanceWithNewMaster (logical) Property Setter for the ReplaceInstanceWithNewMaster property
+ LONGCHAR Serialize () Returns a LONGCHAR representation of the state of the class instance
Inherited from Consultingwerk.JsonSerializable
# SerializeProperty (JsonObject, character, character, character) Serializes a single property value to the current JsonObject
Inherited from Consultingwerk.JsonSerializable
+ Progress.Json.ObjectModel.JsonObject ToJsonObject () Returns a JsonObject representation of the state of the class instance
Inherited from Consultingwerk.JsonSerializable
+ CHARACTER ToString () Returns a string representation of the object
Inherited from Consultingwerk.ParameterObject
+ Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter UpdateExistingMaster (logical) Property Setter for the UpdateExistingMaster property
+ LONGCHAR WriteJson () Returns a LONGCHAR representation of the state of the class instance
Inherited from Consultingwerk.JsonSerializable
+ LONGCHAR WriteXml () Returns an XML LONGCHAR representation of the object instance
Inherited from Consultingwerk.JsonSerializable
+ HANDLE XmlSerialize (handle) Serializes the properties of the current object instance to an existing X-NODEREF object
Inherited from Consultingwerk.JsonSerializable
+ XmlSerializeProperties (handle) Serializes the properties of this object instance as child nodes of the given node
Inherited from Consultingwerk.JsonSerializable
# XmlSerializeProperty (handle, character, character) Serializes a single property value to the current parent XmlNode
Inherited from Consultingwerk.JsonSerializable

Top Constructor Summary
Options Name Purpose
+ CreateObjectMasterFromInstanceParameter () Constructor for the CreateObjectMasterFromInstanceParameter class
+ CreateObjectMasterFromInstanceParameter (character, character, character, logical, logical) Constructor for the CreateObjectMasterFromInstanceParameter class

Top Property Summary
Options Name Purpose
+ LOGICAL IgnoreLocationAttributes
+ Consultingwerk.IJsonDateTypeFormatter JsonDateTypeFormatter
Inherited from Consultingwerk.JsonSerializable
+ CHARACTER ObjectInstanceGuid
+ CHARACTER ObjectMasterName
+ CHARACTER ProductModule
+ LOGICAL ReplaceInstanceWithNewMaster
+ LOGICAL SerializeEmptyLists
Inherited from Consultingwerk.JsonSerializable
# CHARACTER SerializeNames
Inherited from Consultingwerk.JsonSerializable
+ LOGICAL SerializeNullValues
Inherited from Consultingwerk.JsonSerializable
+ LOGICAL UpdateExistingMaster
+ LOGICAL UseSerializedTypeInformation
Inherited from Consultingwerk.JsonSerializable


Method Detail
Top

PROTECTED CHARACTER AddSerializableProperties ()

Inherited from Consultingwerk.JsonSerializable
Purpose: Adds serializable properties from the calling class using ABL reflection.
Supported from OpenEdge 11.6 on only.
Notes: Adds properties of the following types, does not add properties of
the base classes, adds only PUBLIC properties:
- CHARACTER
- CHARACTER EXTENT
- DATE
- DATE EXTENT
- DATETIME
- DATETIME EXTENT
- DATETIME-TZ
- DATETIME-TZ EXTENT
- DECIMAL
- DECIMAL EXTENT
- INT64
- INT64 EXTENT
- INTEGER
- INTEGER EXTENT
- LOGICAL
- LOGICAL EXTENT
- LONGCHAR
- LONGCHAR EXTENT
- RAW
- RAW EXTENT
- RECID
- RECID EXTENT
- ROWID
- ROWID EXTENT
- Progress.Json.ObjectModel.JsonArray
- Progress.Json.ObjectModel.JsonObject
- ENUM
- Consultingwerk.Enum
- Consultingwerk.Framework.Base.IEnumerable
- Consultingwerk.JsonSerializable
- Consultingwerk.JsonSerializable EXTENT

Returns CHARACTER
The value of the SerializableProperties property
Top

PROTECTED AddSerializableProperties (character)

Inherited from Consultingwerk.JsonSerializable
Purpose: Add a list of Serializable Properties to the SerializableProperties property
Notes: Required as a workaround to full reflection only. We *may* remove this
method once Progress Software has implemented full reflection

Parameters:
pcSerializableProperties CHARACTER
A comma delimited list of serializable properties
Top

PROTECTED CHARACTER AddSerializableProperties (Class)

Inherited from Consultingwerk.JsonSerializable
Purpose: Adds serializable properties from the given class using ABL reflection.
Supported from OpenEdge 11.6 on only.
Notes: Adds properties of the following types, does not add properties of
the base classes, adds only PUBLIC properties:
- CHARACTER
- CHARACTER EXTENT
- DATE
- DATE EXTENT
- DATETIME
- DATETIME EXTENT
- DATETIME-TZ
- DATETIME-TZ EXTENT
- DECIMAL
- DECIMAL EXTENT
- INT64
- INT64 EXTENT
- INTEGER
- INTEGER EXTENT
- LOGICAL
- LOGICAL EXTENT
- LONGCHAR
- LONGCHAR EXTENT
- RAW
- RAW EXTENT
- RECID
- RECID EXTENT
- ROWID
- ROWID EXTENT
- Progress.Json.ObjectModel.JsonArray
- Progress.Json.ObjectModel.JsonObject
- ENUM
- Consultingwerk.Enum
- Consultingwerk.Framework.Base.IEnumerable
- Consultingwerk.JsonSerializable
- Consultingwerk.JsonSerializable EXTENT

Parameters:
poClass Progress.Lang.Class
The declaring class
Returns CHARACTER
The value of the SerializableProperties property
Top

PUBLIC Deserialize (longchar)

Inherited from Consultingwerk.JsonSerializable
Purpose: Deserializes a LONGCHAR representation of the state of the class instance
Notes:

Parameters:
pcSerializedRepresentation LONGCHAR
The stored LONGCHAR representation of the objects data
Top

PUBLIC DeserializeFromJsonObject (JsonObject)

Inherited from Consultingwerk.JsonSerializable
Purpose: Initializes the object instance based on the passed in JsonObject
representation of the object instance
Notes:

Parameters:
poJsonObject JsonObject
The stored JsonObject representation of the objects data
Top

PROTECTED DeserializeProperty (JsonObject, character, character, character)

Inherited from Consultingwerk.JsonSerializable
Purpose: Deserializes a single property value to the current JsonObject
Notes: Allows to override the handling of individual properties during the
JsonSerialization
Notes:

Parameters:
poJsonObject JsonObject
The reference to the source JsonObject
pcProperty CHARACTER
The name of the property in the JsonObject
pcJsonProperty CHARACTER
The name of the property in the JsonObject
pcType CHARACTER
The type of the property
Top

PUBLIC LOGICAL Equals (Object)

Inherited from Consultingwerk.ParameterObject
Purpose: Compares this object to the passed in object by value
Notes:

Parameters:
poObject Progress.Lang.Object
The reference to the object to compare to
Returns LOGICAL
Logical value indicating if the two objects are identical by value
Top

PROTECTED IEnumerable GetEnumerableInstance (character)

Inherited from Consultingwerk.JsonSerializable
Purpose: Returns an instance of the enumerable type
Notes: When the property value is referencing a value list instance, this
instance is returned. If not, we attempt to create a new instance

Parameters:
pcProperty CHARACTER
The name of the List property
Returns IEnumerable
The instance of the enumerable type
Top

PUBLIC RAW GetHashCode ()

Inherited from Consultingwerk.ParameterObject
Purpose: Returns an 64bit RAW Hash Value representing the object instance
Notes: Based on the ABL SHA-512 implementation

Returns RAW
The RAW Hash Value representing the object instance
Top

PUBLIC CHARACTER GetSerializableProperties ()

Inherited from Consultingwerk.JsonSerializable
Purpose: Returns the meta data of the serializable properties
Notes:

Returns CHARACTER
The serializable properties meta data as a comma delimited list
Top

PUBLIC CHARACTER GetSerializeName (character)

Inherited from Consultingwerk.JsonSerializable
Purpose: Returns the SerializeName of a property
Notes: See property SerializeNames for details

Parameters:
pcPropertyName CHARACTER
The name of the property
Returns CHARACTER
The SerializeName of the property
Top

PUBLIC Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter IgnoreLocationAttributes (logical)

Purpose: Property Setter for the IgnoreLocationAttributes property
Notes:

Parameters:
pIgnoreLocationAttributes LOGICAL
The value for the IgnoreLocationAttributes property
Returns Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter
The reference to the object instance
Top

PUBLIC LOGICAL IsValid (Object)

Purpose: Validates the properties of the given value object
Notes:

Parameters:
poValueObject Progress.Lang.Object
The value object to validate
Returns LOGICAL
Logical value indicating if the object's properties are valid
Top

PROTECTED LazyAddSerializableProperties ()

Inherited from Consultingwerk.JsonSerializable
Purpose: Adds serializable properties from the calling class using ABL reflection.
Supported from OpenEdge 11.6 on only.
Notes:

Top

PUBLIC Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter ObjectInstanceGuid (character)

Purpose: Property Setter for the ObjectInstanceGuid property
Notes:

Parameters:
pObjectInstanceGuid CHARACTER
The value for the ObjectInstanceGuid property
Returns Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter
The reference to the object instance
Top

PUBLIC Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter ObjectMasterName (character)

Purpose: Property Setter for the ObjectMasterName property
Notes:

Parameters:
pObjectMasterName CHARACTER
The value for the ObjectMasterName property
Returns Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter
The reference to the object instance
Top

PUBLIC Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter ProductModule (character)

Purpose: Property Setter for the ProductModule property
Notes:

Parameters:
pProductModule CHARACTER
The value for the ProductModule property
Returns Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter
The reference to the object instance
Top

PUBLIC Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter ReplaceInstanceWithNewMaster (logical)

Purpose: Property Setter for the ReplaceInstanceWithNewMaster property
Notes:

Parameters:
pReplaceInstanceWithNewMaster LOGICAL
The value for the ReplaceInstanceWithNewMaster property
Returns Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter
The reference to the object instance
Top

PUBLIC LONGCHAR Serialize ()

Inherited from Consultingwerk.JsonSerializable
Purpose: Returns a LONGCHAR representation of the state of the class instance
Notes: Returns the classname together with the Json serialization

Returns LONGCHAR
The LONGCHAR representation of the ISerializable objects data
Top

PROTECTED SerializeProperty (JsonObject, character, character, character)

Inherited from Consultingwerk.JsonSerializable
Purpose: Serializes a single property value to the current JsonObject
Notes: Allows to override the handling of individual properties during the
JsonSerialization

Parameters:
poJsonObject JsonObject
The reference to the target JsonObject
pcProperty CHARACTER
The name of the property in the JsonObject
pcJsonProperty CHARACTER
The name of the property in the JsonObject
pcType CHARACTER
The type of the property
Top

PUBLIC Progress.Json.ObjectModel.JsonObject ToJsonObject ()

Inherited from Consultingwerk.JsonSerializable
Purpose: Returns a JsonObject representation of the state of the class instance
Notes: Returns the classname together with the Json serialization of the
object

Returns Progress.Json.ObjectModel.JsonObject
The Progress.Json.ObjectModel.JsonObject representation of the ISerializable objects data
Top

PUBLIC CHARACTER ToString ()

Inherited from Consultingwerk.ParameterObject
Purpose: Returns a string representation of the object
Notes:

Returns CHARACTER
The string representation of the object
Top

PUBLIC Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter UpdateExistingMaster (logical)

Purpose: Property Setter for the UpdateExistingMaster property
Notes:

Parameters:
pUpdateExistingMaster LOGICAL
The value for the UpdateExistingMaster property
Returns Consultingwerk.SmartFramework.Repository.CreateObjectMasterFromInstanceParameter
The reference to the object instance
Top

PUBLIC LONGCHAR WriteJson ()

Inherited from Consultingwerk.JsonSerializable
Purpose: Returns a LONGCHAR representation of the state of the class instance
Notes: Returns the classname together with the Json serialization
This method is a facade to the JsonSerializable:Serialize method

Returns LONGCHAR
The LONGCHAR representation of the ISerializable objects data
Top

PUBLIC LONGCHAR WriteXml ()

Inherited from Consultingwerk.JsonSerializable
Purpose: Returns an XML LONGCHAR representation of the object instance
Notes:

Returns LONGCHAR
The LONGCHAR representation of the ISerializable objects data
Top

PUBLIC HANDLE XmlSerialize (handle)

Inherited from Consultingwerk.JsonSerializable
Purpose: Serializes the properties of the current object instance to
an existing X-NODEREF object
Notes:

Parameters:
phParent HANDLE
The reference to the parent XML Node or Document
Returns HANDLE
The X-NODEREF with the properties of the serialized object
Top

PUBLIC XmlSerializeProperties (handle)

Inherited from Consultingwerk.JsonSerializable
Purpose: Serializes the properties of this object instance as child nodes of
the given node
Notes:

Parameters:
phObjectNode HANDLE
The reference to the X-NODEREF object that represents the node for the current instance
Top

PROTECTED XmlSerializeProperty (handle, character, character)

Inherited from Consultingwerk.JsonSerializable
Purpose: Serializes a single property value to the current parent XmlNode
Notes: Allows to override the handling of individual properties during the
XmlSerialization

Parameters:
phParentNode HANDLE
The reference to the parent XML Node
pcProperty CHARACTER
The name of the property in the JsonObject
pcType CHARACTER
The type of the property


Constructor Detail
Top

PUBLIC CreateObjectMasterFromInstanceParameter ()

Purpose: Constructor for the CreateObjectMasterFromInstanceParameter class
Notes:

Top

PUBLIC CreateObjectMasterFromInstanceParameter (character, character, character, logical, logical)

Purpose: Constructor for the CreateObjectMasterFromInstanceParameter class
Notes:

Parameters:
pObjectInstanceGuid CHARACTER
The value for the ObjectInstanceGuid property
pObjectMasterName CHARACTER
The value for the ObjectMasterName property
pProductModule CHARACTER
The value for the ProductModule property
pReplaceInstanceWithNewMaster LOGICAL
The value for the ReplaceInstanceWithNewMaster:LOGICAL property
pIgnoreLocationAttributes LOGICAL
The value for the IgnoreLocationAttributes:LOGICAL property


Property Detail
Top

PUBLIC LOGICAL IgnoreLocationAttributes


Returns LOGICAL
Top

PUBLIC Consultingwerk.IJsonDateTypeFormatter JsonDateTypeFormatter

Inherited from Consultingwerk.JsonSerializable

Returns Consultingwerk.IJsonDateTypeFormatter
Top

PUBLIC CHARACTER ObjectInstanceGuid


Returns CHARACTER
Top

PUBLIC CHARACTER ObjectMasterName


Returns CHARACTER
Top

PUBLIC CHARACTER ProductModule


Returns CHARACTER
Top

PUBLIC LOGICAL ReplaceInstanceWithNewMaster


Returns LOGICAL
Top

PUBLIC LOGICAL SerializeEmptyLists

Inherited from Consultingwerk.JsonSerializable

Returns LOGICAL
Top

PROTECTED CHARACTER SerializeNames

Inherited from Consultingwerk.JsonSerializable

Returns CHARACTER
Top

PUBLIC LOGICAL SerializeNullValues

Inherited from Consultingwerk.JsonSerializable

Returns LOGICAL
Top

PUBLIC LOGICAL UpdateExistingMaster


Returns LOGICAL
Top

PUBLIC LOGICAL UseSerializedTypeInformation

Inherited from Consultingwerk.JsonSerializable

Returns LOGICAL


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2024 18:50:51