|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.ejb.ScheduleExpression
public class ScheduleExpression
A calendar-based timeout expression for an enterprise bean timer. See EJB specification for the full timer expression syntax.
Each expression attribute has two overloaded setter methods, one that takes a String and one that takes an int. The int version is merely a convenience method for setting the attribute in the common case that the value is a simple integer.
E.g.
scheduleExpression.second(10)is semantically equivalent to
scheduleExpression.second("10")None of the ScheduleExpression methods are required to be called. The defaults are :
{ second , minute , hour } : "0"
{ dayOfMonth, month, dayOfWeek, year } : "*"
timezone : default JVM time zone
startDate : no start date
endDate : no end date
Constructor Summary | |
---|---|
ScheduleExpression()
|
Method Summary | |
---|---|
ScheduleExpression |
dayOfMonth(int d)
|
ScheduleExpression |
dayOfMonth(java.lang.String d)
|
ScheduleExpression |
dayOfWeek(int d)
|
ScheduleExpression |
dayOfWeek(java.lang.String d)
|
ScheduleExpression |
end(java.util.Date e)
|
java.lang.String |
getDayOfMonth()
|
java.lang.String |
getDayOfWeek()
|
java.util.Date |
getEnd()
|
java.lang.String |
getHour()
|
java.lang.String |
getMinute()
|
java.lang.String |
getMonth()
|
java.lang.String |
getSecond()
|
java.util.Date |
getStart()
|
java.lang.String |
getTimezone()
|
java.lang.String |
getYear()
|
ScheduleExpression |
hour(int h)
|
ScheduleExpression |
hour(java.lang.String h)
|
ScheduleExpression |
minute(int m)
|
ScheduleExpression |
minute(java.lang.String m)
|
ScheduleExpression |
month(int m)
|
ScheduleExpression |
month(java.lang.String m)
|
ScheduleExpression |
second(int s)
|
ScheduleExpression |
second(java.lang.String s)
|
ScheduleExpression |
start(java.util.Date s)
|
ScheduleExpression |
timezone(java.lang.String timezoneID)
|
java.lang.String |
toString()
|
ScheduleExpression |
year(int y)
|
ScheduleExpression |
year(java.lang.String y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScheduleExpression()
Method Detail |
---|
public ScheduleExpression second(java.lang.String s)
public ScheduleExpression second(int s)
public java.lang.String getSecond()
public ScheduleExpression minute(java.lang.String m)
public ScheduleExpression minute(int m)
public java.lang.String getMinute()
public ScheduleExpression hour(java.lang.String h)
public ScheduleExpression hour(int h)
public java.lang.String getHour()
public ScheduleExpression dayOfMonth(java.lang.String d)
public ScheduleExpression dayOfMonth(int d)
public java.lang.String getDayOfMonth()
public ScheduleExpression month(java.lang.String m)
public ScheduleExpression month(int m)
public java.lang.String getMonth()
public ScheduleExpression dayOfWeek(java.lang.String d)
public ScheduleExpression dayOfWeek(int d)
public java.lang.String getDayOfWeek()
public ScheduleExpression year(java.lang.String y)
public ScheduleExpression year(int y)
public java.lang.String getYear()
public ScheduleExpression timezone(java.lang.String timezoneID)
public java.lang.String getTimezone()
public ScheduleExpression start(java.util.Date s)
public java.util.Date getStart()
public ScheduleExpression end(java.util.Date e)
public java.util.Date getEnd()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34