com.mysema.query.lucene.session.impl
Class LuceneSessionHolder

java.lang.Object
  extended by 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

Method Summary
static LuceneSession getCurrentSession(LuceneSessionFactory sessionFactory)
           
static boolean getReadOnly()
           
static boolean hasCurrentSession(LuceneSessionFactory sessionFactory)
           
static boolean isTransactionalScope()
           
static void lease(boolean readOnly)
           
static void release()
           
static void setCurrentSession(LuceneSessionFactory sessionFactory, LuceneSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.