org.terracotta.modules.ehcache.store
Class HibernateElementSerializationStrategy

java.lang.Object
  extended by org.terracotta.cache.serialization.DsoSerializationStrategy<AbstractElementData>
      extended by org.terracotta.modules.ehcache.store.ElementSerializationStrategy
          extended by org.terracotta.modules.ehcache.store.HibernateElementSerializationStrategy
All Implemented Interfaces:
com.tc.object.bytecode.NotClearable, SerializationStrategy<AbstractElementData>

public class HibernateElementSerializationStrategy
extends ElementSerializationStrategy

Author:
Chris Dennis

Nested Class Summary
 
Nested classes/interfaces inherited from class org.terracotta.cache.serialization.DsoSerializationStrategy
DsoSerializationStrategy.OIS, DsoSerializationStrategy.OOS
 
Field Summary
 
Fields inherited from class org.terracotta.cache.serialization.DsoSerializationStrategy
HIGH_BIT, oscSerializer
 
Constructor Summary
HibernateElementSerializationStrategy()
           
 
Method Summary
protected  void writeStringKey(Object key, ObjectOutputStream oos)
          Special cases the CacheKey class in order to reduce the size of the generated Strings.
 
Methods inherited from class org.terracotta.modules.ehcache.store.ElementSerializationStrategy
deserialize, deserialize, serialize
 
Methods inherited from class org.terracotta.cache.serialization.DsoSerializationStrategy
decodeInt, encodeInt, generateStringKeyFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateElementSerializationStrategy

public HibernateElementSerializationStrategy()
Method Detail

writeStringKey

protected void writeStringKey(Object key,
                              ObjectOutputStream oos)
                       throws IOException
Special cases the CacheKey class in order to reduce the size of the generated Strings.

Overrides:
writeStringKey in class DsoSerializationStrategy<AbstractElementData>
Throws:
IOException


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.