Oracle Coherence for C++ API


Versionable Class Reference

#include <coherence/util/Versionable.hpp>

Inherits Object.

List of all members.

Detailed Description

An interface for versionable data.

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.

a non-null version value that implements the Comparable interface

virtual void incrementVersion (  )  [pure virtual]

Update the version to the next logical version indicator.

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:
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.