|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.pollen.business.utils.ContextUtil
public class ContextUtil
Charge et génère le contexte global.
| Method Summary | |
|---|---|
void |
buildContext()
Construction du contexte global |
void |
closeContext()
Fermeture du contexte global |
static void |
doCatch(Exception e,
org.nuiton.topia.TopiaContext transaction)
|
static void |
doCatch(Exception eee,
org.nuiton.topia.TopiaContext transaction,
String message)
Méthode exécutée lorsqu'une exception est détectée. |
static void |
doFinally(org.nuiton.topia.TopiaContext transaction)
Méthode exécutée dans tous les cas pour libérer la transaction. |
Properties |
getConf()
Retourne la configuration de la base de données. |
org.nuiton.topia.TopiaContext |
getContext()
Retourne le contexte global. |
static ContextUtil |
getInstance()
Retourne l'instance unique de la classe (patron singleton) |
protected String |
getPropertiesFileName()
Use to get properties filename in JNDI envirronement. |
protected void |
initDB()
Chargement des valeurs initiales dans la base de données. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public org.nuiton.topia.TopiaContext getContext()
public Properties getConf()
public void buildContext()
public void closeContext()
public static ContextUtil getInstance()
protected String getPropertiesFileName()
protected void initDB()
throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaException
public static void doCatch(Exception e,
org.nuiton.topia.TopiaContext transaction)
public static void doCatch(Exception eee,
org.nuiton.topia.TopiaContext transaction,
String message)
eee - message - transaction - la transaction courantepublic static void doFinally(org.nuiton.topia.TopiaContext transaction)
transaction - transaction en cours
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||