001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.jetspeed.scheduler;
018:
019: /**
020: * BaseJobEntry
021: *
022: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
023: * @version $Id: BaseJobEntry.java 516448 2007-03-09 16:25:47Z ate $
024: */
025: public abstract class BaseJobEntry {
026: protected int jobId = 0;
027: protected int jobSecond = -1;
028: protected int jobMinute = -1;
029: protected int jobHour = -1;
030: protected int weekDay = -1;
031: protected int dayOfMonth = -1;
032: protected String task;
033: protected String email;
034:
035: /**
036: * Get the JobId
037: *
038: * @return
039: */
040: public int getJobId() {
041: return jobId;
042: }
043:
044: /**
045: * Set the value of JobId
046: *
047: * @param v new value
048: */
049: public void setJobId(int v) {
050: this .jobId = v;
051: }
052:
053: /**
054: * Get the Second
055: *
056: * @return int
057: */
058: public int getSecond() {
059: return jobSecond;
060: }
061:
062: /**
063: * Set the value of Second
064: *
065: * @param v new value
066: */
067: public void setSecond(int v) {
068: this .jobSecond = v;
069: }
070:
071: /**
072: * Get the Minute
073: *
074: * @return int
075: */
076: public int getMinute() {
077: return jobMinute;
078: }
079:
080: /**
081: * Set the value of Minute
082: *
083: * @param v new value
084: */
085: public void setMinute(int v) {
086: this .jobMinute = v;
087: }
088:
089: /**
090: * Get the Hour
091: *
092: * @return int
093: */
094: public int getHour() {
095: return jobHour;
096: }
097:
098: /**
099: * Set the value of Hour
100: *
101: * @param v new value
102: */
103: public void setHour(int v) {
104: this .jobHour = v;
105: }
106:
107: /**
108: * Get the WeekDay
109: *
110: * @return int
111: */
112: public int getWeekDay() {
113: return weekDay;
114: }
115:
116: /**
117: * Set the value of WeekDay
118: *
119: * @param v new value
120: */
121: public void setWeekDay(int v) {
122: this .weekDay = v;
123: }
124:
125: /**
126: * Get the DayOfMonth
127: *
128: * @return int
129: */
130: public int getDayOfMonth() {
131: return dayOfMonth;
132: }
133:
134: /**
135: * Set the value of DayOfMonth
136: *
137: * @param v new value
138: */
139: public void setDayOfMonth(int v) {
140: this .dayOfMonth = v;
141: }
142:
143: /**
144: * Get the Task
145: *
146: * @return String
147: */
148: public String getTask() {
149: return task;
150: }
151:
152: /**
153: * Set the value of Task
154: *
155: * @param v new value
156: */
157: public void setTask(String v) {
158: this .task = v;
159: }
160:
161: /**
162: * Get the Email
163: *
164: * @return String
165: */
166: public String getEmail() {
167: return email;
168: }
169:
170: /**
171: * Set the value of Email
172: *
173: * @param v new value
174: */
175: public void setEmail(String v) {
176: this.email = v;
177: }
178: }
|