|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.garret.perst.Persistent
org.garret.perst.PersistentResource
org.garret.perst.Version
Base class for version of versioned object. All versions are kept in version history.
| Method Summary | |
void |
addLabel(java.lang.String label)
Add new label to this version |
void |
addPredecessor(Version predecessor)
Make specified version predecessor of this version. |
void |
checkin()
Check-in new version. |
java.util.Date |
getDate()
Get date of version creation |
java.lang.String |
getId()
Get identifier of the version |
java.lang.String[] |
getLabels()
Get labels associated with this version |
Version[] |
getPredecessors()
Get predecessors of this version |
Version[] |
getSuccessors()
Get successors of this version |
VersionHistory |
getVersionHistory()
Get version history containing this versioned object |
boolean |
hasLabel(java.lang.String label)
Check if version has specified label |
boolean |
isCheckedIn()
Check if version is checked-in |
boolean |
isCheckedOut()
Check if version is checked-out |
Version |
newVersion()
Create new version which will be direct successor of this version. |
| Methods inherited from class org.garret.perst.PersistentResource |
exclusiveLock, exclusiveLock, reset, sharedLock, sharedLock, unlock |
| Methods inherited from class org.garret.perst.Persistent |
assignOid, deallocate, equals, getOid, getStorage, hashCode, invalidate, isDeleted, isModified, isPersistent, isRaw, load, loadAndModify, makePersistent, modify, onLoad, onStore, readExternal, recursiveLoading, store, writeExternal |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void addLabel(java.lang.String label)
label - label to be associated with this versionpublic void addPredecessor(Version predecessor)
predecessor - version to merged withpublic void checkin()
Version.newVersion or VersionHistory.checkout method
public java.util.Date getDate()
public java.lang.String getId()
public java.lang.String[] getLabels()
public Version[] getPredecessors()
public Version[] getSuccessors()
public VersionHistory getVersionHistory()
public boolean hasLabel(java.lang.String label)
label - version labelpublic boolean isCheckedIn()
true if version belongs to version historypublic boolean isCheckedOut()
true if version is cjust created and not checked-in yet
(and so belongs to version history)public Version newVersion()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||