|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.webapp.query.QContextManager
public final class QContextManager
Fugly singleton helper class to globally access database stuff.
Method Summary | |
---|---|
static void |
closeSharedContext(IQContextContainer cc)
If the specified container contains a shared context close it. |
static QDataContext |
createUnmanagedContext()
Create an unmanaged (manually closed) context factory. |
static QDataContext |
getContext(IQContextContainer cc)
Gets a shared QDataContext from the container. |
static QDataContextFactory |
getDataContextFactory()
Return the default QDataContextFactory. |
static QDataContextFactory |
getDataContextFactory(IQContextContainer cc)
Get/create a shared context factory. |
static void |
initialize(QDataContextFactory f)
Initialize the QContextManager with a literal QDataContextFactory. |
static void |
setImplementation(IQContextManager cm)
Override the default implementation of QContextManager with your own. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setImplementation(IQContextManager cm)
cm
- public static void initialize(QDataContextFactory f)
f
- public static QDataContextFactory getDataContextFactory()
public static QDataContext createUnmanagedContext() throws java.lang.Exception
java.lang.Exception
public static QDataContextFactory getDataContextFactory(IQContextContainer cc)
cc
-
public static QDataContext getContext(IQContextContainer cc) throws java.lang.Exception
java.lang.Exception
public static void closeSharedContext(IQContextContainer cc)
cc
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |