|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.iquery.metadata.impl.IQModelImplUtilities
|
+--com.sas.iquery.metadata.business.impl.AbstractBase
|
+--com.sas.iquery.metadata.business.impl.AbstractModelItem
|
+--com.sas.iquery.metadata.impl.AbstractExpression
|
+--com.sas.iquery.metadata.expr.relational.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 String |
EVENT_ALIGNMENT_CHANGED
Designates a change in the modifier object. |
static String |
EVENT_MULTIPLIER_CHANGED
Designates a change in the modifier object. |
static String |
EVENT_SHIFT_DIRECTION_CHANGED
Designates a change in the shift direction object. |
static String |
EVENT_SHIFT_FROM_CHANGED
Designates a change in the modifier object. |
static 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 |
| Constructor Summary |
| 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 class com.sas.iquery.metadata.business.impl.AbstractBase |
accumulateDirectlyReferencedModelsInDownwardDefinition, getDirectlyReferencedBaseObjectsInDownwardDefinition, hasCycleInDownwardDefinition |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.beans.PropertyChangeListener |
propertyChange |
| Methods inherited from interface com.sas.iquery.metadata.PropertyChangeListenee |
addListener, getListeners, removeListener |
| Methods inherited from interface com.sas.iquery.metadata.business.UsabilityInterface |
getReasonsUnusable, isUsableInQuery |
| Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer |
getResources |
| Field Detail |
public static final String EVENT_UNIT_CHANGED
public static final String EVENT_MULTIPLIER_CHANGED
public static final String EVENT_ALIGNMENT_CHANGED
public static final String EVENT_SHIFT_DIRECTION_CHANGED
public static final String EVENT_SHIFT_FROM_CHANGED
| Constructor Detail |
| Method Detail |
public static AbstractRelativeTimeValueExpression getRelativeSASDateExpression()
today()public abstract int getExpressionType()
ExpressionInterfaceExpressionInterface.getExpressionType()public TimeShiftAlignment getAlignment()
public void setAlignment(TimeShiftAlignment alignment)
throws MetadataException,
IllegalArgumentException
alignment - The shiftAlignment to set.MetadataException - IllegalArgumentException - if null or invalid arguement passed in.public TimeShiftUnit getShiftUnit()
public void setShiftUnit(TimeShiftUnit unit)
throws MetadataException,
IllegalArgumentException
unit - TimeShiftUnit set units to shift by.MetadataException - IllegalArgumentException - if null or invalid arguement passed in.public int getShiftMultiplier()
public void setShiftMultiplier(int multiplier)
throws MetadataException
multiplier - MetadataException - IllegalArgumentException - if this is a static instance such as
CURRENT,NEXT,PREVIOUSpublic ExpressionInterface getShiftingFrom()
getShiftingFrom()
public void setShiftingFrom(ExpressionInterface exp)
throws IllegalArgumentException,
MetadataException
isConstant() method.exp - ExpressionInterface of time to shift from.IllegalArgumentException - MetadataException - setShiftingFrom(com.sas.iquery.metadata.expr.ExpressionInterface)public TimeShiftDirection getShiftDirection()
public void setShiftDirection(TimeShiftDirection direction)
throws MetadataException,
IllegalArgumentException
direction - to move in time.MetadataException - IllegalArgumentException - if null or invalid arguement passed in.public boolean isConstant()
|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||