com.sas.dataselectors.calculateditems
Class BusinessQueryCalculatedObjectFactory

com.sas.dataselectors.calculateditems.BusinessQueryCalculatedObjectFactory
All Implemented Interfaces:
CalculatedItemMetadataInterface, CalculatedObjectFactoryInterface
Direct Known Subclasses:
DataSelectionCalculatedObjectFactory

public class BusinessQueryCalculatedObjectFactory

Description: Wrapper class around the BaseCalculatedObjectFactory to handle any BusinessQuery specific cases Copyright: Copyright (c) 2002 Company: SAS


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sas.dataselectors.calculateditems.CalculatedObjectFactoryInterface
CalculatedObjectFactoryInterface.ImageIconFactoryInterface
 
Field Summary
 
Fields inherited from class com.sas.dataselectors.calculateditems.BaseCalculatedObjectFactory
_cachedChildrenLists, _isTypeChangeWarningIgnored, _maxPhysicalValuestoLoad, _timeDateLookupCache, _timeDateSyntaxDataSelection, DEFAULT_GOVERNING_LIMIT, ERROR_ADDINGDATAITEM, ERROR_CREATINGDATAITEM, ERROR_FINDINGICONIMAGE, ERROR_FORMATTINGEXPRTEXT, ERROR_INVALIDEXPR, ERROR_INVALIDITEM, ERROR_INVALIDITEM_LABEL, ERROR_INVALIDITEM_OLAPLABELLENGTH, ERROR_NODATASERVICES, ERROR_NOMETADATASERVICE, ERROR_PARSINGEXPRTEXT, ERROR_REMOVINGDATAITEM, ERROR_TYPEINVALID, ERROR_TYPENOTSET, ERROR_UPDATINGDATAITEM, ERROR_UPDATINGEXPR, IMAGENAME_COLUMN_TYPE_CHARACTER, IMAGENAME_COLUMN_TYPE_DATE, IMAGENAME_COLUMN_TYPE_NUMERIC, IMAGENAME_COLUMN_TYPE_TIME, IMAGENAME_COLUMN_TYPE_TIMESTAMP, IMAGENAME_FOLDER_CLOSED, IMAGENAME_FOLDER_OPENED, IMAGENAME_MEMBER_TYPE_CHARACTER, IMAGENAME_MEMBER_TYPE_DATE, IMAGENAME_MEMBER_TYPE_NUMERIC, IMAGENAME_MEMBER_TYPE_TIME, IMAGENAME_MEMBER_TYPE_TIMESTAMP, IMAGENAME_OBJECT_CATEGORY, IMAGENAME_OBJECT_COLLECTION, IMAGENAME_OBJECT_CUBE, IMAGENAME_OBJECT_CUBE_DIMENSION, IMAGENAME_OBJECT_CUBE_HIERARCHY, IMAGENAME_OBJECT_CUBE_LEVEL, IMAGENAME_OBJECT_CUBE_MEASURE, IMAGENAME_OBJECT_DATASET, IMAGENAME_OBJECT_DATASOURCE, IMAGENAME_OBJECT_DETAIL, IMAGENAME_OBJECT_FILTER, IMAGENAME_OBJECT_MEASURE, IMAGENAME_OBJECT_PROMPTED_CATEGORY, IMAGENAME_OBJECT_PROMPTED_DETAIL, IMAGENAME_OBJECT_PROMPTED_FILTER, IMAGENAME_OBJECT_PROMPTED_MEASURE, IMAGENAME_OBJECT_TYPE_COLUMN, IMAGENAME_OBJECT_TYPE_PROMPT, LABEL_CALCITEM_TYPE_BITSTRING, LABEL_CALCITEM_TYPE_BOOLEAN, LABEL_CALCITEM_TYPE_CHARACTER, LABEL_CALCITEM_TYPE_DATE, LABEL_CALCITEM_TYPE_INTERVAL_DT, LABEL_CALCITEM_TYPE_INTERVAL_YM, LABEL_CALCITEM_TYPE_NOT_SET, LABEL_CALCITEM_TYPE_NUMERIC, LABEL_CALCITEM_TYPE_OLAP_CATEGORY, LABEL_CALCITEM_TYPE_OLAP_MEASURE, LABEL_CALCITEM_TYPE_TIME, LABEL_CALCITEM_TYPE_TIMESTAMP, lastInvalidCalculatedItemMessage, lastInvalidExpressionException, MAXIMUM_OLAPLABELLENGTH, parseExpressionMap, RB_KEY
 
Constructor Summary
BusinessQueryCalculatedObjectFactory(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
           
BusinessQueryCalculatedObjectFactory(com.sas.iquery.metadata.business.BusinessQuery businessQuery, CalculatedObjectFactoryInterface.ImageIconFactoryInterface imageIconFactory)
           
BusinessQueryCalculatedObjectFactory(com.sas.iquery.metadata.business.BusinessQuery businessQuery, java.util.Locale locale)
           
 
Method Summary
protected  void addBusinessItemRef(com.sas.iquery.metadata.business.DataItem dataItem)
           
 boolean canRemoveAllCalculatedItems()
           
 com.sas.iquery.metadata.business.Role getDefaultRoleForNewItems()
           
 java.lang.Object newBusinessModelCalculatedItemObject(CalculatedItemInterface item)
           
 CalculatedItemInterface newCalculatedItemFromBusinessObject(java.lang.Object bmObject)
           
protected  void printCalcItems()
           
protected  void printDataItem(java.lang.String tag, com.sas.iquery.metadata.business.DataItem dataItem)
           
protected  void printResultItems()
           
 void removeBusinessModelCalculatedItemObject(java.lang.Object bmObject)
           
 void setDefaultRoleForNewItems(com.sas.iquery.metadata.business.Role role)
          If called before commit, this sets the default role for all new calculated items created (its Role.COLUMN by default)
 
Methods inherited from class com.sas.dataselectors.calculateditems.BaseCalculatedObjectFactory
_init, canBusinessModelObjectHaveChildren, canBusinessModelObjectHaveValues, convertBusinessObjectListToValuesList, convertToCalcItemType, convertToDataItem, convertToExpressionType, finalize, getBusinessDataSourceTree, getBusinessModelCalculatedItemObjects, getBusinessModelObjectChildren, getBusinessModelObjectImageName, getBusinessModelObjectValues, getBusinessModelObjectValuesToInsert, getBusinessObjectDescription, getBusinessObjectDisplayName, getBusinessObjectInsertName, getBusinessObjectTipText, getCalcItemTypeNames, getCalcItemTypeValues, getChildFormats, getChildFormats, getChildFormats, getDataItems, getDataItemsAndFolders, getDataItemValues, getDataServiceValues, getDataSources, getDataSourceTree, getExpressionTypeLabel, getExpressionTypeNames, getExpressionTypeValues, getExpressionUtilText, getExpressionValues, getFormatFromResources, getFunctionListTree, getImageIconByImageName, getImageIconFactory, getImageIconFromIqVisualsBundle, getIQueryMetadataService, getLastInvalidCalculatedItemMessage, getLastInvalidExpressionException, getLevelHasMembers, getLevelNameMap, getLevelNames, getLocale, getMaxOutputObservations, getMeasureNameMap, getMeasureNames, getMemberNames, getOperationList, getPhysicalDataSourceTree, getPromptDataSourceTree, getResourceScope, getSimpleDisplayNameFormat, getSimpleDuplicateNameFormat, getSimpleDuplicateStartIndex, isInterruptedGetPossibleFilterValues, isTypeChangeWarningIgnored, newBusinessModelCalculatedItemObject, newCalculatedItem, newExpressionUtilExpression, parseExpression, setFormat, setImageIconFactory, setLocale, setMaxOutputObservations, setResourceScope, setSimpleDisplayNameFormat, setSimpleDuplicateNameFormat, setSimpleDuplicateStartIndex, setTypeChangeWarningIgnored, updateBusinessModelObjectFromCalculatedItem, updateCalculatedItemFromBusinessModelObject, updateCalculatedItemFromCalcValues, updateCalculatedItemFromExprValues, validateCalculatedItem, validateCalculatedItem, validateCalculatedItemOnServer, validateExpression, validateExpression, validateItemCalculation, validateItemCalculation
 

Constructor Detail

BusinessQueryCalculatedObjectFactory

public BusinessQueryCalculatedObjectFactory(com.sas.iquery.metadata.business.BusinessQuery businessQuery)

BusinessQueryCalculatedObjectFactory

public BusinessQueryCalculatedObjectFactory(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
                                            java.util.Locale locale)

BusinessQueryCalculatedObjectFactory

public BusinessQueryCalculatedObjectFactory(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
                                            CalculatedObjectFactoryInterface.ImageIconFactoryInterface imageIconFactory)
Method Detail

newCalculatedItemFromBusinessObject

public CalculatedItemInterface newCalculatedItemFromBusinessObject(java.lang.Object bmObject)

newBusinessModelCalculatedItemObject

public java.lang.Object newBusinessModelCalculatedItemObject(CalculatedItemInterface item)
Specified by:
newBusinessModelCalculatedItemObject in interface CalculatedObjectFactoryInterface
Overrides:
newBusinessModelCalculatedItemObject in class BaseCalculatedObjectFactory

addBusinessItemRef

protected void addBusinessItemRef(com.sas.iquery.metadata.business.DataItem dataItem)
                           throws com.sas.iquery.metadata.MetadataException
Throws:
com.sas.iquery.metadata.MetadataException

removeBusinessModelCalculatedItemObject

public void removeBusinessModelCalculatedItemObject(java.lang.Object bmObject)
Specified by:
removeBusinessModelCalculatedItemObject in interface CalculatedObjectFactoryInterface
Overrides:
removeBusinessModelCalculatedItemObject in class BaseCalculatedObjectFactory

getDefaultRoleForNewItems

public com.sas.iquery.metadata.business.Role getDefaultRoleForNewItems()

setDefaultRoleForNewItems

public void setDefaultRoleForNewItems(com.sas.iquery.metadata.business.Role role)
If called before commit, this sets the default role for all new calculated items created (its Role.COLUMN by default)


printResultItems

protected void printResultItems()

printCalcItems

protected void printCalcItems()

printDataItem

protected void printDataItem(java.lang.String tag,
                             com.sas.iquery.metadata.business.DataItem dataItem)

canRemoveAllCalculatedItems

public boolean canRemoveAllCalculatedItems()
Specified by:
canRemoveAllCalculatedItems in interface CalculatedObjectFactoryInterface
Overrides:
canRemoveAllCalculatedItems in class BaseCalculatedObjectFactory



Copyright © 2009 SAS Institute Inc. All Rights Reserved.