|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.ist.fenixframework.backend.infinispan.InfinispanBackEnd
public class InfinispanBackEnd
Field Summary | |
---|---|
static String |
BACKEND_NAME
|
protected org.infinispan.Cache<String,Object> |
domainCache
|
protected InfinispanTransactionManager |
transactionManager
|
Method Summary | ||
---|---|---|
|
cacheGet(String key)
Reads from Infinispan a value with a given key. |
|
void |
cachePut(String key,
Object value)
Store in Infinispan. |
|
protected void |
configInfinispan(InfinispanConfig config)
|
|
|
fromOid(Object oid)
Backend-specific method to get a DomainObject given its OID. |
|
|
getDomainObject(String externalId)
|
|
DomainRoot |
getDomainRoot()
|
|
protected IdentityMap |
getIdentityMap()
|
|
static InfinispanBackEnd |
getInstance()
|
|
String |
getName()
Get the unique name of this BackEnd. |
|
TransactionManager |
getTransactionManager()
|
|
void |
shutdown()
Shuts down Infinispan's cache(s) and the(ir) manager(s) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BACKEND_NAME
protected final InfinispanTransactionManager transactionManager
protected org.infinispan.Cache<String,Object> domainCache
Method Detail |
---|
public static InfinispanBackEnd getInstance()
public String getName()
BackEnd
getName
in interface BackEnd
FenixFramework
public DomainRoot getDomainRoot()
getDomainRoot
in interface BackEnd
FenixFramework.getDomainRoot()
public <T extends DomainObject> T getDomainObject(String externalId)
getDomainObject
in interface BackEnd
FenixFramework.getDomainObject(String)
public TransactionManager getTransactionManager()
getTransactionManager
in interface BackEnd
FenixFramework.getTransactionManager()
public <T extends DomainObject> T fromOid(Object oid)
BackEnd
DomainObject
given its OID. Callers of this method
are responsible for providing a valid OID.
fromOid
in interface BackEnd
oid
- The backend-specific identifier of the object to getpublic void shutdown()
shutdown
in interface BackEnd
protected void configInfinispan(InfinispanConfig config)
protected IdentityMap getIdentityMap()
public final void cachePut(String key, Object value)
public final <T> T cacheGet(String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |