public interface PersistenceContext
After this context is created, the config framework will query the persistence handler for the types that have been configured. The types are classified into two groups: resource types and binary types. The context can return the same persistence handler instance for more than one type.
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.
|
void load() throws java.lang.Exception
java.lang.Exception
PersistenceHandler getResourceHandler(java.lang.String typeId) throws java.lang.Exception
PersistenceHandler
for the given resource type.java.lang.Exception
PersistenceHandler getBinaryHandler(java.lang.String typeId) throws java.lang.Exception
PersistenceHandler
for the given binary type.java.lang.Exception
void dispose()