4.46 SDO_TOPO_MAP.ROLLBACK_TOPO_MAP
Format
SDO_TOPO_MAP.ROLLBACK_TOPO_MAP;
Description
Rolls back all changes to the database that were made using the current updatable TopoMap object, discards any changes in the object, clears the object's cache structure, and makes the object read-only.
Parameters
None.
Usage Notes
Use this procedure when you are finished with a batch of edits to a topology and you want to discard (that is, not commit) all changes to the database and in the cache. After the rollback operation completes, you cannot edit the TopoMap object. To make further edits to the topology, you can load the topology into the same TopoMap object for update (using the SDO_TOPO_MAP.LOAD_TOPO_MAP function or procedure), or you can create a new TopoMap object (using the SDO_TOPO_MAP.CREATE_TOPO_MAP procedure) and load the topology into that TopoMap object for update.
To commit all TopoMap object changes, use the SDO_TOPO_MAP.COMMIT_TOPO_MAP procedure.
For information about using an in-memory cache to edit topological elements, see Approaches for Editing Topology Data.
This procedure is equivalent to using the rollbackDB
method of the TopoMap
class of the client-side Java API (described in Topology Data Model Java Interface).
Examples
The following example rolls back from the database all changes associated with the current updatable TopoMap object.
EXECUTE SDO_TOPO_MAP.ROLLBACK_TOPO_MAP;
Parent topic: SDO_TOPO_MAP Package Subprograms