org.ujorm.wicket
Class OrmSessionProvider

java.lang.Object
  extended by org.ujorm.wicket.OrmSessionProvider
All Implemented Interfaces:
Serializable

public class OrmSessionProvider
extends Object
implements Serializable

ORM Session Provider

Author:
Pavel Ponec
See Also:
Serialized Form

Constructor Summary
OrmSessionProvider()
           
 
Method Summary
 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?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrmSessionProvider

public OrmSessionProvider()
Method Detail

getOrmHandler

public static OrmHandler getOrmHandler()
                                throws IllegalStateException
Create current ORM Handler

Throws:
IllegalStateException

getSession

public Session getSession()
                   throws IllegalStateException
Create and cache the ORM Session, where created session must be closed later

Throws:
IllegalStateException

closeSession

public boolean closeSession()
Close the session (if any) and release the session for a garbage collector.


isOpenSesson

public boolean isOpenSesson()
Is the session open?



Copyright © 2015. All Rights Reserved.