|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.domain.hibernate.VersionCountImpl
public class VersionCountImpl
Hibernate-specific implementation of the domain entity versioncounter.
| Constructor Summary | |
|---|---|
VersionCountImpl()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Long |
getId()
|
Store |
getStore()
|
java.lang.Long |
getVersion()
|
int |
getVersionCount()
Retrieve the current version counter |
int |
hashCode()
|
int |
incrementVersionCount()
Increments and returns the next version counter associated with this store. |
void |
resetVersionCount()
Reset back to 0 |
void |
setStore(Store store)
|
void |
setVersionCount(int versionCount)
For Hibernate use |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VersionCountImpl()
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object#getKey()public int hashCode()
hashCode in class java.lang.Object#getKey()public java.lang.String toString()
toString in class java.lang.Object#getKey()public java.lang.Long getId()
getId in interface VersionCountpublic Store getStore()
getStore in interface VersionCountpublic void setStore(Store store)
setStore in interface VersionCountpublic java.lang.Long getVersion()
public void setVersionCount(int versionCount)
setVersionCount in interface VersionCountversionCount - the new version counterpublic int incrementVersionCount()
VersionCount
incrementVersionCount in interface VersionCountVersionCount.getVersionCount()public void resetVersionCount()
resetVersionCount in interface VersionCountpublic int getVersionCount()
VersionCount
getVersionCount in interface VersionCountVersionCount.incrementVersionCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||