com.mysema.query.lucene.session.impl
Class LuceneSessionHolder
java.lang.Object
com.mysema.query.lucene.session.impl.LuceneSessionHolder
public final class LuceneSessionHolder
- extends Object
Holds the thread local sessions. This can handle several session factories
per thread.
- Author:
- laim
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isTransactionalScope
public static boolean isTransactionalScope()
hasCurrentSession
public static boolean hasCurrentSession(LuceneSessionFactory sessionFactory)
getCurrentSession
public static LuceneSession getCurrentSession(LuceneSessionFactory sessionFactory)
setCurrentSession
public static void setCurrentSession(LuceneSessionFactory sessionFactory,
LuceneSession session)
release
public static void release()
lease
public static void lease(boolean readOnly)
getReadOnly
public static boolean getReadOnly()
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.