Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.RTRollback
Reverts a row in a revision-tracked table to a previous revision.
The current user must have the row locked and have
rtaudit
privileges against the table to roll back the row.This method has two variants:
- RTRollback (Variant 1) , which rolls back to a version designated by an integer.
- RTRollback (Variant 2) , which rolls back to a version designated by a string.
ICS.RTRollback
Reverts a row in a revision-tracked table to a previous version.
Syntax
public int RTRollback(String sTable, String sAsset, int nVersion)Parameters
sTable
- Name of the table containing the row to revert to a previous version.
sAsset
- Value of the primary key for the row to revert to a previous version.
nVersion
- Version to make current.
Description
The
RTRollback
method reverts a row in a revision-tracked table to a previous version.The current user must have the row locked and have
rtaudit
privileges against the table to roll back the row.This version of
RTRollback()
accepts an integer version number to roll back to.Returns
Returns the
errno
. If -1000, check the RT details error.
ICS.RTRollback
Reverts a row in a revision-tracked table to a previous version.
Syntax
public int RTRollback(String sTable, String sAsset, String strVersion)Parameters
sTable
- Name of the table containing row to revert to a previous version.
sAsset
- Value of the primary key for the row to revert to a previous version.
strVersion
- Version to make current. Specify one of the following strings:
- "first", which rolls back to the initial version.
- "last", which rolls back to the previous version.
- a date in the format
"YYYY-MM-DD HH:MM:SS"
, which rolls back to the version that was current on that date.Description
The
RTRollback
method reverts a row in a revision-tracked table to a previous revision. The current user must have the row locked and havertaudit
privileges against the table to roll back the row.Returns
Returns the
errno
. If -1000, check the RT details error.
Home > Contents > Index > Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.