1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.job;
16  
17  import java.util.Date;
18  
19  import org.quartz.JobExecutionContext;
20  
21  /**
22   * <a href="JobExecutionContextImpl.java.html"><b><i>View Source</i></b></a>
23   *
24   * @author Brian Wing Shun Chan
25   */
26  public class JobExecutionContextImpl
27      implements com.liferay.portal.kernel.job.JobExecutionContext {
28  
29      public JobExecutionContextImpl(JobExecutionContext context) {
30          _context = context;
31      }
32  
33      public Object get(Object key) {
34          return _context.get(key);
35      }
36  
37      public long getJobRunTime() {
38          return _context.getJobRunTime();
39      }
40  
41      public Date getNextFireTime() {
42          return _context.getNextFireTime();
43      }
44  
45      public Date getPreviousFireTime() {
46          return _context.getPreviousFireTime();
47      }
48  
49      public Object getResult() {
50          return _context.getResult();
51      }
52  
53      public void put(Object key, Object value) {
54          _context.put(key, value);
55      }
56  
57      public void setJobRunTime(long jobRunTime) {
58          _context.setJobRunTime(jobRunTime);
59      }
60  
61      public void setResult(Object result) {
62          _context.setResult(result);
63      }
64  
65      private JobExecutionContext _context;
66  
67  }