public class AndroidSessionContext
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AndroidSessionContext.CleaningSession |
| Modifier and Type | Field and Description |
|---|---|
protected SQLSessionFactory |
factory |
| Constructor and Description |
|---|
AndroidSessionContext(SQLSessionFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(SQLSession session) |
SQLSession |
currentSession() |
protected SQLSessionFactory |
getSQLSessionFactory() |
protected static java.util.Map<SQLSessionFactory,SQLSession> |
sessionMap() |
static SQLSession |
unbind(SQLSessionFactory factory) |
public final SQLSession currentSession()
throws java.lang.Exception
java.lang.Exceptionprotected SQLSessionFactory getSQLSessionFactory()
public static void bind(SQLSession session)
public static SQLSession unbind(SQLSessionFactory factory)
protected static java.util.Map<SQLSessionFactory,SQLSession> sessionMap()