SysRecordMapSerializer Class [AX 2012]
The SysRecordMapSerializer class is a utility class for serializing and deserializing large record maps and sending them between client and server in multiple messages.
| Method | Description | |
|---|---|---|
| bulkReadIntoMap | Reads the given records into the existing record map. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| new | Initializes a new instance of the SysRecordMapSerializer class. |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| pack | Serializes a Map containing a single type of record where the keys are the record Ids. |
| parmNumRecordsPerServerCall | Gets or sets the NumRecordsPerServerCall parameter. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| unpack | Deserializes a Map of records that was previously serialized using from this class. |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::bulkReadRecords | Reads the requested records and returns them in a list. |
| ::bulkReadRecordsOnServer | Reads the requested records on the server and returns them to the client. |
| ::construct | Initializes a new instance of the SysRecordMapSerializer class. |
This class can be used to send a Map containing large numbers of records between the client and server tiers while reducing the amount of memory required for a single method call. The Map that is serialized by this class must:
-
Store the record ID in the key.
-
Store the record buffer in the value.
-
Have only records from the same table.
-
It must be safe to ignore the records stored in the map and retrieve them later from the database using the key.
Community Additions
ADD
Show: