Home > Contents > Index >
OBJECT.ROLLBACK
Rolls back an object to a previous revision.
Syntax
<OBJECT.ROLLBACK CLASS="some class name" OBJECTTYPE="type of object" OBJECTID="id of object" [OBJECTVERSION="version of object"] REVISION="revision of object"/>Parameters
CLASS (required)
- Classname of the object.
OBJECTTYPE (required)
- Type of object.
OBJECTID(required)
- ID of the object.
OBJECTVERSION (optional)
- Version of the object.
REVISION (required)
- Specifies the target revision number of the object for the rollback.
Description
This tag rolls back an object to a specified revision. The implementing class must implement a rollback method. The rollback method should have the following prototype:
public static int RollBack (ICS ics, String sObjectCatalog, Long 1Objectid Interger iObjectVersion, int iRevision)Error Numbers
The possible values of
errno
include:
Value Description -10001 The implementing class is invalid. -10002 There is a missing method for the implementing class. -10003 The method could not be invoked successfully. -10004 A required parameter is missing. -10006 The object ID is not valid. -10007 The version of the object is not valid. -10011 Table is not revision tracked -10012 Object is not checked out -10017 Unable to rollback specified object -10019 Table is not an object table.Example
The following example rolls backs the
sample
object to revision 1.
<OBJECT.ROLLBACK CLASS="com.openmarket.framework.objects.AbstractObject" OBJECTTYPE="sample" OBJECTID="Variables.id"/> REVISION="1"/>See Also
Home > Contents > Index > Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.