Loading...
 

CXS_SEGMENT

CXS_SEGMENT

Class hierarchy
Description:

This class represents a database segment. See also CXS_DATABASE and CXS_SEGMENT. Changing the DDI fields has no effect on the actual segment in the database. Only "name" and "database" play a role when creating a database segment with CreateSegment.

Code example:
...
List of methods (MDI)
Function MA* Parameters Return Brief description
Blockers INTEGER STRING the names of the clients holding a read/write lock in this segment
Contents INTEGER COLLECTION all classes and REP-Collection, from this segment
CreateSegment Create segment in the database
Destroy deletes a database segment
GetClusters COLLECTION all clustersexisting in the segment
GetNumber INTEGER Segment number
GetObjects INTEGER COLLECTION Get objects of the segment
GetSize STRING Segment size as character string
Name * Read/write access to the segment name

* MA = Member Access function,
grey background = inherited function

Data directory (DDI)
Data field Type Reference class I* Brief description
database POINTER CXS_DATABASE Database of the segment
flags SHORT
ValueDescription
0x01VALID (ObjectStore segment already loaded)
0x02EXTERN
0x04INACTIVE (Set by MakeAllSegmentsVisible for unused segments).
0x08AUTO (In the slave segment, clusters are automatically created for each master object).
0x10

DEFAULT (The default segment for all storages without segment specification).

0x20The segment was created dynamically by NewSegment
name STRING Segment name
threshold
Up to Dll version 222096
INTEGER Limit value for segment splitting. Default = 0

* I = Indexable data field,
grey background = inherited data field

Use in AppsWH
Module Brief description
objcount.mod Count objects
segview.mod Segments Display module