|
EJB 3.1 API 1.0.1.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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(String d)
|
ScheduleExpression |
dayOfWeek(int d)
|
ScheduleExpression |
dayOfWeek(String d)
|
ScheduleExpression |
end(Date e)
|
String |
getDayOfMonth()
|
String |
getDayOfWeek()
|
Date |
getEnd()
|
String |
getHour()
|
String |
getMinute()
|
String |
getMonth()
|
String |
getSecond()
|
Date |
getStart()
|
String |
getTimezone()
|
String |
getYear()
|
ScheduleExpression |
hour(int h)
|
ScheduleExpression |
hour(String h)
|
ScheduleExpression |
minute(int m)
|
ScheduleExpression |
minute(String m)
|
ScheduleExpression |
month(int m)
|
ScheduleExpression |
month(String m)
|
ScheduleExpression |
second(int s)
|
ScheduleExpression |
second(String s)
|
ScheduleExpression |
start(Date s)
|
ScheduleExpression |
timezone(String s)
|
String |
toString()
|
ScheduleExpression |
year(int y)
|
ScheduleExpression |
year(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 dayOfMonth(int d)
public ScheduleExpression dayOfMonth(String d)
public ScheduleExpression dayOfWeek(int d)
public ScheduleExpression dayOfWeek(String d)
public ScheduleExpression end(Date e)
public String getDayOfMonth()
public String getDayOfWeek()
public Date getEnd()
public String getHour()
public String getMinute()
public String getMonth()
public String getSecond()
public Date getStart()
public String getTimezone()
public String getYear()
public ScheduleExpression hour(int h)
public ScheduleExpression hour(String h)
public ScheduleExpression minute(int m)
public ScheduleExpression minute(String m)
public ScheduleExpression month(int m)
public ScheduleExpression month(String m)
public ScheduleExpression second(int s)
public ScheduleExpression second(String s)
public ScheduleExpression start(Date s)
public ScheduleExpression timezone(String s)
public ScheduleExpression year(int y)
public ScheduleExpression year(String y)
public String toString()
toString
in class Object
|
EJB 3.1 API 1.0.1.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |