|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataItemReference
Specifies a reference to a DataItem object along with some set of overridden attributes of the base data item. The base data item which can be a custom data item or another DataItemReference. Objects of this class allow for overriding the functionality of certain attributes of data items and is useful when creating queries that need tweaks to the data items.
For each data item attribute that is available to be overriden by an object of this type, two methods exist in this interface two manage the overridden attribute -- one for testing to see if its been overridden in this object and one to reset the override thereby causing further calls to the associated getter method to return the base data item's attribute value. And, as expected, the getter & setter methods provided by the DataItem interface should be used for getting & setting an overridable attribute.
In general, most attributes of a data item are overridable. The main attribute that is not overidable is a data item's expression -- it's core definition.
Unless otherwise noted, all getter/setter method pairs do not copy their outputs or inputs, respectively. That is, if one calls the setter method and immediately calls the getter method for that same attribute, the object that was just given on the setter method will be returned by the getter. The only general exception to this rule, which is not documented further on the getter/setter methods, is when the output or input is a List, in which case the List is copied but the contents of the list are not copied. (A shallow copy of the List is made in both the setter and getter methods).
See the javadoc in the DataItem class for further differences between DataItem and DataItemReference.
Field Summary |
---|
Fields inherited from interface com.sas.iquery.metadata.business.ModelItemWithIdentity |
---|
EVENT_DESCRIPTION_CHANGED, EVENT_HIDDEN_CHANGED, EVENT_ID_CHANGED, EVENT_LABEL_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 |
Fields inherited from interface com.sas.iquery.metadata.business.LocalizableModelObject |
---|
EVENT_LOCALIZABLE_DESCRIPTIONS_CHANGED, EVENT_LOCALIZABLE_LABELS_CHANGED |
Method Summary | |
---|---|
DataItem |
getBaseDataItem()
Returns the data item that this object is based upon or null if this object is unresolved. |
boolean |
isAggregationTypeModified()
|
boolean |
isDescriptionModified()
Returns whether the Description has been modified in this object |
boolean |
isDescriptionsModified()
Returns whether the localized Description has been modified in this object |
boolean |
isEquivalentToParent()
Returns the "is equivalent to parent" attribute for this object. |
boolean |
isExtendedAttributesModified()
Returns true if this object's extended attributes will be returned on getExtendedAttriubtes(). |
boolean |
isFormatModified()
Returns whether the format has been modified. |
boolean |
isGroupFormattingModified()
returns true if the formatting action type for grouping has been overridden in this data item reference |
boolean |
isLabelModified()
Returns whether the label has been modified in this object |
boolean |
isLabelsModified()
Returns whether the localized label has been modified in this object |
boolean |
isLookupTypeModified()
Returns whether the Lookup has been modified in this object |
boolean |
isMemberPropertiesModified()
Returns true if this object's Member properties will be returned on getMemberProperties(). |
boolean |
isSortCriteriaModified()
Returns whether the sort criteria has been modified in this object. |
boolean |
isSortDirectionModified()
Returns whether the sort direction has been modified in this object |
boolean |
isSortFormattingModified()
returns true if the formatting action type for sorting has been overridden in this data item reference |
boolean |
isStartingLevelModified()
Deprecated. |
boolean |
isStartingLevelNameModified()
Returns true if this object's starting Level Name will be returned on getStartingLevelName(). |
boolean |
isUsageModified()
Returns whether the usage has been modified in this object. |
void |
resetAggregationType()
Resets the value of the Aggregation type attribute The parent dataitems's AggregationType will be used. |
void |
resetDescription()
Resets the value of the Description attribute The parent dataitems's Description will be used. |
void |
resetDescriptions()
Resets the value of the localized Description attributes The parent dataitems's localized Description will be used. |
void |
resetExtendedAttributes()
Resets the value of the extended attributes The parent dataitems' extended attriubtes will be used. |
void |
resetFormat()
Resets the value of the format attribute The parent dataitems's format will be used. |
void |
resetGroupFormatting()
clears any formatting action type for grouping set on this data item reference or if it is a data item it will remove the value entirely |
void |
resetLabel()
Resets the value of the label attribute The parent dataitems's label will be used. |
void |
resetLabels()
Resets the value of the localized label attributes The parent dataitems's label will be used. |
void |
resetLookupType()
Resets the value of the LookupType attribute The parent dataitems's LookupType will be used. |
void |
resetMemberProperties()
Resets the value of Member properties set on this object. |
void |
resetSortCriteria()
Resets the value of the sort criteria attribute The parent dataitems's sort criteria will be used. |
void |
resetSortDirection()
Resets the value of the sort direction attribute The parent dataitems's sort direction will be used. |
void |
resetSortFormatting()
clears any formatting action type for sorting set on this data item reference or if it is a data item it will remove the value entirely |
void |
resetStartingLevel()
Deprecated. |
void |
resetStartingLevelName()
Resets the value of the starting Level Name set on this object. |
void |
resetUsage()
Resets the value of the usage attribute The parent dataitems's usage will be used. |
void |
setIsEquivalentToParent(boolean equiv)
Sets the "is equivalent to parent" attribute for this object. |
Methods inherited from interface com.sas.iquery.metadata.expr.DataItemContainerExpression |
---|
containsUserTypedAggregation, getLeafDataItems |
Methods inherited from interface com.sas.iquery.metadata.expr.ExpressionInterface |
---|
getExpressionType |
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelObject |
---|
getBusinessModel, isContainedInBusinessModel, isIDOK, isReadOnly |
Methods inherited from interface com.sas.iquery.metadata.business.ModelItemWithIdentity |
---|
getID, getIdentityString, getIntraModelID, isHidden, isUnresolved, setDescription, setIntraModelID, setIsHidden |
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.BusinessModelResource |
---|
isUnresolved |
Methods inherited from interface com.sas.iquery.metadata.NamedObjectInterface |
---|
getDescription, getLabel |
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer |
---|
getResources |
Methods inherited from interface com.sas.iquery.metadata.business.LocalizableModelObject |
---|
getLocalizableProperties, getLocalizationPrependKey, setDescription, setDescriptions, setLabel, setLabels, setLocalizableProperties |
Methods inherited from interface com.sas.iquery.metadata.LocalizableNamedObjectInterface |
---|
getDescription, getDescriptions, getLabel, getLabels |
Method Detail |
---|
DataItem getBaseDataItem()
boolean isEquivalentToParent()
The value of this attribute is used in only a few select cases within the business model and is not a general "equivalence" feature between data item references and their parents. This attribute is currently only used in the following scenarios:
Newly created DataItemReference objects default to have this attributes set to "true". It is legal for multiple DataItemReference objects to be created based off the same data item object and to have this "equivalence" attribute set. Algorithms that consume this attribute will consider those objects to be equivalent to one another.
void setIsEquivalentToParent(boolean equiv)
The value of this attribute is used in only a few select cases within the business model and is not a general "equivalence" feature between data item references and their parents.
See the isEquivalentToParent()
method for scenarios of when this
attribute is used.
void resetLabel() throws MetadataException
MetadataException
boolean isLabelModified()
void resetDescription() throws MetadataException
MetadataException
boolean isDescriptionModified()
void resetFormat() throws MetadataException
MetadataException
boolean isFormatModified()
void resetLookupType() throws MetadataException
MetadataException
boolean isLookupTypeModified()
void resetAggregationType() throws MetadataException
MetadataException
boolean isAggregationTypeModified()
void resetSortDirection() throws MetadataException
MetadataException
boolean isSortDirectionModified()
void resetUsage() throws MetadataException
MetadataException
boolean isUsageModified()
void resetSortCriteria() throws MetadataException
MetadataException
boolean isSortCriteriaModified()
void resetExtendedAttributes() throws MetadataException
MetadataException
boolean isExtendedAttributesModified()
boolean isMemberPropertiesModified()
void resetMemberProperties() throws MetadataException
MetadataException
- if this operation could not be performedDataItem.setMemberProperties(java.util.List)
boolean isStartingLevelModified()
boolean isStartingLevelNameModified()
void resetStartingLevel() throws MetadataException
MetadataException
- if this operation could not be performedDataItem.setStartingLevel(com.sas.iquery.metadata.physical.Level)
void resetStartingLevelName() throws MetadataException
MetadataException
- if this operation could not be performedDataItem.setStartingLevel(com.sas.iquery.metadata.physical.Level)
void resetLabels() throws MetadataException
MetadataException
boolean isLabelsModified()
void resetDescriptions() throws MetadataException
MetadataException
boolean isDescriptionsModified()
boolean isGroupFormattingModified()
dataItemReference
-
void resetGroupFormatting() throws MetadataException
dataItem
-
MetadataException
boolean isSortFormattingModified()
dataItemReference
-
void resetSortFormatting() throws MetadataException
dataItem
-
MetadataException
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |