Пример #1
0
 /** 현재 Thread Context하에서 사용할 TimeCalendar입니다. */
 public static ITimeCalendar getTimeCalendar() {
   ITimeCalendar calendar = Local.get(TIME_CALENDAR_KEY, ITimeCalendar.class);
   if (calendar == null) {
     calendar = TimeCalendar.getDefault();
     Local.put(TIME_CALENDAR_KEY, calendar);
   }
   return calendar;
 }
Пример #2
0
 public static void setTimeCalendar(ITimeCalendar calendar) {
   Local.put(TIME_CALENDAR_KEY, calendar);
 }
Пример #3
0
  /**
   * Set current unit of work.
   *
   * @param unitOfWork the unit of work
   */
  public static void setCurrent(IUnitOfWork unitOfWork) {
    if (log.isDebugEnabled())
      log.debug("현 Thread Context의 UnitOfWork 인스턴스를 설정합니다. unitOfWork=[{}]", unitOfWork);

    Local.put(IUnitOfWork.CURRENT_UNIT_OF_WORK_KEY, unitOfWork);
  }