public interface Versioned
Modifier and Type | Method and Description |
---|---|
Object |
createNewVersion()
Creates a new version of the object.
|
int |
getVersionNum()
Gets the version number of the object.
|
boolean |
isCurrentVersion()
Indicates that this object was the current version when it was returned
by a query.
|
Object createNewVersion() throws HDRRimException
All attributes are cloned to the new version and the version number is incremented by one. HDR checks the version number when the object is persisted and ensures that there have not been any other updates to the object since it was queried.
Object
created. You can
downcast this to the correct RIM class.HDRRimException
- When the object on which
createNewVersion()
is called does not meet the following
conditions:
createNewVersion()
after creating the object using a
factory. Similarly, calling createNewVersion()
on an object
twice will fail.isCurrentVersion()
on the object must return
true
.boolean isCurrentVersion()
true
if this object was the current version when it
was returned by a query, else false
.int getVersionNum()
HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved