org.alfresco.repo.domain.hibernate
Class VersionCountImpl

java.lang.Object
  extended by org.alfresco.repo.domain.hibernate.VersionCountImpl
All Implemented Interfaces:
java.io.Serializable, VersionCount

public class VersionCountImpl
extends java.lang.Object
implements VersionCount, java.io.Serializable

Hibernate-specific implementation of the domain entity versioncounter.

See Also:
Serialized Form

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

VersionCountImpl

public VersionCountImpl()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
#getKey()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
#getKey()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
#getKey()

getId

public java.lang.Long getId()
Specified by:
getId in interface VersionCount
Returns:
Returns the auto-generated ID

getStore

public Store getStore()
Specified by:
getStore in interface VersionCount
Returns:
Returns the associated store

setStore

public void setStore(Store store)
Specified by:
setStore in interface VersionCount

getVersion

public java.lang.Long getVersion()

setVersionCount

public void setVersionCount(int versionCount)
For Hibernate use

Specified by:
setVersionCount in interface VersionCount
Parameters:
versionCount - the new version counter

incrementVersionCount

public int incrementVersionCount()
Description copied from interface: VersionCount
Increments and returns the next version counter associated with this store.

Specified by:
incrementVersionCount in interface VersionCount
Returns:
Returns the next version counter in the sequence
See Also:
VersionCount.getVersionCount()

resetVersionCount

public void resetVersionCount()
Reset back to 0

Specified by:
resetVersionCount in interface VersionCount

getVersionCount

public int getVersionCount()
Description copied from interface: VersionCount
Retrieve the current version counter

Specified by:
getVersionCount in interface VersionCount
Returns:
Returns a current version counter
See Also:
VersionCount.incrementVersionCount()


Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.