Oracle Coherence for C++ API
Release 3.6.0.0
E15728-01

- Main Page
- Namespaces
- Classes
- Files

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Versionable Class Reference

`#include <coherence/util/Versionable.hpp>`

Inherits Object.

List of all members.

## Detailed Description

An interface for versionable data.

Author:
  tb 2008.05.08

## Public Types
typedef spec::Handle | Handle
| Versionable Handle definition.
typedef spec::View | View
| Versionable View definition.
typedef spec::Holder | Holder
| Versionable Holder definition.
## Public Member Functions
virtual Comparable::View | getVersionIndicator () const =0
| Get the version indicator for this object.
virtual void | incrementVersion ()=0
| Update the version to the next logical version indicator.

## Member Function Documentation

virtual Comparable::View getVersionIndicator | ( |  | ) | const `[pure virtual]`

Get the version indicator for this object.

The version indicator should be an immutable object or one treated as an immutable, which is to say that after the version is incremented, the previous version's indicator reference will never be returned again.

Returns:
  a non-null version value that implements the Comparable interface

virtual void incrementVersion | ( |  | ) | `[pure virtual]`

Update the version to the next logical version indicator.

Exceptions:

  | UnsupportedOperationException | if the object is immutable or if the object does not know how to increment its own version indicator

The documentation for this class was generated from the following file:

- coherence/util/Versionable.hpp

Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.