org.pentaho.reporting.engine.classic.core.function.date
Class VariableDateExpression

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.function.AbstractExpression
      extended by org.pentaho.reporting.engine.classic.core.function.date.DateExpression
          extended by org.pentaho.reporting.engine.classic.core.function.date.VariableDateExpression
All Implemented Interfaces:
Serializable, Cloneable, Expression

public class VariableDateExpression
extends DateExpression

Constructs a new date by specifying the fields for the calendar either as static parameters or as parameters read from a field.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
VariableDateExpression()
          Default Constructor.
 
Method Summary
 String getDayOfMonthField()
          Returns the name of the field that contains the day of the month.
 String getDayOfWeekField()
          Returns the name of the field that contains the day-of-the-week.
 String getDayOfWeekInMonthField()
          Returns the name of the field that contains the day of the week in the current month.
 String getDayOfYearField()
          Returns the name of the field that contains the day of the year.
 String getEpochTimeField()
          Returns the name of the field that contains the epoch time, that is the time in seconds since 01-Jan-1970.
 String getHourField()
          Returns the name of the field that contains the hour of the day (using the 24-hour system).
 String getMilliSecondField()
          Returns the name of the field that contains the milliseconds.
 String getMinuteField()
          Returns the name of the field that contains the minute.
 String getMonthField()
          Returns the name of the field that contains the month.
 String getSecondField()
          Returns the name of the field that contains the second.
 String getTimeField()
          Returns the name of the field that contains the time in milli-seconds since 01-Jan-1970.
 String getTimeZoneField()
          Returns the name of the field that contains the time-zone.
 String getWeekOfMonthField()
          Defines the name of the field that contains the week of the month.
 String getWeekOfYearField()
          Defines the name of the field that contains the week-of-the-year.
 String getYearField()
          Returns the name of the field that contains the year.
 void setDayOfMonthField(String dayOfMonthField)
          Defines the name of the field that contains the day of the month.
 void setDayOfWeekField(String dayOfWeekField)
          Defines the name of the field that contains the day of the week.
 void setDayOfWeekInMonthField(String dayOfWeekInMonthField)
          Defines the name of the field that contains the day of the week in the current month.
 void setDayOfYearField(String dayOfYearField)
          Defines the name of the field that contains the day of the year.
 void setEpochTimeField(String epochTimeField)
          Defines the name of the field that contains the epoch time, that is the time in seconds since 01-Jan-1970.
 void setHourField(String hourField)
          Defines the name of the field that contains the hour of the day.
 void setMilliSecondField(String milliSecondField)
          Defines the name of the field that contains the milliseconds.
 void setMinuteField(String minuteField)
          Defines the name of the field that contains the minute.
 void setMonthField(String monthField)
          Defines the name of the field that contains the month.
 void setSecondField(String secondField)
          Defines the name of the field that contains the second.
 void setTimeField(String timeField)
          Defines the name of the field that contains the time in milli-seconds since 01-Jan-1970.
 void setTimeZoneField(String timeZoneField)
          Defines the name of the field that contains the time-zone.
 void setWeekOfMonthField(String weekOfMonthField)
          Returns the name of the field that contains the week of the month.
 void setWeekOfYearField(String weekOfYearField)
          Defines the name of the field that contains the week of the year.
 void setYearField(String yearField)
          Defines the name of the field that contains the year.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.date.DateExpression
getDay, getDayOfMonth, getDayOfWeek, getDayOfWeekInMonth, getDayOfYear, getEpochTime, getHour, getMilliSecond, getMinute, getMonth, getSecond, getTime, getTimeZone, getValue, getWeekOfMonth, getWeekOfYear, getYear, setDay, setDayOfMonth, setDayOfWeek, setDayOfWeekInMonth, setDayOfYear, setEpochTime, setHour, setMilliSecond, setMinute, setMonth, setSecond, setTime, setTimeZone, setWeekOfMonth, setWeekOfYear, setYear
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableDateExpression

public VariableDateExpression()
Default Constructor.

Method Detail

getEpochTimeField

public String getEpochTimeField()
Returns the name of the field that contains the epoch time, that is the time in seconds since 01-Jan-1970.

Returns:
a fieldname.

setEpochTimeField

public void setEpochTimeField(String epochTimeField)
Defines the name of the field that contains the epoch time, that is the time in seconds since 01-Jan-1970.

Parameters:
epochTimeField - a fieldname.

getMonthField

public String getMonthField()
Returns the name of the field that contains the month.

Returns:
a fieldname.

setMonthField

public void setMonthField(String monthField)
Defines the name of the field that contains the month.

Parameters:
monthField - a fieldname.

getYearField

public String getYearField()
Returns the name of the field that contains the year.

Returns:
a fieldname.

setYearField

public void setYearField(String yearField)
Defines the name of the field that contains the year.

Parameters:
yearField - a fieldname.

getHourField

public String getHourField()
Returns the name of the field that contains the hour of the day (using the 24-hour system).

Returns:
a fieldname.

setHourField

public void setHourField(String hourField)
Defines the name of the field that contains the hour of the day.

Parameters:
hourField - a fieldname.

getMinuteField

public String getMinuteField()
Returns the name of the field that contains the minute.

Returns:
a fieldname.

setMinuteField

public void setMinuteField(String minuteField)
Defines the name of the field that contains the minute.

Parameters:
minuteField - a fieldname.

getSecondField

public String getSecondField()
Returns the name of the field that contains the second.

Returns:
a fieldname.

setSecondField

public void setSecondField(String secondField)
Defines the name of the field that contains the second.

Parameters:
secondField - a fieldname.

getMilliSecondField

public String getMilliSecondField()
Returns the name of the field that contains the milliseconds.

Returns:
a fieldname.

setMilliSecondField

public void setMilliSecondField(String milliSecondField)
Defines the name of the field that contains the milliseconds.

Parameters:
milliSecondField - a fieldname.

getTimeField

public String getTimeField()
Returns the name of the field that contains the time in milli-seconds since 01-Jan-1970.

Returns:
a fieldname.

setTimeField

public void setTimeField(String timeField)
Defines the name of the field that contains the time in milli-seconds since 01-Jan-1970.

Parameters:
timeField - a fieldname.

getDayOfWeekField

public String getDayOfWeekField()
Returns the name of the field that contains the day-of-the-week.

Returns:
a fieldname.

setDayOfWeekField

public void setDayOfWeekField(String dayOfWeekField)
Defines the name of the field that contains the day of the week.

Parameters:
dayOfWeekField - a fieldname.

getDayOfYearField

public String getDayOfYearField()
Returns the name of the field that contains the day of the year.

Returns:
a fieldname.

setDayOfYearField

public void setDayOfYearField(String dayOfYearField)
Defines the name of the field that contains the day of the year.

Parameters:
dayOfYearField - a fieldname.

getDayOfMonthField

public String getDayOfMonthField()
Returns the name of the field that contains the day of the month.

Returns:
a fieldname.

setDayOfMonthField

public void setDayOfMonthField(String dayOfMonthField)
Defines the name of the field that contains the day of the month.

Parameters:
dayOfMonthField - a fieldname.

getDayOfWeekInMonthField

public String getDayOfWeekInMonthField()
Returns the name of the field that contains the day of the week in the current month.

Returns:
a fieldname.

setDayOfWeekInMonthField

public void setDayOfWeekInMonthField(String dayOfWeekInMonthField)
Defines the name of the field that contains the day of the week in the current month.

Parameters:
dayOfWeekInMonthField - a fieldname.

getTimeZoneField

public String getTimeZoneField()
Returns the name of the field that contains the time-zone.

Returns:
a fieldname.

setTimeZoneField

public void setTimeZoneField(String timeZoneField)
Defines the name of the field that contains the time-zone.

Parameters:
timeZoneField - a fieldname.

getWeekOfYearField

public String getWeekOfYearField()
Defines the name of the field that contains the week-of-the-year.

Returns:
a fieldname.

setWeekOfYearField

public void setWeekOfYearField(String weekOfYearField)
Defines the name of the field that contains the week of the year.

Parameters:
weekOfYearField - a fieldname.

getWeekOfMonthField

public String getWeekOfMonthField()
Defines the name of the field that contains the week of the month.

Returns:
a fieldname.

setWeekOfMonthField

public void setWeekOfMonthField(String weekOfMonthField)
Returns the name of the field that contains the week of the month.

Parameters:
weekOfMonthField - a fieldname.