systemSequence Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The systemSequence class takes manual control of the system sequence generator and delivers unique RecIds for all SQL tables.
public ref class systemSequence : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public class systemSequence : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
type systemSequence = class
inherit XppObjectBase
Public Class systemSequence
Inherits XppObjectBase
- Inheritance
- Attributes
-
KernelClassAttribute Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute
Remarks
When records are inserted into SQL tables, a unique RecId is assigned to each record regardless of the company each record is associated with. Use extreme caution when you use this class, because data integrity could be destroyed. This class is typically used for data import or export routines, or for very large jobs. The record ID is an int64 data type value. The range in which record IDs are allocated is from 5637144576 to 2^63 (9223372036854775808). RecIds can be used up prematurely if large, unused ranges of RecIds are created. Reclaiming unused ranges of RecIds that lie between used ranges of RecIds is a very complicated process.
The following example reserves the int64max value for the CustTable table.
static public void Main(Args _args)
{
systemSequence seq;
seq = new SystemSequence();
if (seq)
{
// Allocate 20 recordIds for CustTable table.
seq.reserveValues(20, tablenum(CustTable));
// Suspend automatic recId allocation.
Seq.suspendRecIds(tablenum(CustTable));
// Manually generate recIds in the range allocated.
// Remove the recId suspension.
Seq.removeRecIdSuspension();
}
}
Constructors
systemSequence() | |
systemSequence(IntPtr) |
Fields
kernelClass | (Inherited from XppObjectBase) |