public class MemoryPersistenceContext extends java.lang.Object implements PersistenceContext
Modifier and Type | Field and Description |
---|---|
protected ConfigContext |
_context |
protected MemoryPersistenceHandler |
_handler |
Constructor and Description |
---|
MemoryPersistenceContext(ConfigContext context)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
This method is called when a session is disposed either as a result of successful session activation or as a result of dession discard
|
PersistenceHandler |
getBinaryHandler(java.lang.String typeId)
returns the
PersistenceHandler for the given binary type. |
PersistenceHandler |
getResourceHandler(java.lang.String typeId)
returns the
PersistenceHandler for the given resource type. |
void |
load()
callback to load the persistence context.
|
protected ConfigContext _context
protected MemoryPersistenceHandler _handler
public MemoryPersistenceContext(ConfigContext context) throws java.lang.Exception
java.lang.Exception
public void load() throws java.lang.Exception
load
in interface PersistenceContext
java.lang.Exception
public PersistenceHandler getResourceHandler(java.lang.String typeId) throws java.lang.Exception
PersistenceHandler
for the given resource type.getResourceHandler
in interface PersistenceContext
java.lang.Exception
public PersistenceHandler getBinaryHandler(java.lang.String typeId) throws java.lang.Exception
PersistenceHandler
for the given binary type.getBinaryHandler
in interface PersistenceContext
java.lang.Exception
public void dispose()
dispose
in interface PersistenceContext