|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.BaseFilterObjectFactory
public class BaseFilterObjectFactory
The BaseFilterObjectFactory is the base implementation of the FilterObjectFactoryInterface. This class provides the primary interface between native objects and the filter specific objects the filter model works with. All methods included in this class are in some way involved with converting objects back and forth between the filter model and a native model. This base implementation deals mainly with BIQ models but also includes support for a handful of physical level objects.
Field Summary | |
---|---|
protected FilterBaseModelData |
_baseModel
|
protected com.sas.iquery.metadata.business.BusinessModel |
_businessModel
The BusinessModel object this factory instance relies on. |
protected com.sas.iquery.dataservices.IQDataServices |
_dataService
An IQDataServices instance used when getting lists of values for DataItems. |
protected com.sas.iquery.metadata.expr.ResourceScope |
_scope
The scope to use when referring to resources in the IQ model. |
FilterConditionInterface |
CODE_BLOCK
|
static int |
DEFAULT_GOVERNING_LIMIT
The default limit on the number of distinct values returned when getting a list of values to use in a filter for any given DataItem. |
static com.sas.iquery.metadata.expr.ResourceScope |
DEFAULT_SCOPE
|
protected int |
environment
|
FilterConditionInterface |
IS_AFTER
|
FilterConditionInterface |
IS_AFTER_OR_EQUAL
|
FilterConditionInterface |
IS_BEFORE
|
FilterConditionInterface |
IS_BEFORE_OR_EQUAL
|
FilterConditionInterface |
IS_BETWEEN
The "is in between" filter condition. |
FilterConditionInterface |
IS_EQUALS
The "is equal to" filter condition. |
FilterConditionInterface |
IS_GREATER_THAN
The "is greater than" filter condition. |
FilterConditionInterface |
IS_GREATER_THAN_OR_EQUAL
The "is greater than or equal to" filter condition. |
FilterConditionInterface |
IS_IN_LIST
The "is in list" filter condition. |
FilterConditionInterface |
IS_LESS_THAN
The "is less than" filter condition. |
FilterConditionInterface |
IS_LESS_THAN_OR_EQUAL
The "is less than or equal to" filter condition. |
FilterConditionInterface |
IS_NOT_BETWEEN
The "is not in between" filter condition. |
FilterConditionInterface |
IS_NOT_EQUALS
The "is not equal to" filter condition. |
FilterConditionInterface |
IS_NOT_IN_LIST
The "is not in list" filter condition. |
FilterConditionInterface |
IS_NOT_NULL
The "is not null" filter condition. |
FilterConditionInterface |
IS_NULL
The "is null" filter condition. |
static java.lang.String |
RB_KEY
Resource key for factory specific properties. |
static java.lang.String |
RB_KEY2
Resource key for condition properties. |
Constructor Summary | |
---|---|
BaseFilterObjectFactory(FilterBaseModelData baseModel,
com.sas.iquery.metadata.expr.ResourceScope scope)
Constructs a new factory from the given BusinessModel and using the specified resource scope. |
Method Summary | |
---|---|
void |
addFilterItem(com.sas.iquery.metadata.business.FilterItem filterItem)
Adds the filter item to the business model. |
boolean |
clearFilterCondition(com.sas.iquery.metadata.business.FilterItem filterItem)
Clears the expression for the given filter item. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.physical.Column columnItem,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given column to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.expr.ConstantExpression constantExpression,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given expression to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.physical.Dimension olapDimension,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given Dimension to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.expr.ExpressionInterface expression,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given expression to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.expr.FunctionCall functionCall,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given function call to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.physical.Hierarchy olapHierarchy,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given Hierarchy to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.physical.Level olapLevel,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given Level to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.physical.Measure olapMeasure,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given OLAP Measure to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.physical.Member olapMember,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given OLAP member to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterableItem(com.sas.iquery.metadata.expr.StringExpression stringExpression,
java.lang.String itemName,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterQualifierListInterface qualifiers)
Converts the given expression to a FilterItemInterface for use throughout the filter model. |
FilterItemInterface |
convertToFilterItem(java.lang.Object item,
com.sas.iquery.metadata.business.DataItem dataItem,
FilterItemListInterface filterItemList)
|
com.sas.iquery.metadata.expr.ExpressionInterface |
createExpressionFromNative(java.lang.Object nativeObject,
int expressionType)
Attempts to create a new ExpressionInterface instance from the given native Object for the specified expression type. |
com.sas.iquery.metadata.expr.ExpressionInterface |
createExpressionFromNative(java.lang.Object nativeObject,
int expressionType,
boolean userCreated)
|
FilterItemInterface |
createFilterItemFromNative(java.lang.Object data,
FilterItemListInterface fili)
Creates and returns a new FilterItemInterface wrapper around the given native object. |
FilterQualifierInterface |
createFilterQualifierFromNative(java.lang.Object nativeObject)
Creates and returns a filter qualifier for the given object from the native filter model. |
java.util.List |
createFilterQualifierListFromNativeList(java.util.List nativeList,
FilterItemInterface filterItem)
Creates and returns a list of filter qualifiers to represent the list of objects from the native filter model. |
FilterValueInterface |
createFilterValueFromNative(java.lang.Object nativeObject)
Creates a FilterValueInterface object that encapsulates the given native object. |
FilterValueInterface |
createFilterValueFromNative(java.lang.Object nativeObject,
FilterLogicTestNodeInterface testNode)
Creates a FilterValueInterface object that encapsulates the given native object. |
FilterValueInterface |
createFilterValueFromNative(java.lang.Object nativeObject,
long itemType,
java.lang.String sasFormatText)
Creates a FilterValueInterface object that encapsulates the given native object. |
FilterValueInterface |
createFilterValueFromNative(java.lang.Object nativeObject,
long itemType,
java.lang.String sasFormatText,
boolean formatValue)
Creates a FilterValueInterface object that encapsulates the given native object. |
protected java.util.List |
createFilterValueList(FilterItemInterface filterItem)
Creates and returns a list containing a FilterValueInterface wrapper for the OLAPTimeBasedFilterAdapterInterface contained in the given FilterItemInterface. |
java.util.List |
createFilterValueListFromNativeList(java.util.List nativeList,
FilterItemInterface filterItem)
Creates and returns a list of FilterValueInterface wrappers for the given list of native filter object values. |
java.util.Date |
createJavaDateFromSASDate(double value)
Deprecated. use DateAndTimeUtil.createJavaDateFromSASDate(double) instead |
java.util.Date |
createJavaDateFromSASDateTime(double value)
Deprecated. use DateAndTimeUtil.createJavaDateFromSASDateTime(double) instead |
java.util.Date |
createJavaDateFromSASTime(double value)
Deprecated. use DateAndTimeUtil.createJavaDateFromSASTime(double) instead |
protected java.util.List |
createStringExpressionList(java.util.List values)
Creates and returns a List of StringExpression instances for the given List of values. |
protected java.util.List |
createStringExpressionList(java.util.List values,
int type)
Creates and returns a List of StringExpression instances for the given List of values. |
static com.sas.util.ValueItem |
createValueItem(TupleElementInterface tupleElement)
|
static com.sas.util.ValueItem |
createValueItemFromUniqueMemberID(com.sas.iquery.metadata.business.DataItem dataItem,
java.lang.String memberName)
|
boolean |
enforceBooleanPrecedence()
Returns TRUE if boolean precedence will be applied when filter models are converted to the IQ model, FALSE otherwise. |
FilterConditionInterface |
findMatchingConditionObject(FilterItemInterface filterItem,
java.lang.Object conditionObject,
boolean isNegated)
This method attempts to locate and return the filter condition that matches the search value from the native filter model. |
FilterConditionInterface |
findMatchingConditionObject(FilterItemInterface filterItem,
java.lang.Object conditionObject,
boolean isNegated,
java.util.List qualifiers)
This method attempts to locate and return the filter condition that matches the search value from the native filter model. |
FilterConditionInterface |
findMatchingConditionObject(java.lang.Object conditionObject,
boolean isNegated,
FilterConditionListInterface fcli)
This method attempts to locate and return the filter condition that matches the search value from the native filter model. |
FilterItemInterface |
findMatchingFilterItem(FilterItemListInterface fili,
java.lang.Object itemObject)
This method attempts to locate and return the filter item that matches the search value from the native filter model. |
FilterQualifierInterface |
findMatchingFilterQualifier(FilterItemInterface filterItem,
java.lang.Object searchValue)
This method attempts to locate and return a filter qualifier that matches the search value from the native filter model. |
FilterValueInterface |
findMatchingFilterValue(FilterItemInterface filterItem,
java.lang.Object searchValue)
This method attempts to locate and return any previously constructed filter value object for the given search value from the native filter model. |
static java.lang.String |
formatFunctionCall(com.sas.iquery.metadata.expr.FunctionCall expr)
|
protected static long |
getAdjustedFilterItemType(FilterItemInterface item)
This method is intended to be used if an item's effective data type can not be determined by simply checking the ItemType property on a filter item. |
protected java.util.List |
getAlternateConditions()
|
protected com.sas.iquery.metadata.expr.ComparisonOperator |
getComparisonOperator(FilterLogicTestNodeInterface testNode)
Returns the ComparisonOperator stored in the given test node. |
static com.sas.iquery.metadata.business.DataItem |
getDataItem(FilterItemInterface filterItem)
|
java.util.List |
getDataItems(boolean includeBaseModels)
Returns a list of all data items present in the active BusinessModel. |
java.util.List |
getDataServiceValues(com.sas.iquery.metadata.business.DataItem dataItem)
Creates and returns a list of values for the given data item as retrieved by the IQDataServices class. |
static java.util.Date |
getDateOrNullFromNative(java.lang.Object nativeObject,
int expressionType,
java.util.Locale locale)
Attempts to extract a Date value from the given native object. |
int |
getEnvironment()
Gets the current operating environment. |
protected java.util.List |
getExpressionListFromTestNodeValues(FilterLogicTestNodeInterface testNode)
Constructs a List of expressions from the values assigned to the given test node. |
java.util.List |
getFilterableItems(boolean includeBaseModels,
java.util.Map filterItemLookup)
Creates and returns a List of filterable items for the active business model. |
protected static java.lang.String |
getFilterItemSASFormatText(java.lang.Object item)
Deprecated. Use DateAndTimeUtil#getFilterItemSASFormatText(Object) instead |
com.sas.iquery.metadata.business.step.StepInterface |
getFilterStep(com.sas.iquery.metadata.business.DataItem dataItem)
Returns the effective filter step for the given data item. |
protected long |
getItemType(FilterLogicTestNodeInterface testNode)
Returns the effective item type based on the selected item and qualifiers in the given test node. |
java.util.Map |
getLevelProperties(MetadataInterface metadata,
com.sas.iquery.metadata.business.DataItem di)
|
java.util.Map |
getLevelProperties(MetadataInterface metadata,
com.sas.iquery.metadata.business.DataItem di,
java.lang.String cubeName)
Gathers and returns a Map of levels and the filterable properties for each level. |
java.util.Map |
getLevelProperties(OLAPDataSetInterface model,
com.sas.iquery.metadata.business.DataItem di)
|
java.util.Locale |
getLocale()
Returns the Locale value set for this instance of the factory. |
int |
getMaxOutputObservations()
Returns the current maximum number of output observations returned when gathering a list of possible values to select from when creating a filter expression. |
protected java.util.List |
getMemberListFromTestNodeQualifiers(FilterLogicTestNodeInterface testNode)
Creates and returns a List of members from the given test node. |
MetadataInterface |
getMetadataInterface()
Returns a MetadataInterface instance that should connect with the first DataSource in the current BusinessModel. |
FilterConditionListInterface |
getOLAPMeasureConditionList()
Returns a FilterConditionListInterface instance containing the list of all conditions to be used in data-based filters for OLAP DataItems. |
FilterConditionListInterface |
getOLAPMemberConditionList()
Returns a FilterConditionListInterface instance containing the list of all conditions to be used in member-based filters for OLAP DataItems. |
FilterQualifierListInterface |
getQualifiers(java.util.List items)
Creates and returns a filter qualifier list for the given list of objects. |
FilterConditionInterface[] |
getRelationalCharacterConditions(boolean forcedFormatting)
Returns the condition list for relational filter items that are for character data. |
FilterConditionInterface[] |
getRelationalConditions(boolean forcedFormatting)
Returns a FilterConditionListInterface instance containing the list of all conditions to be used for relational DataItem based filters. |
FilterConditionListInterface |
getRelationalConditions(com.sas.iquery.metadata.business.DataItem item)
Returns the condition list appropriate for the given DataItem assuming it is for relational data. |
FilterConditionListInterface |
getRelationalConditions(com.sas.iquery.metadata.expr.ExpressionInterface expression)
Returns the condition list appropriate for the given expression assuming it is for relational data. |
FilterConditionListInterface |
getRelationalConditions(com.sas.iquery.metadata.expr.ExpressionInterface expression,
boolean forcedFormatting)
Returns the condition list appropriate for the given expression assuming it is for relational data. |
FilterConditionInterface[] |
getRelationalNumericConditions(boolean forcedFormatting)
Returns the condition list for relational filter items that are for numeric data. |
com.sas.iquery.metadata.serverprop.ServerProperties |
getServerProperties()
Returns the ServerProperties object derived from the active BusinessModel. |
protected java.util.List |
getStringExpressionListFromTestNodeValues(FilterLogicTestNodeInterface testNode)
Constructs a List of StringExpressions from the values assigned to the given test node. |
static com.sas.iquery.dataservices.IQDataServices |
initDataService(com.sas.iquery.metadata.business.BusinessModel businessModel)
Create and return an IQDataServices instance from the given BusinessModel. |
protected boolean |
isOLAP()
Returns TRUE if the business model represents OLAP data, FALSE otherwise. |
protected boolean |
isTimeDimension(com.sas.iquery.metadata.business.DataItem item)
|
com.sas.iquery.metadata.expr.CompoundConditionalExpression |
newCompoundConditionalExpression(com.sas.iquery.metadata.expr.ExpressionInterface exprLeft,
com.sas.iquery.metadata.expr.ExpressionInterface exprRight,
com.sas.iquery.metadata.expr.ConditionalRelationType relationType,
boolean isNegated)
Creates and returns a new CompoundConditionalExpression object based on the specified parameters. |
com.sas.iquery.metadata.business.CompoundFilter |
newCompoundFilter()
Creates and returns a new CompoundFilter instance from the active BusinessModel. |
com.sas.iquery.metadata.business.step.CompoundStep |
newCompoundStep()
Creates and returns a new CompoundStep instance for use in the OLAP step model. |
com.sas.iquery.metadata.expr.ConditionalExpression |
newConditionalExpression(FilterLogicTestNodeInterface testNode)
Creates and returns a new ConditionalExpression object from the given test node. |
static com.sas.iquery.metadata.expr.ConstantExpression |
newConstantExpression(java.lang.String value,
int type)
Creates a new ConstantExpression with the given type and value. |
com.sas.iquery.metadata.business.CompoundFilter |
newCoumpoundFilter(com.sas.iquery.metadata.business.FilterItem left,
com.sas.iquery.metadata.business.FilterItem right,
com.sas.iquery.metadata.expr.ConditionalRelationType relationType,
boolean isNegated)
Constructs and returns a new CompoundFilter object from the given parameters. |
FilterValueInterface |
newFilterDataValue(com.sas.iquery.metadata.business.LookupValue value,
com.sas.iquery.metadata.business.DataItem dataItem)
Creates a new FilterValueInterface instance from the given LookupValue for the specified DataItem. |
FilterValueInterface |
newFilterDataValue(com.sas.iquery.dataservices.PossibleFilterValue value)
Constructs a new FilterValueInterface instance from the given PossibleFilterValue object. |
com.sas.iquery.metadata.business.FilterItem |
newFilterItem()
Creates and returns a new FilterItem instance from the active BusinessModel. |
com.sas.iquery.metadata.business.step.StepInterface |
newFilterStep(FilterLogicTestNodeInterface testNode)
Creates and returns a new StepInterface instance for use in the OLAP step model. |
FilterValueInterface |
newFilterValue(java.lang.Object nativeObject,
FilterLogicTestNodeInterface testNode)
Creates a FilterValueInterface object that encapsulates the given native object. |
static com.sas.iquery.metadata.expr.StringExpression |
newStringExpression(java.lang.String text)
Creates a new StringExpression from the given text. |
static com.sas.iquery.metadata.expr.StringExpression |
newStringExpression(java.lang.String text,
int type)
Creates a new StringExpression from the given text and expression type. |
FilterLogicTestNodeInterface |
newTestNode(com.sas.iquery.metadata.business.BusinessQuery bq,
com.sas.iquery.metadata.business.DataItem dataItem,
com.sas.iquery.metadata.business.step.StepInterface filterObject,
FilterItemListInterface filterItemList)
Creates a new test node from the given OLAP Step model filter. |
FilterLogicTestNodeInterface |
newTestNode(com.sas.iquery.metadata.business.DataItem dataItem,
FilterItemListInterface filterItemList)
Creates and returns a new test node to describe the effective OLAP filter step for the given DataItem. |
FilterLogicTestNodeInterface |
newTestNode(com.sas.iquery.metadata.business.DataItem dataItem,
com.sas.iquery.metadata.business.step.StepInterface filterObject,
FilterItemListInterface filterItemList)
Creates a new test node from the given OLAP Step model filter. |
FilterLogicTestNodeInterface |
newTestNode(com.sas.iquery.metadata.business.FilterItem filter,
FilterItemListInterface filterItemList)
Creates a new test node if-and-only-if the filter is a simple filter. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.olap.DataBasedFilterExpression filterExpr,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.FunctionCall fCall,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.olap.MemberFilterExpression filterExpression,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
java.lang.Object item,
java.util.List qualifiers,
java.lang.Object conditionObject,
boolean isNegated,
java.util.List values,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
java.lang.Object item,
java.lang.Object conditionObject,
boolean isNegated,
java.util.List values,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Between betweenExpr,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Comparison compExpr,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Contains containsExpr,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_In inExpr,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Like likeExpr,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_TestForNull nullExpr,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.olap.TimeFilterExpression filterExpression,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
FilterLogicTestNodeInterface |
newTestNode(java.lang.String name,
java.lang.String desc,
com.sas.iquery.metadata.expr.olap.TimeRangeFilterExpression filterExpression,
FilterItemListInterface filterItemList)
Creates and returns a new test node from the given properties. |
void |
releaseResources()
|
void |
removeFilterItem(java.lang.Object filterItem)
Remove the specified filter item from the business model. |
void |
setEnvironment(int environment)
Sets the operating environment to the specified value. |
void |
setFilterBaseModelData(FilterBaseModelData baseModel)
|
protected void |
setFilterItemProperties(FilterItemInterface filterItem,
com.sas.iquery.metadata.business.DataItem dataItem)
Sets any additional DataItem specific properties on the filter item. |
protected void |
setFilterItemProperties(FilterItemInterface filterItem,
com.sas.iquery.metadata.expr.ResourceAwareStringExpression expression)
Sets any additional expression specific properties on the filter item. |
void |
setLocale(java.util.Locale locale)
Sets the locale to be used when creating/retrieving text that will be visible to a user. |
void |
setMaxOutputObservations(int max)
Sets the current maximum number of output observations to be returned when gathering a list of possible values to select from when creating a filter expression. |
boolean |
updateCompoundConditionalFilter(com.sas.iquery.metadata.business.FilterItem filterItem,
com.sas.iquery.metadata.expr.ExpressionInterface expression,
com.sas.iquery.metadata.expr.ExpressionInterface exprLeft,
com.sas.iquery.metadata.expr.ExpressionInterface exprRight,
com.sas.iquery.metadata.expr.ConditionalRelationType relationType,
boolean isNegated)
Updates the given filter item from the specified parameters. |
boolean |
updateCompoundFilter(com.sas.iquery.metadata.business.FilterItem filterItem,
com.sas.iquery.metadata.business.FilterItem left,
com.sas.iquery.metadata.business.FilterItem right,
com.sas.iquery.metadata.expr.ConditionalRelationType relationType,
boolean isNegated)
Updates the given CompoundFilter object from the specified parameters. |
boolean |
updateCompoundStep(com.sas.iquery.metadata.business.step.CompoundStep compoundFilter,
com.sas.iquery.metadata.business.step.StepInterface left,
com.sas.iquery.metadata.business.step.StepInterface right,
com.sas.iquery.metadata.expr.ConditionalRelationType relationType,
boolean isNegated)
Updates the given compound step object from the specified parameters. |
boolean |
updateSimpleFilter(com.sas.iquery.metadata.business.FilterItem filterItem,
java.lang.String name,
java.lang.String description,
com.sas.iquery.metadata.expr.ExpressionInterface result)
Sets properties on the given filter item from the given parameters. |
boolean |
updateSimpleFilterFromTestNode(com.sas.iquery.metadata.business.FilterItem filterItem,
FilterLogicTestNodeInterface testNode)
Save the testNode data to the filter and then make sure the filter is in the business model. |
boolean |
updateSimpleFilterFromTestNode(java.lang.Object filterItemObject,
FilterLogicTestNodeInterface testNode)
Saves the test node data to the filter. |
boolean |
updateSimpleFilterFromTestNode(com.sas.iquery.metadata.business.step.StepInterface filterStep,
FilterLogicTestNodeInterface testNode)
Save the testNode data to the filter and then make sure the filter is in the business model. |
void |
wrapValueListDates(FilterLogicTestNodeInterface testNode)
Encapsulates all Date objects in the given test node's value list in FilterValueInterface instances. |
Field Detail |
---|
public static final int DEFAULT_GOVERNING_LIMIT
protected com.sas.iquery.metadata.business.BusinessModel _businessModel
protected com.sas.iquery.dataservices.IQDataServices _dataService
protected com.sas.iquery.metadata.expr.ResourceScope _scope
protected int environment
protected FilterBaseModelData _baseModel
public static final com.sas.iquery.metadata.expr.ResourceScope DEFAULT_SCOPE
public static final java.lang.String RB_KEY2
public static final java.lang.String RB_KEY
public FilterConditionInterface IS_EQUALS
public FilterConditionInterface IS_NOT_EQUALS
public FilterConditionInterface IS_IN_LIST
public FilterConditionInterface IS_NOT_IN_LIST
public FilterConditionInterface IS_LESS_THAN
public FilterConditionInterface IS_LESS_THAN_OR_EQUAL
public FilterConditionInterface IS_GREATER_THAN
public FilterConditionInterface IS_GREATER_THAN_OR_EQUAL
public FilterConditionInterface IS_BETWEEN
public FilterConditionInterface IS_NOT_BETWEEN
public FilterConditionInterface IS_NULL
public FilterConditionInterface IS_NOT_NULL
public FilterConditionInterface CODE_BLOCK
public FilterConditionInterface IS_BEFORE
public FilterConditionInterface IS_BEFORE_OR_EQUAL
public FilterConditionInterface IS_AFTER
public FilterConditionInterface IS_AFTER_OR_EQUAL
Constructor Detail |
---|
public BaseFilterObjectFactory(FilterBaseModelData baseModel, com.sas.iquery.metadata.expr.ResourceScope scope)
businessModel
- the BusinessModel being dealt withscope
- the intended resource scope.Method Detail |
---|
public boolean enforceBooleanPrecedence()
enforceBooleanPrecedence
in interface FilterObjectFactoryInterface
protected boolean isOLAP()
public static com.sas.iquery.dataservices.IQDataServices initDataService(com.sas.iquery.metadata.business.BusinessModel businessModel)
businessModel
- the BusinessModel to derive the IQDataServices instance from
public java.util.List getDataItems(boolean includeBaseModels)
includeBaseModels
- TRUE if the base models for the active BusinessModel should
be recursed into as well.
public com.sas.iquery.metadata.business.FilterItem newFilterItem()
newFilterItem
in interface FilterObjectFactoryInterface
public com.sas.iquery.metadata.business.step.StepInterface newFilterStep(FilterLogicTestNodeInterface testNode)
newFilterStep
in interface FilterObjectFactoryInterface
testNode
- the test node used to determine the type of object to return
public com.sas.iquery.metadata.business.CompoundFilter newCompoundFilter()
newCompoundFilter
in interface FilterObjectFactoryInterface
public com.sas.iquery.metadata.business.step.CompoundStep newCompoundStep()
newCompoundStep
in interface FilterObjectFactoryInterface
public void removeFilterItem(java.lang.Object filterItem)
removeFilterItem
in interface FilterObjectFactoryInterface
filterItem
- the filter item to remove from the active BusinessModelpublic void addFilterItem(com.sas.iquery.metadata.business.FilterItem filterItem)
filterItem
- the filter item to add to the active BusinessModelpublic com.sas.iquery.metadata.serverprop.ServerProperties getServerProperties()
public static com.sas.iquery.metadata.expr.ConstantExpression newConstantExpression(java.lang.String value, int type)
value
- the value to assign the new expressiontype
- the expression type to assign the new expression
public static com.sas.iquery.metadata.expr.StringExpression newStringExpression(java.lang.String text)
text
- the text to assign as the value for the new expression
public static com.sas.iquery.metadata.expr.StringExpression newStringExpression(java.lang.String text, int type)
text
- the text to assign as the value for the new expressiontype
- the expression type to assign the new expression
public boolean updateSimpleFilterFromTestNode(java.lang.Object filterItemObject, FilterLogicTestNodeInterface testNode)
updateSimpleFilterFromTestNode
in interface FilterObjectFactoryInterface
filterItemObject
- the target filtertestNode
- the source data
public boolean updateSimpleFilterFromTestNode(com.sas.iquery.metadata.business.FilterItem filterItem, FilterLogicTestNodeInterface testNode)
updateSimpleFilterFromTestNode
in interface FilterObjectFactoryInterface
filterItem
- the filter item to modify (may be null)testNode
- the test node to process
protected java.util.List getExpressionListFromTestNodeValues(FilterLogicTestNodeInterface testNode)
testNode
- the test node to process
protected java.util.List getStringExpressionListFromTestNodeValues(FilterLogicTestNodeInterface testNode)
testNode
- the test node to process
protected java.util.List createStringExpressionList(java.util.List values)
values
- the input list of objects
protected java.util.List createStringExpressionList(java.util.List values, int type)
values
- the input list of objectstype
- the type assigned to new StringExpressions
protected java.util.List getMemberListFromTestNodeQualifiers(FilterLogicTestNodeInterface testNode)
testNode
- the test node to process
protected com.sas.iquery.metadata.expr.ComparisonOperator getComparisonOperator(FilterLogicTestNodeInterface testNode)
testNode
- the test node to process
public boolean updateSimpleFilterFromTestNode(com.sas.iquery.metadata.business.step.StepInterface filterStep, FilterLogicTestNodeInterface testNode)
filterStep
- the OLAP step model filter to updatetestNode
- the test node to examine
protected long getItemType(FilterLogicTestNodeInterface testNode)
testNode
- the test node to examine
public boolean updateSimpleFilter(com.sas.iquery.metadata.business.FilterItem filterItem, java.lang.String name, java.lang.String description, com.sas.iquery.metadata.expr.ExpressionInterface result)
filterItem
- the filter item to modifyname
- the name to assign the filter itemdescription
- the description to assign the filter itemresult
- the expression to assign the filter item
public com.sas.iquery.metadata.business.CompoundFilter newCoumpoundFilter(com.sas.iquery.metadata.business.FilterItem left, com.sas.iquery.metadata.business.FilterItem right, com.sas.iquery.metadata.expr.ConditionalRelationType relationType, boolean isNegated)
left
- the left child to apply to the new filter itemright
- the right child to apply to the new filter itemrelationType
- the logical relationship between the new filter's childrenisNegated
- the negation status to assign to the new filter item
public boolean updateCompoundFilter(com.sas.iquery.metadata.business.FilterItem filterItem, com.sas.iquery.metadata.business.FilterItem left, com.sas.iquery.metadata.business.FilterItem right, com.sas.iquery.metadata.expr.ConditionalRelationType relationType, boolean isNegated)
updateCompoundFilter
in interface FilterObjectFactoryInterface
filterItem
- the compound filter to updateleft
- the left child to apply to the filter itemright
- the right child to apply to the filter itemrelationType
- the logical relationship between the filter's childrenisNegated
- the negation status to assign to the filter item
public boolean updateCompoundStep(com.sas.iquery.metadata.business.step.CompoundStep compoundFilter, com.sas.iquery.metadata.business.step.StepInterface left, com.sas.iquery.metadata.business.step.StepInterface right, com.sas.iquery.metadata.expr.ConditionalRelationType relationType, boolean isNegated)
updateCompoundStep
in interface FilterObjectFactoryInterface
compoundFilter
- the filter to updateleft
- the left child to apply to the filter itemright
- the right child to apply to the filter itemrelationType
- the logical relationship between the filter's childrenisNegated
- the negation status to assign to the filter item
public FilterItemInterface findMatchingFilterItem(FilterItemListInterface fili, java.lang.Object itemObject)
findMatchingFilterItem
in interface FilterObjectFactoryInterface
fili
- the list of filter items to searchitemObject
- the search value from the native model
public FilterConditionInterface findMatchingConditionObject(FilterItemInterface filterItem, java.lang.Object conditionObject, boolean isNegated, java.util.List qualifiers)
filterItem
- the filter item holding the list of conditions to searchconditionObject
- the search value from the native filter modelisNegated
- TRUE if the condition is the negation of another (ex: Is not equal to)qualifiers
- an optional list of qualifiers that could affect the list of
available conditions
public FilterConditionInterface findMatchingConditionObject(FilterItemInterface filterItem, java.lang.Object conditionObject, boolean isNegated)
findMatchingConditionObject
in interface FilterObjectFactoryInterface
filterItem
- the filter item holding the list of conditions to searchconditionObject
- the search value from the native filter modelisNegated
- TRUE if the condition is the negation of another (ex: Is not equal to)
public FilterConditionInterface findMatchingConditionObject(java.lang.Object conditionObject, boolean isNegated, FilterConditionListInterface fcli)
conditionObject
- the search value from the native filter modelisNegated
- TRUE if the condition is the negation of another (ex: Is not equal to)fcli
- the list of filter conditions to search
protected java.util.List getAlternateConditions()
public boolean clearFilterCondition(com.sas.iquery.metadata.business.FilterItem filterItem)
clearFilterCondition
in interface FilterObjectFactoryInterface
filterItem
- the item to clear
public boolean updateCompoundConditionalFilter(com.sas.iquery.metadata.business.FilterItem filterItem, com.sas.iquery.metadata.expr.ExpressionInterface expression, com.sas.iquery.metadata.expr.ExpressionInterface exprLeft, com.sas.iquery.metadata.expr.ExpressionInterface exprRight, com.sas.iquery.metadata.expr.ConditionalRelationType relationType, boolean isNegated)
filterItem
- the filter item to updateexpression
- the expression instance to update (if compound)exprLeft
- the left child expression to apply to the filter itemexprRight
- the right child expression to apply to the filter itemrelationType
- the logical relationship between the filter's childrenisNegated
- the negation status to assign to the filter item
public com.sas.iquery.metadata.expr.CompoundConditionalExpression newCompoundConditionalExpression(com.sas.iquery.metadata.expr.ExpressionInterface exprLeft, com.sas.iquery.metadata.expr.ExpressionInterface exprRight, com.sas.iquery.metadata.expr.ConditionalRelationType relationType, boolean isNegated)
exprLeft
- the left child expression to apply to the new expressionexprRight
- the right child expression to apply to the new expressionrelationType
- the logical relationship between the new expression's childrenisNegated
- the negation status to assign to the filter item
public com.sas.iquery.metadata.expr.ConditionalExpression newConditionalExpression(FilterLogicTestNodeInterface testNode)
testNode
- the test node to process
public FilterQualifierInterface findMatchingFilterQualifier(FilterItemInterface filterItem, java.lang.Object searchValue)
filterItem
- the filter item holding the qualifiers to searchsearchValue
- the search value from the native filter model
public java.util.List createFilterQualifierListFromNativeList(java.util.List nativeList, FilterItemInterface filterItem)
nativeList
- the list of objects to process from the native filter modelfilterItem
- the filter item to be associated with the new qualifiers
public FilterQualifierInterface createFilterQualifierFromNative(java.lang.Object nativeObject)
nativeObject
- the value to process
public FilterValueInterface findMatchingFilterValue(FilterItemInterface filterItem, java.lang.Object searchValue) throws DataRetrievalError
filterItem
- the filter item the value is associated withsearchValue
- the value to search for from the native model
DataRetrievalError
- when any problem occurs while communicating with a data
server while gathering possible values for an itempublic java.util.List createFilterValueListFromNativeList(java.util.List nativeList, FilterItemInterface filterItem)
nativeList
- the list of native values to processfilterItem
- the filter item the values are intended to be used with
protected java.util.List createFilterValueList(FilterItemInterface filterItem)
filterItem
- the filter item that contains the OLAPTimeBasedFilterAdapterInterface to wrap into a FilterValueInterface.
public FilterValueInterface createFilterValueFromNative(java.lang.Object nativeObject, FilterLogicTestNodeInterface testNode)
nativeObject
- the object to encapsulatetestNode
- the selection model the value is being created for
public FilterValueInterface newFilterValue(java.lang.Object nativeObject, FilterLogicTestNodeInterface testNode)
nativeObject
- the object to encapsulatetestNode
- the selection model the value is being created for
public FilterValueInterface createFilterValueFromNative(java.lang.Object nativeObject)
nativeObject
- the object to encapsulate
public FilterValueInterface createFilterValueFromNative(java.lang.Object nativeObject, long itemType, java.lang.String sasFormatText)
nativeObject
- the object to encapsulateitemType
- the item type to assign the filter valuesasFormatText
- the SAS format text to use to generate formatted values
public FilterValueInterface createFilterValueFromNative(java.lang.Object nativeObject, long itemType, java.lang.String sasFormatText, boolean formatValue)
nativeObject
- the object to encapsulateitemType
- the item type to assign the filter valuesasFormatText
- the SAS format text to use to generate formatted values
public static java.lang.String formatFunctionCall(com.sas.iquery.metadata.expr.FunctionCall expr)
public FilterLogicTestNodeInterface newTestNode(com.sas.iquery.metadata.business.DataItem dataItem, com.sas.iquery.metadata.business.step.StepInterface filterObject, FilterItemListInterface filterItemList)
newTestNode
in interface FilterObjectFactoryInterface
dataItem
- the DataItem the step filter affectsfilterObject
- the step filter to examinefilterItemList
- the list of previously created filter items
public FilterLogicTestNodeInterface newTestNode(com.sas.iquery.metadata.business.BusinessQuery bq, com.sas.iquery.metadata.business.DataItem dataItem, com.sas.iquery.metadata.business.step.StepInterface filterObject, FilterItemListInterface filterItemList)
bq
- the associated BusinessQuery, if anydataItem
- the DataItem the step filter affectsfilterObject
- the step filter to examinefilterItemList
- the list of previously created filter items
public FilterLogicTestNodeInterface newTestNode(com.sas.iquery.metadata.business.DataItem dataItem, FilterItemListInterface filterItemList)
newTestNode
in interface FilterObjectFactoryInterface
dataItem
- the DataItem to examinefilterItemList
- the list of existing filter items to use during the conversion
public com.sas.iquery.metadata.business.step.StepInterface getFilterStep(com.sas.iquery.metadata.business.DataItem dataItem)
dataItem
- the DataItem to examine
public FilterLogicTestNodeInterface newTestNode(com.sas.iquery.metadata.business.FilterItem filter, FilterItemListInterface filterItemList)
newTestNode
in interface FilterObjectFactoryInterface
filter
- the native filter item to convert to a test nodefilterItemList
- the list of existing filter items to use during the conversion
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.olap.MemberFilterExpression filterExpression, FilterItemListInterface filterItemList)
name
- a label for the test nodedesc
- a description for the test nodefilterExpr
- the filter expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.olap.DataBasedFilterExpression filterExpr, FilterItemListInterface filterItemList)
name
- a label for the test nodedesc
- a description for the test nodefilterExpr
- the filter expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.olap.TimeFilterExpression filterExpression, FilterItemListInterface filterItemList)
name
- a label for the test nodedesc
- a description for the test nodefilterExpression
- the filter expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.olap.TimeRangeFilterExpression filterExpression, FilterItemListInterface filterItemList)
name
- a label for the test nodedesc
- a description for the test nodefilterExpression
- the filter expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.FunctionCall fCall, FilterItemListInterface filterItemList)
newTestNode
in interface FilterObjectFactoryInterface
name
- a label for the test nodedesc
- a description for the test nodefCall
- the function call object to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Comparison compExpr, FilterItemListInterface filterItemList)
newTestNode
in interface FilterObjectFactoryInterface
name
- a label for the test nodedesc
- a description for the test nodecompExpr
- the comparison conditional expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_In inExpr, FilterItemListInterface filterItemList)
newTestNode
in interface FilterObjectFactoryInterface
name
- a label for the test nodedesc
- a description for the test nodeinExpr
- the 'is in' conditional expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Between betweenExpr, FilterItemListInterface filterItemList)
newTestNode
in interface FilterObjectFactoryInterface
name
- a label for the test nodedesc
- a description for the test nodebetweenExpr
- the 'is between' conditional expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Contains containsExpr, FilterItemListInterface filterItemList)
name
- a label for the test nodedesc
- a description for the test nodebetweenExpr
- the 'contains' conditional expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Like likeExpr, FilterItemListInterface filterItemList)
name
- a label for the test nodedesc
- a description for the test nodebetweenExpr
- the 'contains' conditional expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_TestForNull nullExpr, FilterItemListInterface filterItemList)
newTestNode
in interface FilterObjectFactoryInterface
name
- a label for the test nodedesc
- a description for the test nodenullExpr
- the 'is null' conditional expression to processfilterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, java.lang.Object item, java.lang.Object conditionObject, boolean isNegated, java.util.List values, FilterItemListInterface filterItemList)
newTestNode
in interface FilterObjectFactoryInterface
name
- a label for the test nodedesc
- a description for the test nodeitem
- the selected filter itemconditionObject
- the selected conditionisNegated
- flag for setting negation on the test nodevalues
- any selected value(s)filterItemList
- the list of known filter items
public FilterLogicTestNodeInterface newTestNode(java.lang.String name, java.lang.String desc, java.lang.Object item, java.util.List qualifiers, java.lang.Object conditionObject, boolean isNegated, java.util.List values, FilterItemListInterface filterItemList)
name
- a label for the test nodedesc
- a description for the test nodeitem
- the selected filter itemqualifiers
- the selected list of qualifiersconditionObject
- the selected conditionisNegated
- flag for setting negation on the test nodevalues
- any selected value(s)filterItemList
- the list of known filter items
public FilterQualifierListInterface getQualifiers(java.util.List items)
items
- the list of items being converted
public java.util.List getDataServiceValues(com.sas.iquery.metadata.business.DataItem dataItem)
dataItem
- the DataItem to get values for
public FilterValueInterface newFilterDataValue(com.sas.iquery.dataservices.PossibleFilterValue value)
value
- the PossibleFilterValue used to derive the new FilterValueInterface
public FilterValueInterface newFilterDataValue(com.sas.iquery.metadata.business.LookupValue value, com.sas.iquery.metadata.business.DataItem dataItem)
value
- the LookupValue to create the new filter value fromdataItem
- the DataItem the LookupValue was derived from
public java.util.List getFilterableItems(boolean includeBaseModels, java.util.Map filterItemLookup)
getFilterableItems
in interface FilterObjectFactoryInterface
includeBaseModels
- set to TRUE if the business model's base models should be
examined, FALSE otherwisefilterItemLookup
- a Map of previously created filter items
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.physical.Measure olapMeasure, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
olapMeasure
- the measure to processitemName
- to assign the filter itemdataItem
- the DataItem this filter is based onqualifiers
- the qualifiers for this filter item
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.physical.Member olapMember, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
olapMember
- the member to processitemName
- to assign the filter itemdataItem
- the DataItem this filter is based onqualifiers
- the qualifiers for this filter item
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.physical.Level olapLevel, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
olapLevel
- the level to processitemName
- to assign the filter itemdataItem
- the DataItem this filter is based onqualifiers
- the qualifiers for this filter item
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.physical.Hierarchy olapHierarchy, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
olapHierarchy
- the hierarchy to processitemName
- to assign the filter itemdataItem
- the DataItem this filter is based onqualifiers
- the qualifiers for this filter item
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.physical.Dimension olapDimension, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
olapDimension
- the dimension to processitemName
- to assign the filter itemdataItem
- the DataItem this filter is based onqualifiers
- the qualifiers for this filter item
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.expr.StringExpression stringExpression, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
stringExpression
- the expression to convertitemName
- to assign the filter itemdataItem
- the DataItem this filter is based onqualifiers
- the qualifiers for this filter item
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.physical.Column columnItem, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
columnItem
- the Column to convertitemName
- to assign the filter itemdataItem
- the DataItem this filter is based onqualifiers
- the qualifiers for this filter item
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.expr.ConstantExpression constantExpression, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
constantExpression
- the expression to convertitemName
- to assign the filter itemdataItem
- the DataItem this filter is based onqualifiers
- the qualifiers for this filter item
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.expr.FunctionCall functionCall, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
functionCall
- the function call to convertitemName
- the name to assign the filter itemdataItem
- the DataItem this item will be based onqualifiers
- the qualifiers for the filter item
public FilterItemInterface convertToFilterableItem(com.sas.iquery.metadata.expr.ExpressionInterface expression, java.lang.String itemName, com.sas.iquery.metadata.business.DataItem dataItem, FilterQualifierListInterface qualifiers)
expression
- the expression to convertitemName
- to assign the filter itemdataItem
- the DataItem this filter is based onqualifiers
- the qualifiers for this filter item
protected void setFilterItemProperties(FilterItemInterface filterItem, com.sas.iquery.metadata.business.DataItem dataItem)
filterItem
- the filter item to modifydataItem
- the DataItem to examineprotected void setFilterItemProperties(FilterItemInterface filterItem, com.sas.iquery.metadata.expr.ResourceAwareStringExpression expression)
filterItem
- the filter item to modifyexpression
- the ResourceAwareStringExpression to examinepublic FilterConditionListInterface getRelationalConditions(com.sas.iquery.metadata.expr.ExpressionInterface expression)
expression
- the expression to examine
public FilterConditionListInterface getRelationalConditions(com.sas.iquery.metadata.business.DataItem item)
item
- the item to examine
public FilterConditionListInterface getRelationalConditions(com.sas.iquery.metadata.expr.ExpressionInterface expression, boolean forcedFormatting)
expression
- the expression to examineforcedFormatting
- flag to specify if forced formatting should be considered while constructing the condition list
public FilterConditionInterface[] getRelationalConditions(boolean forcedFormatting)
public FilterConditionInterface[] getRelationalCharacterConditions(boolean forcedFormatting)
public FilterConditionInterface[] getRelationalNumericConditions(boolean forcedFormatting)
public FilterConditionListInterface getOLAPMeasureConditionList()
public FilterConditionListInterface getOLAPMemberConditionList()
public FilterItemInterface createFilterItemFromNative(java.lang.Object data, FilterItemListInterface fili)
data
- the native object to convert to a filter itemfili
- the list of previously created filter items
public FilterItemInterface convertToFilterItem(java.lang.Object item, com.sas.iquery.metadata.business.DataItem dataItem, FilterItemListInterface filterItemList)
public int getMaxOutputObservations()
getMaxOutputObservations
in interface FilterObjectFactoryInterface
public void setMaxOutputObservations(int max)
setMaxOutputObservations
in interface FilterObjectFactoryInterface
max
- the new maximum number of output observationsGoverning
public void setLocale(java.util.Locale locale)
setLocale
in interface FilterObjectFactoryInterface
locale
- the new localepublic java.util.Locale getLocale()
getLocale
in interface FilterObjectFactoryInterface
protected static long getAdjustedFilterItemType(FilterItemInterface item)
item
- the item to examine
public com.sas.iquery.metadata.expr.ExpressionInterface createExpressionFromNative(java.lang.Object nativeObject, int expressionType)
nativeObject
- the source native objectexpressionType
- the type of expression to be made
public com.sas.iquery.metadata.expr.ExpressionInterface createExpressionFromNative(java.lang.Object nativeObject, int expressionType, boolean userCreated)
public java.util.Date createJavaDateFromSASDate(double value)
value
- the SAS double value
public java.util.Date createJavaDateFromSASTime(double value)
value
- the SAS double value
public java.util.Date createJavaDateFromSASDateTime(double value)
value
- the SAS double value
public static java.util.Date getDateOrNullFromNative(java.lang.Object nativeObject, int expressionType, java.util.Locale locale)
nativeObject
- the source objectexpressionType
- the expression type (time/date/datetime)locale
-
public void wrapValueListDates(FilterLogicTestNodeInterface testNode)
testNode
- the test node to processprotected static java.lang.String getFilterItemSASFormatText(java.lang.Object item)
public void setFilterBaseModelData(FilterBaseModelData baseModel)
public MetadataInterface getMetadataInterface() throws FilterException
FilterException
- for any unrecoverable errors that occur while
connecting with the OLAP metadata serverpublic void releaseResources()
public java.util.Map getLevelProperties(OLAPDataSetInterface model, com.sas.iquery.metadata.business.DataItem di) throws OLAPException
OLAPException
public java.util.Map getLevelProperties(MetadataInterface metadata, com.sas.iquery.metadata.business.DataItem di) throws OLAPException
OLAPException
public java.util.Map getLevelProperties(MetadataInterface metadata, com.sas.iquery.metadata.business.DataItem di, java.lang.String cubeName) throws OLAPException
metadata
- the OLAP server metadata connectiondi
- the DataItem to examinecubeName
- the name of the cube to explore
OLAPException
protected boolean isTimeDimension(com.sas.iquery.metadata.business.DataItem item)
public int getEnvironment()
public void setEnvironment(int environment)
environment
- The environment to set. Valid values are defined in com.sas.util.OperatingEnvironmentInterface.public static com.sas.iquery.metadata.business.DataItem getDataItem(FilterItemInterface filterItem)
public static com.sas.util.ValueItem createValueItemFromUniqueMemberID(com.sas.iquery.metadata.business.DataItem dataItem, java.lang.String memberName) throws com.sas.iquery.metadata.MetadataException, OLAPException
com.sas.iquery.metadata.MetadataException
OLAPException
public static com.sas.util.ValueItem createValueItem(TupleElementInterface tupleElement) throws OLAPException
OLAPException
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |