public interface SessionManager
Sessions.| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDomain() |
Session |
getSession(SessionContext context)
基于context获取session,若存在则获取,若不存在则创建
|
Session |
getSession(String id) |
SessionFactory |
getSessionFactory() |
void |
invalidate(Session session) |
void |
setDomain(String domain) |
void |
setSessionFactory(SessionFactory sessionFactory) |
void setDomain(String domain)
String getDomain()
void setSessionFactory(SessionFactory sessionFactory)
SessionFactory getSessionFactory()
Session getSession(SessionContext context)
void invalidate(Session session)
Copyright © 2022. All rights reserved.