org.terracotta.modules.ehcache.store
Class ValueModeHandlerSerialization

java.lang.Object
  extended by org.terracotta.modules.ehcache.store.ValueModeHandlerSerialization
All Implemented Interfaces:
ValueModeHandler

public class ValueModeHandlerSerialization
extends Object
implements ValueModeHandler


Constructor Summary
ValueModeHandlerSerialization()
           
 
Method Summary
 Element createElement(Object key, Serializable value)
          Returns null for null values otherwise creates an Element with the specified key-value and returns it
 ElementData createElementData(Element element)
           
 String createPortableKey(Object key)
           
 Object getRealKeyObject(String portableKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueModeHandlerSerialization

public ValueModeHandlerSerialization()
Method Detail

getRealKeyObject

public Object getRealKeyObject(String portableKey)
Specified by:
getRealKeyObject in interface ValueModeHandler

createPortableKey

public String createPortableKey(Object key)
                         throws IOException
Specified by:
createPortableKey in interface ValueModeHandler
Throws:
IOException

createElementData

public ElementData createElementData(Element element)
Specified by:
createElementData in interface ValueModeHandler

createElement

public Element createElement(Object key,
                             Serializable value)
Description copied from interface: ValueModeHandler
Returns null for null values otherwise creates an Element with the specified key-value and returns it

Specified by:
createElement in interface ValueModeHandler


Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.