|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.metadata.expr.relational.AbstractRelativeTimeValueExpression
public abstract class AbstractRelativeTimeValueExpression
Base class used to model relative time-oriented value used within filter
sub-expressions. This object controls the shifting of time from one point in
time to another. This shifting is done through the use of a shifting shiftDirection,
shifting shiftMultiplier, shifting shiftUnit, and shifting alignment. The date the shift
starts from is the shiftingFrom
value.
RelativeDateValueExpression
Field Summary | |
---|---|
static java.lang.String |
EVENT_ALIGNMENT_CHANGED
Designates a change in the modifier object. |
static java.lang.String |
EVENT_MULTIPLIER_CHANGED
Designates a change in the modifier object. |
static java.lang.String |
EVENT_SHIFT_DIRECTION_CHANGED
Designates a change in the shift direction object. |
static java.lang.String |
EVENT_SHIFT_FROM_CHANGED
Designates a change in the modifier object. |
static java.lang.String |
EVENT_UNIT_CHANGED
Designates a change in the shiftUnit object. |
Fields inherited from interface com.sas.iquery.metadata.business.ModelItem |
---|
EVENT_OBJECT_PROPERTY_CHANGED |
Fields inherited from interface com.sas.iquery.metadata.business.Base |
---|
EVENT_OBJECT_DEFINITION_CHANGED |
Method Summary | |
---|---|
TimeShiftAlignment |
getAlignment()
Starting alignment is used to align the outputing time to the begining, end, middle, or sameday of the output shiftUnit. |
abstract int |
getExpressionType()
Return the integer form of the expression type. |
static AbstractRelativeTimeValueExpression |
getRelativeSASDateExpression()
This is used to create an instance of a AbstractRelativeTimeValueExpression to be used as a standard definiton for when the value is adjusted from today() |
TimeShiftDirection |
getShiftDirection()
Get the shiftDirection of shift for this date object. |
ExpressionInterface |
getShiftingFrom()
Get the starting point for this shift. |
int |
getShiftMultiplier()
Return the shiftMultiplier for this output. |
TimeShiftUnit |
getShiftUnit()
Method getUnit |
boolean |
isConstant()
Check to see if this expression is a constant value. |
void |
setAlignment(TimeShiftAlignment alignment)
Starting alignment is used to align the outputing time to the begining, end, middle, or sameday of the output shiftUnit. |
void |
setShiftDirection(TimeShiftDirection direction)
Set the shiftDirection of shift for this date object. |
void |
setShiftingFrom(ExpressionInterface exp)
Set the date/time to shift from. |
void |
setShiftMultiplier(int multiplier)
Set the shiftMultiplier used for output. |
void |
setShiftUnit(TimeShiftUnit unit)
Method setUnit |
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer |
---|
getResources |
Methods inherited from interface com.sas.iquery.metadata.PropertyChangeListenee |
---|
addListener, getListeners, removeListener |
Methods inherited from interface com.sas.iquery.metadata.business.UsabilityInterface |
---|
getReasonsUnusable, isUsableInQuery |
Field Detail |
---|
public static final java.lang.String EVENT_UNIT_CHANGED
public static final java.lang.String EVENT_MULTIPLIER_CHANGED
public static final java.lang.String EVENT_ALIGNMENT_CHANGED
public static final java.lang.String EVENT_SHIFT_DIRECTION_CHANGED
public static final java.lang.String EVENT_SHIFT_FROM_CHANGED
Method Detail |
---|
public static AbstractRelativeTimeValueExpression getRelativeSASDateExpression()
today()
public abstract int getExpressionType()
ExpressionInterface
ExpressionInterface.getExpressionType()
public TimeShiftAlignment getAlignment()
public void setAlignment(TimeShiftAlignment alignment) throws MetadataException, java.lang.IllegalArgumentException
alignment
- The shiftAlignment to set.
MetadataException
java.lang.IllegalArgumentException
- if null or invalid arguement passed in.public TimeShiftUnit getShiftUnit()
public void setShiftUnit(TimeShiftUnit unit) throws MetadataException, java.lang.IllegalArgumentException
unit
- TimeShiftUnit set units to shift by.
MetadataException
java.lang.IllegalArgumentException
- if null or invalid arguement passed in.public int getShiftMultiplier()
public void setShiftMultiplier(int multiplier) throws MetadataException
multiplier
-
MetadataException
java.lang.IllegalArgumentException
- if this is a static instance such as
CURRENT,NEXT,PREVIOUSpublic ExpressionInterface getShiftingFrom()
getShiftingFrom()
public void setShiftingFrom(ExpressionInterface exp) throws java.lang.IllegalArgumentException, MetadataException
isConstant()
method.
exp
- ExpressionInterface of time to shift from.
java.lang.IllegalArgumentException
MetadataException
setShiftingFrom(com.sas.iquery.metadata.expr.ExpressionInterface)
public TimeShiftDirection getShiftDirection()
public void setShiftDirection(TimeShiftDirection direction) throws MetadataException, java.lang.IllegalArgumentException
direction
- to move in time.
MetadataException
java.lang.IllegalArgumentException
- if null or invalid arguement passed in.public boolean isConstant()
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |