Try OpenEdge Now
skip to main content
Programming Interfaces
Database Administration Entity Collection Interface Reference : IPartitionCollection interface : IPartitionCollection methods
 

IPartitionCollection methods

Inherits methods from IDataAdminCollection and defines the methods listed in the following table.
Table 131. Multi-tenant Maintenance IPartitionCollection interface methods
Method syntax
Description
LOGICAL CanFindGroup (
  pcGroup AS CHARACTER ,
  pcTable AS CHARACTER ,
  pcField AS CHARACTER ,
  pcIndex AS CHARACTER ,
  pcCollation AS CHARACTER1 )
Returns TRUE if there is a partition object in the collection for the tenant group and an appropriate combination of table, field, and index, each specified by name in the respective parameters to identify a single partition, using a blank value as needed.2
LOGICAL CanFindTenant (
  pcTenant AS CHARACTER ,
  pcTable AS CHARACTER ,
  pcField AS CHARACTER ,
  pcIndex AS CHARACTER ,
  pcCollation AS CHARACTER3 )
Returns TRUE if there is a partition object in the collection for the tenant and an appropriate combination of table, field, and index, each specified by name in the respective parameters to identify a single partition, using a blank value as needed.4
LOGICAL Contains ( partition AS IPartition )
Returns TRUE if the partition object referenced by partition is in the collection.
IPartition FindGroup (
  pcGroup AS CHARACTER ,
  pcTable AS CHARACTER ,
  pcField AS CHARACTER ,
  pcIndex AS CHARACTER ,
  pcCollation AS CHARACTER5 )
Returns the partition object from the collection for the tenant group and an appropriate combination of table, field, and index, each specified by name in the respective parameters, using a blank value as needed.6
Returns the Unknown value (?) if the partition object is not found.
IPartition FindTenant (
  pcTenant AS CHARACTER ,
  pcTable AS CHARACTER ,
  pcField AS CHARACTER ,
  pcIndex AS CHARACTER ,
  pcCollation AS CHARACTER7 )
Returns the partition object from the collection for the tenant and an appropriate combination of table, field, and index, each specified by name in the respective parameters to identify a single partition, using a blank value as needed.8
Returns the Unknown value (?) if the partition object is not found.

1 Reserved for future use. In the current release, set to the empty string ("").

2 For instance, to identify the partition for a table and a tenant, set pcTenant to the name of the tenant (such as "EastSports"), then set pcTable to the name of the table (such as "Customer") and set pcField and pcIndex to the empty string (""); to identify the partition for a field in the table, set pcField to the name of a field in the specified table (such as "CustNum") and leave pcIndex set to the empty string.

3 Reserved for future use. In the current release, set to the empty string ("").

4 For instance, to identify the partition for a table and a tenant, set pcTenant to the name of the tenant (such as "EastSports"), then set pcTable to the name of the table (such as "Customer") and set pcField and pcIndex to the empty string (""); to identify the partition for a field in the table, set pcField to the name of a field in the specified table (such as "CustNum") and leave pcIndex set to the empty string.

5 Reserved for future use. In the current release, set to the empty string ("").

6 For instance, to identify the partition for a table and a tenant, set pcTenant to the name of the tenant (such as "EastSports"), then set pcTable to the name of the table (such as "Customer") and set pcField and pcIndex to the empty string (""); to identify the partition for a field in the table, set pcField to the name of a field in the specified table (such as "CustNum") and leave pcIndex set to the empty string.

7 Reserved for future use. In the current release, set to the empty string ("").

8 For instance, to identify the partition for a table and a tenant, set pcTenant to the name of the tenant (such as "EastSports"), then set pcTable to the name of the table (such as "Customer") and set pcField and pcIndex to the empty string (""); to identify the partition for a field in the table, set pcField to the name of a field in the specified table (such as "CustNum") and leave pcIndex set to the empty string.

See also:
*IDataAdminCollectioninterface
*IPartitioninterface
*IPartitionMapinterface
*IPartitionOwnerinterface
*IPartitionPolicyDetailSet interface