org.jcrontab.data
Class CrontabEntryBean

java.lang.Object
  |
  +--org.jcrontab.data.CrontabEntryBean
All Implemented Interfaces:
java.io.Serializable

public class CrontabEntryBean
extends java.lang.Object
implements java.io.Serializable

CrontabEntryBeans represents each entry into crontab "DataSource" usually a file. This Bean allows jcrontab to interact with the information from CrontabEntry

Version:
$Revision: 1.29 $
Author:
$Author: iolalla $
See Also:
Serialized Form

Constructor Summary
CrontabEntryBean()
          Default constructor
 
Method Summary
 boolean equals(java.util.Calendar cal)
          Returns true if the time table entry matchs with the calendar given
 boolean equals(CrontabEntryBean ceb)
          Returns true if the CrontabEntryBean equals the given
 boolean[] getBDaysOfMonth()
          Days of Month getter
 boolean[] getBDaysOfWeek()
          Getter Days of Week
 boolean getBExtraInfo()
          Returns true if theres extra info false otherwise.
 boolean[] getBHours()
          Hours booleans getter
 boolean[] getBMinutes()
          Minutes getter
 boolean[] getBMonths()
          Months Boolean getter
 boolean[] getBSeconds()
          Days of Month setter
 java.lang.String getClassName()
          Class Name getter
 java.lang.String getDaysOfMonth()
          Days of Month getter
 java.lang.String getDaysOfWeek()
          Days of week getter
 java.lang.String getDescription()
          Description getter
 java.lang.String[] getExtraInfo()
          Extra Info getter
 java.lang.String getHours()
          Hours getter
 int getId()
          Id getter
 java.lang.String getMethodName()
          Method Name getter
 java.lang.String getMinutes()
          Minutes getter
 java.lang.String getMonths()
          Months getter
 java.lang.String getSeconds()
          Minutes getter
 void setBDaysOfMonth(boolean[] bDaysOfMonth)
          Days of Month setter
 void setBDaysOfWeek(boolean[] bDaysOfWeek)
          Days of Week
 void setBExtraInfo(boolean bextraInfo)
          bextraInfo setter
 void setBHours(boolean[] bHours)
          Hours setter
 void setBMinutes(boolean[] bMinutes)
          Minutes setter
 void setBMonths(boolean[] bMonths)
          Months setter
 void setBSeconds(boolean[] bSeconds)
          Seconds setter
 boolean[] setBYears()
          bYears getter
 void setBYears(boolean[] bYears)
          Years setter
 void setClassName(java.lang.String className)
          ClassName Setter
 void setDaysOfMonth(java.lang.String daysOfMonth)
          Days of Month setter
 void setDaysOfWeek(java.lang.String daysOfWeek)
          Days of Week
 void setDescription(java.lang.String description)
          Description setter
 void setExtraInfo(java.lang.String[] extraInfo)
          Extra info setter
 void setHours(java.lang.String hours)
          Hours setter
 void setId(int id)
          Id setter
 void setMethodName(java.lang.String methodName)
          MethodName setter
 void setMinutes(java.lang.String minutes)
          Minutes setter
 void setMonths(java.lang.String months)
          Months setter
 void setSeconds(java.lang.String seconds)
          Seconds setter
 void setYears(java.lang.String years)
          Years Setter
 java.lang.String toString()
          Represents the CrotnabEntryBean in ASCII format
 java.lang.String toXML()
          Represents the CrotnabEntryBean in XML format
 void toXML(java.io.PrintWriter pw)
          Returns the XML that represents this Crontab EntryBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrontabEntryBean

public CrontabEntryBean()
Default constructor

Method Detail

setId

public void setId(int id)
Id setter

Parameters:
id - this integer identifies the CrontabEntryBean

setClassName

public void setClassName(java.lang.String className)
ClassName Setter

Parameters:
className - This is the name of the class to execute

setMethodName

public void setMethodName(java.lang.String methodName)
MethodName setter

Parameters:
methodName - the name of the method to execute

setExtraInfo

public void setExtraInfo(java.lang.String[] extraInfo)
Extra info setter

Parameters:
extraInfo - this array represents the parameters passed to the task

setHours

public void setHours(java.lang.String hours)
Hours setter

Parameters:
hours - The hours to execute the Class, the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]

setMinutes

public void setMinutes(java.lang.String minutes)
Minutes setter

Parameters:
minutes - The minutes to execute the Class, the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]

setSeconds

public void setSeconds(java.lang.String seconds)
Seconds setter

Parameters:
seconds - The seconds to execute the Class, the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]

setMonths

public void setMonths(java.lang.String months)
Months setter

Parameters:
months - The Monts to execute the Class, the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]

setDaysOfWeek

public void setDaysOfWeek(java.lang.String daysOfWeek)
Days of Week

Parameters:
daysOfWeek - The days of the week

setDaysOfMonth

public void setDaysOfMonth(java.lang.String daysOfMonth)
Days of Month setter

Parameters:
daysOfMonth - The days of the month

setYears

public void setYears(java.lang.String years)
Years Setter

Parameters:
years - to be executed this task

setBHours

public void setBHours(boolean[] bHours)
Hours setter


setBMinutes

public void setBMinutes(boolean[] bMinutes)
Minutes setter


setBMonths

public void setBMonths(boolean[] bMonths)
Months setter


setBDaysOfWeek

public void setBDaysOfWeek(boolean[] bDaysOfWeek)
Days of Week


setBDaysOfMonth

public void setBDaysOfMonth(boolean[] bDaysOfMonth)
Days of Month setter


setBSeconds

public void setBSeconds(boolean[] bSeconds)
Seconds setter

Parameters:
bSeconds - Of ecah minute

setBYears

public void setBYears(boolean[] bYears)
Years setter

Parameters:
bYears - Of ecah century

setBExtraInfo

public void setBExtraInfo(boolean bextraInfo)
bextraInfo setter


setDescription

public void setDescription(java.lang.String description)
Description setter

Parameters:
description - The desciption

getId

public int getId()
Id getter

Returns:
the Id of this CrontabBean

getClassName

public java.lang.String getClassName()
Class Name getter

Returns:
the Class's Name of this CrontabBean

getMethodName

public java.lang.String getMethodName()
Method Name getter

Returns:
the Method's Name of this CrontabBean

getExtraInfo

public java.lang.String[] getExtraInfo()
Extra Info getter

Returns:
the extraInfo of this CrontabBean

getHours

public java.lang.String getHours()
Hours getter

Returns:
the hours of this CrontabBean

getMinutes

public java.lang.String getMinutes()
Minutes getter

Returns:
the minutes of this CrontabBean

getSeconds

public java.lang.String getSeconds()
Minutes getter

Returns:
the minutes of this CrontabBean

getMonths

public java.lang.String getMonths()
Months getter

Returns:
the months of this CrontabBean

getBHours

public boolean[] getBHours()
Hours booleans getter

Returns:
boolean[] The hours to execute the Class,

getBMinutes

public boolean[] getBMinutes()
Minutes getter

Returns:
boolean[] The minutes to execute the Class,

getBMonths

public boolean[] getBMonths()
Months Boolean getter

Returns:
months The Months to execute the Class,

getBDaysOfWeek

public boolean[] getBDaysOfWeek()
Getter Days of Week

Returns:
daysOfWeek The days of the week

getBDaysOfMonth

public boolean[] getBDaysOfMonth()
Days of Month getter

Returns:
daysOfMonth The days of the month

getBSeconds

public boolean[] getBSeconds()
Days of Month setter

Returns:
daysOfMonth The days of the month

setBYears

public boolean[] setBYears()
bYears getter

Returns:
bYears Of ecah century

getBExtraInfo

public boolean getBExtraInfo()
Returns true if theres extra info false otherwise.

Returns:
extraInfo

getDaysOfWeek

public java.lang.String getDaysOfWeek()
Days of week getter

Returns:
the Days of week of this CrontabBean

getDaysOfMonth

public java.lang.String getDaysOfMonth()
Days of Month getter

Returns:
the Id of this CrontabBean

getDescription

public java.lang.String getDescription()
Description getter

Returns:
the Description of this CrontabBean

toString

public java.lang.String toString()
Represents the CrotnabEntryBean in ASCII format

Overrides:
toString in class java.lang.Object
Returns:
the returning string

toXML

public java.lang.String toXML()
Represents the CrotnabEntryBean in XML format

Returns:
the returning XML

toXML

public void toXML(java.io.PrintWriter pw)
Returns the XML that represents this Crontab EntryBean

Parameters:
pw - The printWritter to write the XML

equals

public boolean equals(java.util.Calendar cal)
Returns true if the time table entry matchs with the calendar given

Parameters:
cal - Calendar to compare with the time table entry
Returns:
true if the time table entry matchs with the calendar given

equals

public boolean equals(CrontabEntryBean ceb)
Returns true if the CrontabEntryBean equals the given

Parameters:
ceb - CrontabEntryBean to compare with the CrontabEntryBean
Returns:
true if the CrontabEntryBean entry equals the CrontabEntryBean given