Class DalThreadCleaner


  • public class DalThreadCleaner
    extends Object
    Provides cleanup methods for closing the DAL session of the current thread and also cleaning the OBContext
    • 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.