org.infinispan.loaders.jdbc.stringbased
Class DefaultTwoWayKey2StringMapper

java.lang.Object
  extended by org.infinispan.loaders.jdbc.stringbased.DefaultTwoWayKey2StringMapper
All Implemented Interfaces:
Key2StringMapper, TwoWayKey2StringMapper

public class DefaultTwoWayKey2StringMapper
extends Object
implements TwoWayKey2StringMapper

Default implementation for TwoWayKey2StringMapper that knows how to handle all primitive wrapper keys and Strings.

Since:
4.1
Author:
Mircea.Markus@jboss.com

Constructor Summary
DefaultTwoWayKey2StringMapper()
           
 
Method Summary
 Object getKeyMapping(String key)
           
 String getStringMapping(Object key)
          Must return an unique String for the supplied key.
 boolean isSupportedType(Class keyType)
          Do we support this key type?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTwoWayKey2StringMapper

public DefaultTwoWayKey2StringMapper()
Method Detail

getStringMapping

public String getStringMapping(Object key)
Description copied from interface: Key2StringMapper
Must return an unique String for the supplied key.

Specified by:
getStringMapping in interface Key2StringMapper

getKeyMapping

public Object getKeyMapping(String key)
Specified by:
getKeyMapping in interface TwoWayKey2StringMapper

isSupportedType

public boolean isSupportedType(Class keyType)
Description copied from interface: Key2StringMapper
Do we support this key type?

Specified by:
isSupportedType in interface Key2StringMapper

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.