com.crystaldecisions.sdk.occa.report.data
Class DateCondition

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.data.DateCondition

public final class DateCondition
extends java.lang.Object

This object defines how data is grouped if the group is sorted by a date field.


Field Summary
static int _amPm
          Specifies that data is grouped into AM and PM.
static int _annually
          Specifies that data is grouped by the year.
static int _biweekly
          Specifies that data is grouped by the fortnight.
static int _daily
          Specifies that data is grouped by the day.
static int _hour
          Specifies that data is grouped by the hour.
static int _minute
          Specifies that data is grouped by the minute.
static int _monthly
          Specifies that data is grouped by the month.
static int _quarterly
          Specifies that data is grouped by the year's quarter.
static int _second
          Specifies that data is grouped by the second.
static int _semiannually
          Specifies that data is grouped semi-annually.
static int _semimonthly
          Specifies that data is grouped semi-monthly.
static int _weekly
          Specifies that data is grouped by the week.
static DateCondition amPm
          Specifies that data is grouped into AM and PM.
static DateCondition annually
          Specifies that data is grouped by the year.
static DateCondition biweekly
          Specifies that data is grouped by the fortnight.
static DateCondition daily
          Specifies that data is grouped by the day.
static DateCondition hour
          Specifies that data is grouped by the hour.
static DateCondition minute
          Specifies that data is grouped by the minute.
static DateCondition monthly
          Specifies that data is grouped by the month.
static DateCondition quarterly
          Specifies that data is grouped by the year's quarter.
static DateCondition second
          Specifies that data is grouped by the second.
static DateCondition semiannually
          Specifies that data is grouped semi-annually.
static DateCondition semimonthly
          Specifies that data is grouped semi-monthly.
static DateCondition weekly
          Specifies that data is grouped by the week.
 
Method Summary
static DateCondition from_int(int i)
          Converts a date condition from an int to a value.
static DateCondition from_string(java.lang.String sVal)
          Converts the date condition to a String.
 java.lang.String toString()
          Converts a date condition from a String to a value.
 int value()
          Returns the value for the date condition.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_daily

public static final int _daily

Specifies that data is grouped by the day.

See Also:
Constant Field Values

_weekly

public static final int _weekly

Specifies that data is grouped by the week.

See Also:
Constant Field Values

_biweekly

public static final int _biweekly

Specifies that data is grouped by the fortnight.

See Also:
Constant Field Values

_semimonthly

public static final int _semimonthly

Specifies that data is grouped semi-monthly.

See Also:
Constant Field Values

_monthly

public static final int _monthly

Specifies that data is grouped by the month.

See Also:
Constant Field Values

_quarterly

public static final int _quarterly

Specifies that data is grouped by the year's quarter.

See Also:
Constant Field Values

_semiannually

public static final int _semiannually

Specifies that data is grouped semi-annually.

See Also:
Constant Field Values

_annually

public static final int _annually

Specifies that data is grouped by the year.

See Also:
Constant Field Values

_second

public static final int _second

Specifies that data is grouped by the second.

See Also:
Constant Field Values

_minute

public static final int _minute

Specifies that data is grouped by the minute.

See Also:
Constant Field Values

_hour

public static final int _hour

Specifies that data is grouped by the hour.

See Also:
Constant Field Values

_amPm

public static final int _amPm

Specifies that data is grouped into AM and PM.

See Also:
Constant Field Values

daily

public static final DateCondition daily

Specifies that data is grouped by the day.


weekly

public static final DateCondition weekly

Specifies that data is grouped by the week.


biweekly

public static final DateCondition biweekly

Specifies that data is grouped by the fortnight.


semimonthly

public static final DateCondition semimonthly

Specifies that data is grouped semi-monthly.


monthly

public static final DateCondition monthly

Specifies that data is grouped by the month.


quarterly

public static final DateCondition quarterly

Specifies that data is grouped by the year's quarter.


semiannually

public static final DateCondition semiannually

Specifies that data is grouped semi-annually.


annually

public static final DateCondition annually

Specifies that data is grouped by the year.


second

public static final DateCondition second

Specifies that data is grouped by the second.


minute

public static final DateCondition minute

Specifies that data is grouped by the minute.


hour

public static final DateCondition hour

Specifies that data is grouped by the hour.


amPm

public static final DateCondition amPm

Specifies that data is grouped into AM and PM.

Method Detail

from_int

public static final DateCondition from_int(int i)

Converts a date condition from an int to a value.

Parameters:
i - The int value that you want to convert from.
Returns:
The DateCondition object corresponding to the specified value.

from_string

public static final DateCondition from_string(java.lang.String sVal)

Converts the date condition to a String.

Parameters:
sVal - The type of the desired DateCondition object.
Returns:
The date condition as a String.

toString

public java.lang.String toString()

Converts a date condition from a String to a value.

Overrides:
toString in class java.lang.Object
Returns:
The String value of this DateCondition object.

value

public int value()

Returns the value for the date condition.

Returns:
The value of the date condition as an int.