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, getXAResource
public InfinispanConnectionImpl(AbstractInfinispanManagedConnectionFactory config)
public CacheContainerWrapper getCacheContainer() throws TranslatorException
getCacheContainer
in interface ObjectConnection
TranslatorException
public void close()
close
in interface javax.resource.cci.Connection
public boolean isAlive()
true if the CacheContainer has been started.
isAlive
in class BasicConnection
public Class<?> getType(String cacheName) throws TranslatorException
ObjectConnection
getType
in interface ObjectConnection
TranslatorException
public String getPkField(String cacheName)
ObjectConnection
getPkField
in interface ObjectConnection
public Map<String,Class<?>> getCacheNameClassTypeMapping()
ObjectConnection
getCacheNameClassTypeMapping
in interface ObjectConnection
Copyright © 2013-2014 JBoss by Red Hat. All Rights Reserved.