|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.iquery.metadata.expr.relational.RelativeDateValueExpression
public class RelativeDateValueExpression
Models relative date-oriented values used within filter
sub-expressions.
This class is used to generate an expression for a relative date. This date may
be represented in SAS as today() to represent today, or an
interval time such as intnx("week",today(),-1,"sameday") to
represent the same day last week.
This time is creating by setting the following variables:
TimeShiftAlignmentTimeShiftDirectionintegerTimeShiftUnitExpression
| Field Summary | |
|---|---|
static FunctionCall |
TODAY
Today represents the current day. |
static RelativeDateValueExpression |
TOMORROW
Tomorrow represents (TODAY + 1) |
static RelativeDateValueExpression |
YESTERDAY
Yesterday represents (TODAY - 1) |
| Fields inherited from class com.sas.iquery.metadata.expr.relational.AbstractRelativeTimeValueExpression |
|---|
EVENT_ALIGNMENT_CHANGED, EVENT_MULTIPLIER_CHANGED, EVENT_SHIFT_DIRECTION_CHANGED, EVENT_SHIFT_FROM_CHANGED, EVENT_UNIT_CHANGED |
| 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 |
| Constructor Summary | |
|---|---|
RelativeDateValueExpression()
Constructor for RelativeDateValueExpression |
|
RelativeDateValueExpression(ExpressionInterface shiftFrom,
TimeShiftUnit unitValue,
TimeShiftDirection directionValue,
int multiplierValue,
TimeShiftAlignment alignmentValue)
Create a RelativeDateValueExpression setting all values using input. |
|
| Method Summary | |
|---|---|
int |
getExpressionType()
Return the integer form of the expression type. |
void |
setShiftingFrom(ExpressionInterface exp)
Set the date/time to shift from. |
| Methods inherited from class com.sas.iquery.metadata.expr.relational.AbstractRelativeTimeValueExpression |
|---|
getAlignment, getRelativeSASDateExpression, getShiftDirection, getShiftingFrom, getShiftMultiplier, getShiftUnit, isConstant, setAlignment, setShiftDirection, setShiftMultiplier, setShiftUnit |
| 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 FunctionCall TODAY
public static final RelativeDateValueExpression YESTERDAY
public static final RelativeDateValueExpression TOMORROW
| Constructor Detail |
|---|
public RelativeDateValueExpression()
public RelativeDateValueExpression(ExpressionInterface shiftFrom,
TimeShiftUnit unitValue,
TimeShiftDirection directionValue,
int multiplierValue,
TimeShiftAlignment alignmentValue)
shiftFrom - Must be an expression of type ExpressionTypes.EXP_TYPE_DATEunitValue - directionValue - multiplierValue - alignmentValue - | Method Detail |
|---|
public void setShiftingFrom(ExpressionInterface exp)
throws java.lang.IllegalArgumentException,
MetadataException
AbstractRelativeTimeValueExpressionisConstant() method.
setShiftingFrom in class AbstractRelativeTimeValueExpressionexp - ExpressionInterface
java.lang.IllegalArgumentException
MetadataExceptionAbstractRelativeTimeValueExpression.setShiftingFrom(com.sas.iquery.metadata.expr.ExpressionInterface)public int getExpressionType()
ExpressionInterface
getExpressionType in interface ExpressionInterfacegetExpressionType in class AbstractRelativeTimeValueExpressionAbstractRelativeTimeValueExpression.getExpressionType()
|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||