Try OpenEdge Now
skip to main content
Programming Interfaces
Data Management : ABL API for Multi-tenant and Table Partition Management : Maintaining multi-tenant and table partition entities : Partitions (creating, reading, updating, deleting, enabling and allocating)
 
Partitions (creating, reading, updating, deleting, enabling and allocating)
The following code shows how to use the API service to create, read, update, and delete partition defaults, enable and allocate partitions using the IPartitionParent interface. The IPartitionParent interface abstracts common properties for all interfaces and classes that define partition defaults:
define variable partition as IPartitionParent no-undo.

partition = service:NewPartition("Andersen").
/* Set properties and optionally add elements to collections */
. . .
service:CreatePartition(partition).

. . .
partition = service:GetPartition("Acme").
/* Set properties and/or add/delete domain(s) */
. . .
service:UpdatePartition(partition).

. . .
service:DeletePartition("Andersen").
There are currently no service methods or utilities that reference this interface. The new IPartitionPolicy and IPartitionOwner interfaces inherit this interface.
For more information on the:
*IPartitionParent entity interface, see IPartitionMapinterface
*IPartitionOwner entity interface, see IPartitionPolicyinterface
*IPartitionPolicy entity interface, see IPartitionPolicyinterface
*IPartitionPolicyDetail entity interface, see IPartitionPolicyDetailinterface
*IPartitionPolicySet entity collection interface, see IPartitionPolicySetinterface
*IPartitionPolicyDetailSet entity collection interface, see IPartitionPolicyDetailSet interface