Home > Contents > Index >
object:rollback
Rolls back an object to a previous revision.
Syntax
<object:rollback classname="some classname" objectype="type of object" objectid="ID of object" [objectversion="version of object"] revision="revision of object"/>Parameters
classname (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 roll back.
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 tableExample
The following example rolls backs the
sample
object torevision1.
<object:rollback classname="com.openmarket.framework.objects.AbstractObject" objecttype="sample" objectid='<%=ics.GetVar("id")%>' revison="1"/>See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.