com.hazelcast.hibernate.local
Class Value

java.lang.Object
  extended by com.hazelcast.hibernate.local.Value

public class Value
extends Object

A value wrapper with version, lock support and creationTime


Constructor Summary
Value(Object version, Object value, long creationTime)
           
Value(Object version, Object value, SoftLock lock, long creationTime)
           
 
Method Summary
 Value createLockedValue(SoftLock lock)
           
 Value createUnlockedValue()
           
 boolean equals(Object o)
           
 long getCreationTime()
           
 SoftLock getLock()
           
 Object getValue()
           
 Object getVersion()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Value

public Value(Object version,
             Object value,
             long creationTime)

Value

public Value(Object version,
             Object value,
             SoftLock lock,
             long creationTime)
Method Detail

getValue

public Object getValue()

getVersion

public Object getVersion()

getLock

public SoftLock getLock()

getCreationTime

public long getCreationTime()

createLockedValue

public Value createLockedValue(SoftLock lock)

createUnlockedValue

public Value createUnlockedValue()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.