Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


oracle.eclipselink.coherence.integrated.internal.cache
Class LockVersionExtractor

java.lang.Object
  extended by oracle.eclipselink.coherence.integrated.internal.cache.LockVersionExtractor

All Implemented Interfaces:
com.tangosol.util.ValueExtractor, java.io.Serializable, EclipseLinkExtractor

public class LockVersionExtractor
extends java.lang.Object
implements com.tangosol.util.ValueExtractor, java.io.Serializable, EclipseLinkExtractor

Used during conditional puts of Optimistically Locked objects. This Class is used to extract the version value from the object.

Since:
Oracle TopLink 11g (11.1.1.0.0)
Author:
gyorke
See Also:
Serialized Form

Field Summary
protected  AttributeAccessor accessor
           
protected  java.lang.String className
           

 

Constructor Summary
LockVersionExtractor(AttributeAccessor accessor, java.lang.String className)
           

 

Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object extract(java.lang.Object arg0)
           
 AttributeAccessor getAccessor()
          INTERNAL: Returns a reference to the AttributeAccessor used by the extractor.
 java.lang.String getClassName()
           
 void setAccessor(AttributeAccessor accessor)
          INTERNAL:
 void setClassName(java.lang.String className)
           
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface com.tangosol.util.ValueExtractor
hashCode

 

Field Detail

accessor

protected AttributeAccessor accessor

className

protected java.lang.String className

Constructor Detail

LockVersionExtractor

public LockVersionExtractor(AttributeAccessor accessor,
                            java.lang.String className)

Method Detail

extract

public java.lang.Object extract(java.lang.Object arg0)
Specified by:
extract in interface com.tangosol.util.ValueExtractor

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface com.tangosol.util.ValueExtractor
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Specified by:
toString in interface com.tangosol.util.ValueExtractor
Overrides:
toString in class java.lang.Object

getAccessor

public AttributeAccessor getAccessor()
Description copied from interface: EclipseLinkExtractor
INTERNAL: Returns a reference to the AttributeAccessor used by the extractor.
Specified by:
getAccessor in interface EclipseLinkExtractor
Returns:
the accessor

getClassName

public java.lang.String getClassName()
Returns:
the className

setAccessor

public void setAccessor(AttributeAccessor accessor)
Description copied from interface: EclipseLinkExtractor
INTERNAL:
Specified by:
setAccessor in interface EclipseLinkExtractor
Parameters:
accessor - the accessor to set

setClassName

public void setClassName(java.lang.String className)
Parameters:
className - the className to set

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.