org.infinispan.loaders.jdbc.stringbased
Interface Key2StringMapper

All Known Subinterfaces:
TwoWayKey2StringMapper
All Known Implementing Classes:
DefaultKey2StringMapper, DefaultTwoWayKey2StringMapper, LuceneKey2StringMapper

public interface Key2StringMapper

Defines the logic of mapping a key object to a String. This is required JdbcStringBasedCacheStore, in order to map each key as an single row within a database. It basically should generate a unique String PK based on the supplied key.

Author:
Mircea.Markus@jboss.com

Method Summary
 String getStringMapping(Object key)
          Must return an unique String for the supplied key.
 boolean isSupportedType(Class keyType)
          Do we support this key type?
 

Method Detail

isSupportedType

boolean isSupportedType(Class keyType)
Do we support this key type?


getStringMapping

String getStringMapping(Object key)
Must return an unique String for the supplied key.


Google Analytics

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