Package org.openbravo.dal.core
Class DalThreadCleaner
- java.lang.Object
-
- org.openbravo.dal.core.DalThreadCleaner
-
public class DalThreadCleaner extends Object
Provides cleanup methods for closing the DAL session of the current thread and also cleaning the OBContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanWithCommit()
Commits the default DAL session and closes it and the other sessions.void
cleanWithRollback()
Rollbacks the default DAL session and closes it and the other sessions.static DalThreadCleaner
getInstance()
-
-
-
Method Detail
-
getInstance
public static DalThreadCleaner getInstance()
- Returns:
- the DalThreadCleaner singleton instance
-
cleanWithCommit
public void cleanWithCommit()
Commits the default DAL session and closes it and the other sessions. Cleanups the OBContext.
-
cleanWithRollback
public void cleanWithRollback()
Rollbacks the default DAL session and closes it and the other sessions. Cleanups the OBContext.
-
-