public class InfinispanConnectionImpl extends BasicConnection implements ObjectConnection
cacheName that is specified will dictate the
cache to be accessed in the container.| Constructor and Description |
|---|
InfinispanConnectionImpl(AbstractInfinispanManagedConnectionFactory config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection, if a connection requires closing.
|
CacheContainerWrapper |
getCacheContainer() |
Map<String,Class<?>> |
getCacheNameClassTypeMapping()
Returns a map of all defined caches, and their respective root object class type,
that are accessible using this connection.
|
String |
getPkField(String cacheName)
Returns the name of the primary key to the cache
|
Class<?> |
getType(String cacheName)
Return the root class type stored in the specified cache
|
boolean |
isAlive()
Will return
true if the CacheContainer has been started. |
cleanUp, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo, getXAResourcepublic InfinispanConnectionImpl(AbstractInfinispanManagedConnectionFactory config)
public CacheContainerWrapper getCacheContainer() throws TranslatorException
getCacheContainer in interface ObjectConnectionTranslatorExceptionpublic void close()
close in interface javax.resource.cci.Connectionpublic boolean isAlive()
true if the CacheContainer has been started.isAlive in class BasicConnectionpublic Class<?> getType(String cacheName) throws TranslatorException
ObjectConnectiongetType in interface ObjectConnectionTranslatorExceptionpublic String getPkField(String cacheName)
ObjectConnectiongetPkField in interface ObjectConnectionpublic Map<String,Class<?>> getCacheNameClassTypeMapping()
ObjectConnectiongetCacheNameClassTypeMapping in interface ObjectConnectionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.