|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
@SASScope(value="ALL") @SubjectToChange 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 | |
|---|---|
abstract DataItem |
getBaseDataItem()
Returns the data item that this object is based upon or null if this object is unresolved. |
abstract boolean |
isAggregationTypeModified()
|
abstract boolean |
isDescriptionModified()
Returns whether the Description has been modified in this object |
abstract boolean |
isDescriptionsModified()
Returns whether the localized Description has been modified in this object |
abstract boolean |
isEquivalentToParent()
Returns the "is equivalent to parent" attribute for this object. |
abstract boolean |
isExtendedAttributesModified()
Returns true if this object's extended attributes will be returned on getExtendedAttriubtes(). |
abstract boolean |
isFormatModified()
Returns whether the format has been modified. |
abstract boolean |
isGroupFormattingModified()
returns true if the formatting action type for grouping has been overridden in this data item reference |
abstract boolean |
isLabelModified()
Returns whether the label has been modified in this object |
abstract boolean |
isLabelsModified()
Returns whether the localized label has been modified in this object |
abstract boolean |
isLookupTypeModified()
Returns whether the Lookup has been modified in this object |
abstract boolean |
isMemberPropertiesModified()
Returns true if this object's Member properties will be returned on getMemberProperties(). |
abstract boolean |
isSortCriteriaModified()
Returns whether the sort criteria has been modified in this object. |
abstract boolean |
isSortDirectionModified()
Returns whether the sort direction has been modified in this object |
abstract boolean |
isSortFormattingModified()
returns true if the formatting action type for sorting has been overridden in this data item reference |
abstract boolean |
isStartingLevelModified()
Deprecated. |
abstract boolean |
isStartingLevelNameModified()
Returns true if this object's starting Level Name will be returned on getStartingLevelName(). |
abstract boolean |
isUsageModified()
Returns whether the usage has been modified in this object. |
abstract void |
resetAggregationType()
Resets the value of the Aggregation type attribute The parent dataitems's AggregationType will be used. |
abstract void |
resetDescription()
Resets the value of the Description attribute The parent dataitems's Description will be used. |
abstract void |
resetDescriptions()
Resets the value of the localized Description attributes The parent dataitems's localized Description will be used. |
abstract void |
resetExtendedAttributes()
Resets the value of the extended attributes The parent dataitems' extended attriubtes will be used. |
abstract void |
resetFormat()
Resets the value of the format attribute The parent dataitems's format will be used. |
abstract 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 |
abstract void |
resetLabel()
Resets the value of the label attribute The parent dataitems's label will be used. |
abstract void |
resetLabels()
Resets the value of the localized label attributes The parent dataitems's label will be used. |
abstract void |
resetLookupType()
Resets the value of the LookupType attribute The parent dataitems's LookupType will be used. |
abstract void |
resetMemberProperties()
Resets the value of Member properties set on this object. |
abstract void |
resetSortCriteria()
Resets the value of the sort criteria attribute The parent dataitems's sort criteria will be used. |
abstract void |
resetSortDirection()
Resets the value of the sort direction attribute The parent dataitems's sort direction will be used. |
abstract 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 |
abstract void |
resetStartingLevel()
Deprecated. |
abstract void |
resetStartingLevelName()
Resets the value of the starting Level Name set on this object. |
abstract void |
resetUsage()
Resets the value of the usage attribute The parent dataitems's usage will be used. |
abstract 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.business.BusinessModelResourceReferencer |
|---|
getResources |
| Methods inherited from interface com.sas.iquery.metadata.business.ExtendedAttributes |
|---|
getExtendedAttributes, setExtendedAttributes |
| 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 |
| Methods inherited from interface com.sas.iquery.metadata.NamedObjectInterface |
|---|
getDescription, getLabel |
| Method Detail |
|---|
@SASScope(value="ALL") @SubjectToChange DataItem getBaseDataItem()
@SASScope(value="ALL") @SubjectToChange 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.
@SASScope(value="ALL") @SubjectToChange 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.
@SASScope(value="ALL")
@SubjectToChange
void resetLabel()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isLabelModified()
@SASScope(value="ALL")
@SubjectToChange
void resetDescription()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isDescriptionModified()
@SASScope(value="ALL")
@SubjectToChange
void resetFormat()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isFormatModified()
@SASScope(value="ALL")
@SubjectToChange
void resetLookupType()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isLookupTypeModified()
@SASScope(value="ALL")
@SubjectToChange
void resetAggregationType()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isAggregationTypeModified()
@SASScope(value="ALL")
@SubjectToChange
void resetSortDirection()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isSortDirectionModified()
@SASScope(value="ALL")
@SubjectToChange
void resetUsage()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isUsageModified()
@SASScope(value="ALL")
@SubjectToChange
void resetSortCriteria()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isSortCriteriaModified()
@SASScope(value="ALL")
@SubjectToChange
void resetExtendedAttributes()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isExtendedAttributesModified()
@SASScope(value="ALL") @SubjectToChange boolean isMemberPropertiesModified()
@SASScope(value="ALL")
@SubjectToChange
void resetMemberProperties()
throws MetadataException
MetadataException - if this operation could not be performedDataItem.setMemberProperties(java.util.List)@SASScope(value="ALL") @SubjectToChange boolean isStartingLevelModified()
@SASScope(value="ALL") @SubjectToChange boolean isStartingLevelNameModified()
@SASScope(value="ALL")
@SubjectToChange
void resetStartingLevel()
throws MetadataException
MetadataException - if this operation could not be performedDataItem.setStartingLevel(com.sas.iquery.metadata.physical.Level)
@SASScope(value="ALL")
@SubjectToChange
void resetStartingLevelName()
throws MetadataException
MetadataException - if this operation could not be performedDataItem.setStartingLevel(com.sas.iquery.metadata.physical.Level)
@SASScope(value="ALL")
@SubjectToChange
void resetLabels()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isLabelsModified()
@SASScope(value="ALL")
@SubjectToChange
void resetDescriptions()
throws MetadataException
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isDescriptionsModified()
@SASScope(value="ALL") @SubjectToChange boolean isGroupFormattingModified()
dataItemReference -
@SASScope(value="ALL")
@SubjectToChange
void resetGroupFormatting()
throws MetadataException
dataItem -
MetadataException@SASScope(value="ALL") @SubjectToChange boolean isSortFormattingModified()
dataItemReference -
@SASScope(value="ALL")
@SubjectToChange
void resetSortFormatting()
throws MetadataException
dataItem -
MetadataException
|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||