public class OrmSessionProvider extends Object implements Serializable
| Constructor and Description |
|---|
OrmSessionProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
closeSession()
Close the session (if any)
and release the session for a garbage collector.
|
static OrmHandler |
getOrmHandler()
Create current ORM Handler
|
Session |
getSession()
Create and cache the ORM Session, where created session must be closed later
|
boolean |
isOpenSesson()
Is the session open?
|
public static OrmHandler getOrmHandler() throws IllegalStateException
IllegalStateExceptionpublic Session getSession() throws IllegalStateException
IllegalStateExceptionpublic boolean closeSession()
public boolean isOpenSesson()
Copyright © 2024. All rights reserved.