public class EntityKeyExternalizer extends Object implements org.infinispan.commons.marshall.AdvancedExternalizer<EntityKey>
EntityKey instances. Implicitly used by
InfinispanDialect which stores keys as is in the Infinispan data store.
This externalizer is automatically registered with the cache manager when starting the
InfinispanDatastoreProvider, so it's not required to configure the externalizer in the Infinispan
configuration file.
| Modifier and Type | Field and Description |
|---|---|
static EntityKeyExternalizer |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getId() |
Set<Class<? extends EntityKey>> |
getTypeClasses() |
EntityKey |
readObject(ObjectInput input) |
void |
writeObject(ObjectOutput output,
EntityKey key) |
public static final EntityKeyExternalizer INSTANCE
public void writeObject(ObjectOutput output, EntityKey key) throws IOException
writeObject in interface org.infinispan.commons.marshall.Externalizer<EntityKey>IOExceptionpublic EntityKey readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface org.infinispan.commons.marshall.Externalizer<EntityKey>IOExceptionClassNotFoundExceptionpublic Set<Class<? extends EntityKey>> getTypeClasses()
getTypeClasses in interface org.infinispan.commons.marshall.AdvancedExternalizer<EntityKey>Copyright © 2010-2014 Hibernate. All Rights Reserved.