com.sas.iquery.metadata.expr.relational
Class TimeShiftUnit

com.sas.iquery.metadata.expr.relational.TimeShiftUnit

@Immutable
public final class TimeShiftUnit

Models the specific amounts to shift by when using relative time expressions.

Since:
9.1.3sp4

Field Summary
static TimeShiftUnit DAY
          This represents a "day" of time to shift by.
static TimeShiftUnit HOUR
          This represents a "hour" of time to shift by.
static TimeShiftUnit MINUTE
          This represents a "minute" of time to shift by.
static TimeShiftUnit MONTH
          This represents a "month" of time to shift by.
static TimeShiftUnit QUARTER
          This represents a "quarter" of time to shift by.
static TimeShiftUnit SECOND
          This represents a "second" of time to shift by.
static TimeShiftUnit WEEK
          This represents a "week" of time to shift by.
static TimeShiftUnit WEEKDAY
          This represents a "weekday" of time to shift by.
static TimeShiftUnit YEAR
          This represents a "year" of time to shift by.
 
Method Summary
protected  java.lang.String getTypeValue()
          This returns the type string such as "day" for this interval type.
static java.util.List<TimeShiftUnit> getValues()
          Get the list of supported TimeShiftUnit types.
 

Field Detail

SECOND

public static final TimeShiftUnit SECOND
This represents a "second" of time to shift by.


MINUTE

public static final TimeShiftUnit MINUTE
This represents a "minute" of time to shift by.


HOUR

public static final TimeShiftUnit HOUR
This represents a "hour" of time to shift by.


DAY

public static final TimeShiftUnit DAY
This represents a "day" of time to shift by.


WEEK

public static final TimeShiftUnit WEEK
This represents a "week" of time to shift by.


WEEKDAY

public static final TimeShiftUnit WEEKDAY
This represents a "weekday" of time to shift by.


MONTH

public static final TimeShiftUnit MONTH
This represents a "month" of time to shift by.


QUARTER

public static final TimeShiftUnit QUARTER
This represents a "quarter" of time to shift by.


YEAR

public static final TimeShiftUnit YEAR
This represents a "year" of time to shift by.

Method Detail

getValues

@Nonnull
public static java.util.List<TimeShiftUnit> getValues()
Get the list of supported TimeShiftUnit types.

Returns:
an unmodifiable list of the internal types

getTypeValue

@Nonnull
protected java.lang.String getTypeValue()
This returns the type string such as "day" for this interval type.

Returns:
the string representation of the interval.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.