|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.date.DateExpression
public class DateExpression
The DateExpression can be used to construct a static date object. The Calendar object used as base is initialized to the current date. Fields that are not set, are ignored.
To construct dates from values read from the data-row, use theVariableDateExpression
instead.
Constructor Summary | |
---|---|
DateExpression()
Default Constructor. |
Method Summary | |
---|---|
Integer |
getDay()
Returns the day property. |
Integer |
getDayOfMonth()
Returns the day of the month property. |
Integer |
getDayOfWeek()
Returns the day of the week property. |
Integer |
getDayOfWeekInMonth()
Returns the day of the week in the month property. |
Integer |
getDayOfYear()
Returns the day of the year property. |
Long |
getEpochTime()
Returns the time in seconds since 01-Jan-1970. |
Integer |
getHour()
Returns the hour of the day property. |
Integer |
getMilliSecond()
Returns the milli-second property. |
Integer |
getMinute()
Returns the minute property. |
Integer |
getMonth()
Returns the month property. |
Integer |
getSecond()
Returns the second property. |
Long |
getTime()
Returns the time in milli-seconds since 01-Jan-1970. |
TimeZone |
getTimeZone()
Returns the current time-zone. |
Object |
getValue()
Return the current expression value. |
Integer |
getWeekOfMonth()
|
Integer |
getWeekOfYear()
Returns the week of the year property. |
Integer |
getYear()
Returns the year property. |
void |
setDay(Integer day)
Defines the day property. |
void |
setDayOfMonth(Integer dayOfMonth)
Defines the day of the month property. |
void |
setDayOfWeek(Integer dayOfWeek)
Defines the day of the week property. |
void |
setDayOfWeekInMonth(Integer dayOfWeekInMonth)
Defines the day of the week in the month property. |
void |
setDayOfYear(Integer dayOfYear)
Defines the day of the year property. |
void |
setEpochTime(Long epochTime)
Defines the time in seconds since 01-Jan-1970. |
void |
setHour(Integer hour)
Defines the hour property. |
void |
setMilliSecond(Integer milliSecond)
Defines the year property. |
void |
setMinute(Integer minute)
Defines the minute property. |
void |
setMonth(Integer month)
Defines the month property. |
void |
setSecond(Integer second)
Defines the second property. |
void |
setTime(Long time)
Defines the time in milli-seconds since 01-Jan-1970. |
void |
setTimeZone(TimeZone timeZone)
Defines the timezone. |
void |
setWeekOfMonth(Integer weekOfMonth)
|
void |
setWeekOfYear(Integer weekOfYear)
Defines the week of the year property. |
void |
setYear(Integer year)
Defines the year property. |
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 |
---|
public DateExpression()
Method Detail |
---|
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
timeZone
- the time-zone.public Integer getMonth()
public void setMonth(Integer month)
month
- the month property.public Integer getDay()
public void setDay(Integer day)
day
- the day of the month property.public Integer getYear()
public void setYear(Integer year)
year
- the year property.public Integer getHour()
public void setHour(Integer hour)
hour
- the hour property.public Integer getMinute()
public void setMinute(Integer minute)
minute
- the minute property.public Integer getSecond()
public void setSecond(Integer second)
second
- the second property.public Integer getMilliSecond()
public void setMilliSecond(Integer milliSecond)
milliSecond
- the milli-seconds property.public Long getTime()
public void setTime(Long time)
time
- the time in milli-seconds since 01-Jan-1970.public Long getEpochTime()
public void setEpochTime(Long epochTime)
epochTime
- the time in seconds since 01-Jan-1970.public Integer getDayOfWeek()
public void setDayOfWeek(Integer dayOfWeek)
dayOfWeek
- the day-of-the-week property.public Integer getDayOfYear()
public void setDayOfYear(Integer dayOfYear)
dayOfYear
- the day-of-the-year property.public Integer getDayOfMonth()
public void setDayOfMonth(Integer dayOfMonth)
dayOfMonth
- the day-of-the-month property.public Integer getDayOfWeekInMonth()
public void setDayOfWeekInMonth(Integer dayOfWeekInMonth)
dayOfWeekInMonth
- the day of the week in the month property.public Integer getWeekOfYear()
public void setWeekOfYear(Integer weekOfYear)
weekOfYear
- the week of the year property.public Integer getWeekOfMonth()
public void setWeekOfMonth(Integer weekOfMonth)
public Object getValue()
The value depends (obviously) on the expression implementation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |