|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataItem
Provides support for the mapping of physical data to a single unit of business data. It adds the ability to add things like formatting and ordering to the mapped business data. It provides the ability to leverage expressions in calculated data items. A data item represents the smallest unit of metadata set on a business query for which data is to be returned when a query is run.
DataItem objects have a core definition and a set of attributes that complement or add to that core definition to complete the data item's definition. The data item's expression is its core definition. A data item's expression can be based on other data items or on physical resources. Any resources used directly or indirectly in a data item's expression, must be based upon data sources defined in the data item's business model chain. For example, if a Column is used in a data item's expression, the column's table must be used in a DataSourceTable definition somewhere in the data item's business model chain. If an expression of Measures is used in a data item's expression, the Cube that those measures are from must be in a DataSourceCube definition somewhere in the data item's business model chain.
One can get the list of available functions and operators to be used in composing an expression for use on DataItem or FilterItem objects by using a ServerProperties object. The server properties can be obtained from the business model the data item is contained in. The specific set of functions, operators, etc. that are available from the server properties is based on the type of server being used to access the data source(s) defined in the business model chain.
Currently, both relational and OLAP data items directly use this class ... there is
no subtypes for those types of data items. When necessary, one can tell which type
of data item one has by calling getStructure()
.
Because the DataItem class is used for all relational and OLAP types of data items which do not have all the same types of capabilities/functionality, a set of "actions" (the class DataItemActionType) are defined which a data item can perform. Each type of action is associated with a setter/mutating method on the DataItem class.
Whether one is allowed to perform an action
(call the method) is mainly determined by the expression or the resources used by
the expression that has been set
on the data item (for example, a ResourceAwareStringExpression based on a column, dimension, measure, etc.).
When the setExpression method is called, it's set of supported actions is reset
based upon its new expression.
The list of supported actions for a data item can also be changed by denying the ability to
perform an action via the setActionSupported()
method.
This prevents the data item and all DataItemReference objects built on the data item
from performing that action.
Metadata other than an expression are used on a data item to provide further functionality beyond the expression capabilities. For example,
java.sql.ResultSetMetaData.getColumnLabel(int)
).
A ResultSet ID is an ID that one can set on a data item and when the data item is used as a non-hidden result item in a business query, the resultset ID for that data item is available indirectly from the resultset.
Currently resultset IDs are only returned for relational JDBC resultsets via the java.sql.ResultSetMetaData.getColumnName() method. They are currently not returned for OLAP resultsets.
ResultSet IDs are different from the ID that the base class BusinessModelObject provides. See the BusinessModelObject interface for information on uniquely identifying a data item or any other object that extends BusinessModelObject.
com.sas.iquery.metadata.expr.ExpressionTypes
class.
In a nutshell, a data item's expression type (or object having an expression type) governs how it can be used within an expression.
Functions and Operators available from the ServerProperties object that are useful in creating arbitrarily complex expressions, are defined to have an allowed set of function signatures based on certain parameter types and returning a certain type. These types are based on SAS Query Services' expression types -- the coarse described types above. So, for example, the function MEAN is defined to have 4 signatures: each one having one parameter of one of the following types: NUMERIC, DATE, TIME, and TIMESTAMP. Because SAS Query Services uses more coarse expression types there are fewer defined allowable signatures for the functions and operators given by the server properties. One can get their hands on a ServerProperties object by using the BusinessModel.getServerProperties() method. One can also get their hands on a specific function by using the ServerProperties.getFunctionByNameID() method.
If you want to create a data item based on a previously defined data item to use with different attributes (format, etc.) one should create a data item reference based on the previously defined data item. If you want to create a brand new data item based on a new expression that you are creating, you should create a custom data item.
It is important to note that the getter methods on the DataItem interface return the most overridden value for an attribute when called on a DataItemReference object. For example, suppose an information map has a custom data item SALARY with a format of BEST. set on it. Also suppose that a data selection is created based on that information map with a DataItemReference A' based on the data item A. If the format for A' has not been set, the format (BEST.) from A is returned by the getFormat() method when called on A'. If the format has been set on A' to BEST5., then the getFormat method will return BEST5..
Likewise, the individual attributes on a DataItemReference object are overridden by the setter methods provided on the DataItem interface. The testing and clearing of the override of the individual attributes are provided by the methods on the DataItemReference that are of the form: isXXXXXModified() and resetXXXXX().
For example, if a data item is created that has its expression defined to be a column from a table, without any other attributes set the data item's expression type is the column's expression type (e.g ExpressionTypes.CHARACTER if the column is the same). But setting the data item's aggregation type to a Function that returns the ExpressionType.NUMERIC and now the data item's expression type is numeric.
This changing of a data item's personality by setting its attributes can be tricky. For example, suppose you create a filter (FilterItem) that uses a data item (DI) in it's expression. Say it abstractly looks something like:
DI = "TUESDAY"Prior to creating the filter's expression, the data item was defined to be a column in a table describing the weekday -- a character expression type. If that data item's definition is changed to aggregate on the data item (say using the COUNT function return the number of occurences of the data item's value in each row) the data item becomes an aggregated numeric expression type and the filter expression is no longer valid (comparing numerics to characters).
The data item attributes when changed that may cause a change in a data item's personality and therefore potentially causing other filter and data item modeling based on the data item to become invalid are:
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).
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_MEMBER_LEVEL_NAME
Constant for surfacing the level of the default member of a specific hierarchy. |
static java.lang.String |
EVENT_DATA_ITEM_AGGREGATION_TYPE_CHANGED
Indication that the data item's aggregation type has changed. |
static java.lang.String |
EVENT_DATA_ITEM_AGGREGATION_TYPES_SUPPORTED_CHANGED
Indication that the data item's aggregation type that are supported are changed. |
static java.lang.String |
EVENT_DATA_ITEM_EXPRESSION_CHANGED
An event indicating that the DataItem's expression has been set. |
static java.lang.String |
EVENT_DATA_ITEM_EXTENDED_TYPE_CHANGED
Indication that the data item's extended types have changed. |
static java.lang.String |
EVENT_DATA_ITEM_FORMAT_CHANGED
Indication that the data item's format has changed. |
static java.lang.String |
EVENT_DATA_ITEM_GROUP_FORMATTING_CHANGED
Indication that the data item's group formatting has changed. |
static java.lang.String |
EVENT_DATA_ITEM_MEMBER_PROPERTIES_CHANGED
Indication that the data item's member properties are changed. |
static java.lang.String |
EVENT_DATA_ITEM_SORT_CRITERIA_CHANGED
Indication that the data item's sort criteria has changed. |
static java.lang.String |
EVENT_DATA_ITEM_SORT_DIRECTION_CHANGED
Indication that the data item's sort direction has changed. |
static java.lang.String |
EVENT_DATA_ITEM_SORT_FORMATTING_CHANGED
Indication that the data item's sort formatting has changed. |
static java.lang.String |
EVENT_DATA_ITEM_STARTING_LEVEL_CHANGED
Indication that the data item's starting level are changed. |
static java.lang.String |
EVENT_DATA_ITEM_STARTING_LEVEL_NAME_CHANGED
Indication that the data item's starting level are changed. |
static java.lang.String |
EVENT_DATA_ITEM_STEPS_CHANGED
Indication that the data item's step definition have changed. |
static java.lang.String |
EVENT_DATA_ITEM_SUPPORTED_ACTIONS_CHANGED
Indication that the data item's supported actions have changed. |
static java.lang.String |
EVENT_DATA_ITEM_USAGE_CHANGED
Indication that the data item's usage has changed. |
static java.lang.String |
EVENT_DATA_LOOKUP_TYPE_CHANGED
Indication that the data item's lookup type has changed. |
static java.lang.String |
EVENT_FORMATTING_FORCED_CHANGED
Indication that the data item's forced formatting has been turned off or on. |
static java.lang.String |
EVENT_RESULT_SET_ID_CHANGED
Indication that the data item's result set id has changed. |
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 | |
---|---|
void |
addStep(StepInterface step)
This method adds a Step to the ordered list of Steps. |
Function |
getAggregationType()
Returns the aggregating function to use when aggregating on this DataItem This functions must come from the server properties for the InformationMap. |
ExpressionInterface |
getExpression()
Returns the expression describing what the DataItem's value is composed of. |
java.lang.String |
getFormat()
Returns the format that is used when formatting the data values for this data item. |
DataItemActionType |
getGroupFormatting()
returns the formatting action type to use for grouping |
Lookup |
getLookupType()
Returns the lookup type for this data item. |
java.util.List |
getMemberProperties()
Returns the list of Member properties set on this DataItem. |
java.util.List |
getReasonsLabelNotValid(java.lang.String label)
Determines if the specified label is usable. |
java.lang.String |
getResultSetID()
Returns the ID that may be referred to in the resultset metadata for this data item. |
java.util.List |
getSortCriteria()
This method will get a list that contains what elements will be used to sort on. |
DataItemActionType |
getSortDirection()
This method returns the DataItemActionType that describes the type of sorting that will be applied to this DataItem. |
DataItemActionType |
getSortFormatting()
returns the formatting action type to use for sorting |
com.sas.iquery.metadata.physical.Level |
getStartingLevel()
Deprecated. |
java.lang.String |
getStartingLevelName()
Returns the starting Level name that was set on this DataItem. |
StepInterface |
getStep(int stepNumber)
This method returns an ordered list of Steps. |
java.util.List |
getSteps()
This method returns an ordered list of Steps set on this object. |
java.util.List |
getSteps(boolean includeBaseDataItems)
This method returns an ordered list of Steps for this data item and, if the input argument is true, any data items this data item is based upon. |
StructureOfDataItem |
getStructure()
Returns an object giving the structure of this DataItem |
java.util.List |
getSupportedActionsList()
Returns a List of supported actions for this DataItem. |
java.util.List |
getSupportedAggregationTypesList()
Returns a List of supported aggregation Functions for this DataItem. |
DataItemActionType |
getUsage()
Returns the default way this DataItem is to be used. |
java.util.List |
getValidActions()
Returns a List of ( DataItemActionType ) elements. |
java.util.List |
getValidAggregationTypes()
Returns the list of functions one can easily apply to this DataItem for aggregation purposes. |
boolean |
hasSteps()
This method returns whether there is any steps to this dataItem. |
boolean |
isActionSupported(DataItemActionType actionType)
Returns whether or not the specified DataItemActionType is currenly supported by the DataItem. |
boolean |
isAggregationTypeSupported(Function aggregationType)
Returns whether a particular aggregationType is supported. |
boolean |
isCalculatedItem()
This method indicates whether the DataItem can be described as a calculated item. |
boolean |
isValidFormat(java.lang.String format)
This method indicates whether the specified format can be used with this data item. |
void |
removeStep(int stepNumber)
This method removes a Step to the ordered list of Steps. |
void |
setActionSupported(DataItemActionType actionType,
boolean actionSupported)
Sets whether or not the specified DataItemActionType is supported for this DataItem. |
void |
setAggregationType(Function aggregationType)
Sets the aggregation function to use when aggregating on this DataItem. |
void |
setAggregationTypeSupported(Function aggregationType,
boolean aggregationTypeSupported)
Sets whether a particular aggregation Function is supported. |
void |
setExpression(ExpressionInterface expression)
Deprecated. use RootDataItem.setExpression(ExpressionInterface) |
void |
setFormat(java.lang.String format)
Sets the type of Format to be used when formatting the data associated with this data item. |
void |
setGroupFormatting(DataItemActionType groupFormatting)
sets the formatting action type to use for grouping |
void |
setLabel(java.lang.String label)
Sets the label for this object. |
void |
setLookupType(Lookup lookupType)
Set the lookup type for this data item. |
void |
setMemberProperties(java.util.List properties)
Sets the list of Member properties on this DataItem. |
void |
setResultSetID(java.lang.String resultSetID)
Sets the resultset ID for this data item. |
void |
setSortCriteria(java.util.List sortCriteria)
This method will set a list that contains what elements will be used to sort on. |
void |
setSortDirection(DataItemActionType sortDirection)
This method defines the DataItemActionType that describes the type of sorting that will be applied to this DataItem. |
void |
setSortFormatting(DataItemActionType sortFormatting)
sets the formatting action type to use for sorting |
void |
setStartingLevel(com.sas.iquery.metadata.physical.Level level)
Deprecated. |
void |
setStartingLevelName(java.lang.String levelName)
Sets the starting Level name on this DataItem. |
void |
setSteps(java.util.List steps)
This method sets an ordered list of Steps. |
void |
setUsage(DataItemActionType usage)
Sets the way this DataItem is to be used. |
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 |
Field Detail |
---|
static final java.lang.String EVENT_DATA_ITEM_SUPPORTED_ACTIONS_CHANGED
static final java.lang.String EVENT_DATA_ITEM_AGGREGATION_TYPE_CHANGED
static final java.lang.String EVENT_DATA_ITEM_AGGREGATION_TYPES_SUPPORTED_CHANGED
static final java.lang.String EVENT_DATA_ITEM_EXTENDED_TYPE_CHANGED
static final java.lang.String EVENT_DATA_ITEM_EXPRESSION_CHANGED
static final java.lang.String EVENT_DATA_ITEM_FORMAT_CHANGED
static final java.lang.String EVENT_DATA_ITEM_SORT_CRITERIA_CHANGED
static final java.lang.String EVENT_DATA_ITEM_SORT_DIRECTION_CHANGED
static final java.lang.String EVENT_DATA_ITEM_SORT_FORMATTING_CHANGED
static final java.lang.String EVENT_DATA_ITEM_GROUP_FORMATTING_CHANGED
static final java.lang.String EVENT_DATA_ITEM_STEPS_CHANGED
static final java.lang.String EVENT_DATA_ITEM_USAGE_CHANGED
static final java.lang.String EVENT_DATA_LOOKUP_TYPE_CHANGED
static final java.lang.String EVENT_RESULT_SET_ID_CHANGED
static final java.lang.String EVENT_FORMATTING_FORCED_CHANGED
static final java.lang.String EVENT_DATA_ITEM_MEMBER_PROPERTIES_CHANGED
static final java.lang.String EVENT_DATA_ITEM_STARTING_LEVEL_CHANGED
static final java.lang.String EVENT_DATA_ITEM_STARTING_LEVEL_NAME_CHANGED
static final java.lang.String DEFAULT_MEMBER_LEVEL_NAME
Method Detail |
---|
java.util.List getValidActions()
DataItemActionType
) elements. This list contains all
all the Action Types that could be valid for this DataItem.
If an Action does not appear in this list
then the consumer does not have the option of controlling this Action.
java.util.List getSupportedActionsList()
boolean isActionSupported(DataItemActionType actionType)
actionType
- The type of DataItem Action that is being queried.
void setActionSupported(DataItemActionType actionType, boolean actionSupported) throws MetadataException
getValidActionTypes
method can be enabled.
Property change events signalled:
actionType
- The type of DataItem Action to enable or disableactionSupported
- A boolean indicating whether to enable or disable the DataItem Action
MetadataException
- when trying to set an action to be supported when not in the valid list of supported actionsDataItemActionType getSortDirection()
setSortDirection(com.sas.iquery.metadata.business.DataItemActionType)
void setSortDirection(DataItemActionType sortDirection) throws MetadataException
"Order" will arranges members of a specified set, optionally preserving or breaking the hierarchy. There are two varieties of Order: hierarchized (ASC or DESC) and nonhierarchized (BASC or BDESC, where B stands for Break hierarchy). The hierarchized ordering first arranges members according to their position in the hierarchy. Then it orders each level. The nonhierarchized ordering arranges members in the set without regard to the hierarchy.
Valid sortDirection arguments are:
To define a sucessful sort, both a sort direction and a sort criteria must be specified.
Property change events signalled:
sortDirection
- the type of sorting that will be applied to this DataItem.
MetadataException
- when the action is not supportedgetSortDirection()
void setSortCriteria(java.util.List sortCriteria) throws MetadataException
Note: There is no validation that occurs on the items defined in the sort criteria list. This list can contain any member or measure.
Property change events signalled:
sortCriteria
- List of string values that contain measure and members (defined as String[])
MetadataException
- when the action is not supportedsetSortDirection(com.sas.iquery.metadata.business.DataItemActionType)
java.util.List getSortCriteria()
DataItemActionType getUsage()
void setUsage(DataItemActionType usage) throws MetadataException
Property change events signalled:
usage
- the way this DataItem is to be used
MetadataException
- when the action is not supportedFunction getAggregationType()
void setAggregationType(Function aggregationType) throws MetadataException
Property change events signalled:
aggregationType
- a com.sas.iquery.metadata.serverprop.Function object giving the
default aggregation function to use when aggregating on this DataItem or null if none
MetadataException
- when the aggregation type is not supportedjava.util.List getValidAggregationTypes()
void setMemberProperties(java.util.List properties) throws MetadataException
Property change events signalled:
properties
- a list of String property names
MetadataException
- when setting of Member properties is not supported on this DataItem.java.util.List getMemberProperties() throws MetadataException
MetadataException
- if the list of member properties could not be determined.void setStartingLevel(com.sas.iquery.metadata.physical.Level level) throws MetadataException
Property change events signalled:
level
- the starting Level
MetadataException
- when setting of the starting Level is not supported on this DataItem.void setStartingLevelName(java.lang.String levelName) throws MetadataException
Property change events signalled:
level
- the starting Level
MetadataException
- when setting of the starting Level is not supported on this DataItem.com.sas.iquery.metadata.physical.Level getStartingLevel() throws MetadataException
MetadataException
- if the starting Level could not be determined.java.lang.String getStartingLevelName() throws MetadataException
MetadataException
- if the starting Level could not be determined.java.util.List getSupportedAggregationTypesList()
void setAggregationTypeSupported(Function aggregationType, boolean aggregationTypeSupported) throws MetadataException
Property change events signalled:
aggregationType
- The type of aggregation Function to enable or disable.
MetadataException
boolean isAggregationTypeSupported(Function aggregationType)
aggregationType
- a boolean indicating whether a particular aggregationType is supportedvoid addStep(StepInterface step) throws MetadataException
Property change events signalled:
step
- The step to be added to the StepManager
MetadataException
- when a step is not supported.StepInterface getStep(int stepNumber)
boolean hasSteps()
java.util.List getSteps()
java.util.List getSteps(boolean includeBaseDataItems)
void setSteps(java.util.List steps) throws MetadataException
Property change events signalled:
MetadataException
- when a step is not supported.void removeStep(int stepNumber)
Property change events signalled:
void setExpression(ExpressionInterface expression) throws MetadataException
RootDataItem.setExpression(ExpressionInterface)
Property change events signalled:
expression
- the part of the DataItem that describes where its value is to come from
MetadataException
- if an invalid object is set on the DataItem's expression
MetadataNotChangeableException
- if this object is read-onlyExpressionInterface getExpression()
StructureOfDataItem getStructure()
java.lang.String getFormat()
Values of null and Strings consisting of 0 or more blanks are considered equivalent and if set as a format on a DataItem object causes the data item to have "no format" set on it.
For non-DataItemReference objects, this method returns what was last set by the setFormat() call on this object. For the more look-through oriented DataItemReference object, this method (like all look-through methods on DataItemReference) returns the most recently modified value (could be null or any of the values associated with "no format") looking from the object up its parentage chain of data items.
void setFormat(java.lang.String format) throws MetadataException
Property change events signalled:
format
- the type of Format to be used when formatting the data
MetadataNotChangeableException
- if this object is read-only
MetadataException
- if the DataItemActionType.OTHER_FORMAT is not supported.boolean isValidFormat(java.lang.String format)
format
- the type of format to be used when formatting the data.
void setLookupType(Lookup lookupType) throws MetadataException
Property change events signalled:
lookupType
- the part of the DataItem that describes how the possible filter values list is populated.
java.lang.IllegalArgumentException
- if the specified value is null. Use LookupNotAllowed to specify no lookup values.
MetadataException
- if the DataItemActionType.OTHER_LOOKUP is not supported.Lookup getLookupType()
boolean isCalculatedItem()
java.lang.String getResultSetID()
This ID is initially set to a unique value within the business model this object is created in. That means that if you use data items in a business query that are all from the same business model (for example, the data items are all data item references created within the same data selection) then the resultset IDs for all the data items used as result items will be unique. But if you use data items as result items from a mixture of business models (for example, by not creating data item references to those data items) then it is possible to create an invalid query because the default unique resultset ids are not unique across business models -- only within a business model.
See setResultSetID
for uniqueness and characterset requirements for these IDs.
setResultSetID(java.lang.String)
void setResultSetID(java.lang.String resultSetID) throws MetadataException
It is not possible to conclusively determine the allowed characterset for resultset IDs. Therefore, it is recommended that users stay within the confines of a small characterset for constructing resultset ids such as ("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_") when possible. Invalid resultset ID values set on data items and used in data selections cause server errors when the data selection is run.
With that said, this method uses the following logic for doing basic validation of a resultset id. Resultset IDs can be any unicode character other than single or double quotes or ISO control or whitespace characters as defined by the Character.isISOControl() or Character.isWhitespace(). Resultset IDs must be case-insensitively unique within the set of result items used within a business query, otherwise the business query will be considered "not valid" and will not be runnable by SAS Query Services. Valid resultset IDs have a size between 1 and 32 characters in length.
resultSetID
- the value to use as a resultset ID for this data item.
java.lang.IllegalArgumentException
- if an invalid argument is given.
MetadataException
- if this operation could not be performedgetResultSetID()
void setLabel(java.lang.String label) throws MetadataException
Property change events signalled:
setLabel
in interface ModelItemWithIdentity
label
- the string to use as the label. Specifying null is allowed.
MetadataNotChangeableException
- if this BusinessModelObject is read-only
MetadataException
- if the label is not valid or server properties not availablejava.util.List getReasonsLabelNotValid(java.lang.String label) throws MetadataException
label
- the data item label to be verified.
MetadataException
- if the server properties for the specified data item is not defined.void setGroupFormatting(DataItemActionType groupFormatting) throws MetadataException
dataItem
- formattingActionType
- (GROUP_BY_DEFAULT_BEHAVIOR, GROUP_BY_FORMATTED_VALUES, or GROUP_BY_UNFORMATTED_VALUES)
MetadataException
java.lang.IllegalArgumentException
DataItemActionType getGroupFormatting() throws MetadataException
dataItem
-
MetadataException
void setSortFormatting(DataItemActionType sortFormatting) throws MetadataException
dataItem
- formattingActionType
- (SORT_BY_DEFAULT_BEHAVIOR, SORT_BY_FORMATTED_VALUES, or SORT_BY_UNFORMATTED_VALUES
MetadataException
java.lang.IllegalArgumentException
DataItemActionType getSortFormatting() throws MetadataException
dataItem
-
MetadataException
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |