Loading...
 

CX_DB_UTILITY::KillREPColl

CX_DB_UTILITY::KillREPColl

Description:

This method removes a collection with a specific name from the REP list in each database that is registered and also deletes it. It is then not accessible by its REP name or address. The objects in the collection are not changed. Compare also with the method DeregisterREPColl, which only deregisters the collection as REP but does not delete it.

Attention!
All references to this collection will be invalidated. If such a collection is kept in a variable and accessed after calling this method, the system crashes!

Code example:

The following code deletes the REP Collection logged in under "geps" (the default garbage collection) in each logged in database:

Var(dbutil) GetManager(OBJECT) Call(GetDBUtility) -> dbutil
BeginTXN "geps" dbutil Call(KillREPColl)

Stack
Stack Position Object type Brief description
Stack(In) Top CX_DB_UTILITY CX_DB_UTILITY object
Top 1 STRING Name of the REP Collection to be deleted
Stack(Out) Top
Function call: Call(KillREPColl)