Skip navigation links

Oracle Beehive Java Content Repository Java API Reference
Release 1 (1.3)

E11993-02


oracle.ocs.jcr.version
Interface OracleVersion

All Superinterfaces:
javax.jcr.Item, javax.jcr.Node, javax.jcr.version.Version

public interface OracleVersion
extends javax.jcr.version.Version

A Version object wraps an nt:version node. It provides convenient access to version information.


Method Summary
 javax.jcr.version.VersionHistory getContainingHistory()
          Returns the VersionHistory that contains this Version.
 java.util.Calendar getCreated()
          Returns the date this version was created.
 javax.jcr.version.Version[] getPredecessors()
          Returns the predecessor versions of this version.
 javax.jcr.version.Version[] getSuccessors()
          Returns the successor versions of this version.

 

Methods inherited from interface javax.jcr.Node
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperty, getReferences, getUUID, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, restore, restore, restore, restoreByLabel, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update

 

Methods inherited from interface javax.jcr.Item
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save

 

Method Detail

getContainingHistory

javax.jcr.version.VersionHistory getContainingHistory()
                                                      throws javax.jcr.RepositoryException
Returns the VersionHistory that contains this Version.
Specified by:
getContainingHistory in interface javax.jcr.version.Version
Returns:
the VersionHistory that contains this Version.
Throws:
javax.jcr.RepositoryException - if an error occurs.

getCreated

java.util.Calendar getCreated()
                              throws javax.jcr.RepositoryException
Returns the date this version was created. This corresponds to the value of the jcr:created property in the nt:version node that represents this version.
Specified by:
getCreated in interface javax.jcr.version.Version
Returns:
a Calendar object
Throws:
javax.jcr.RepositoryException - if an error occurs.

getSuccessors

javax.jcr.version.Version[] getSuccessors()
                                          throws javax.jcr.RepositoryException
Returns the successor versions of this version. This corresponds to returning all the nt:version nodes referenced by the jcr:successors multi-value property in the nt:version node that represents this version.
Specified by:
getSuccessors in interface javax.jcr.version.Version
Returns:
a Version array.
Throws:
javax.jcr.RepositoryException - if an error occurs.

getPredecessors

javax.jcr.version.Version[] getPredecessors()
                                            throws javax.jcr.RepositoryException
Returns the predecessor versions of this version. This corresponds to returning all the nt:version nodes whose jcr:successors property includes a reference to the nt:version node that represents this version.
Specified by:
getPredecessors in interface javax.jcr.version.Version
Returns:
a Version array.
Throws:
javax.jcr.RepositoryException - if an error occurs.

Skip navigation links

Oracle Beehive Java Content Repository Java API Reference
Release 1 (1.3)

E11993-02


Copyright © 2007, 2008, Oracle. All rights reserved.