|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.AWXML.BaseObject | +--oracle.AWXML.Attribute
A BaseObject
that represents an attribute of a dimension member. An attribute is some quality of a dimension member. For example, a Product dimension might have a color attribute for certain types of products. Attributes are often used to restrict the current set of active dimension members. For a diagram of the associations of the Attribute
class, see Analytic Workspace Java API Object Model.
An Attribute
can have a native OLAP data type or it can have a domain of a dimension. When a dimension is the domain of an attribute, all attribute values are members of the associated dimension. Refer to the OLAP DML Reference for information on the valid data types that are native to OLAP processing within analytic workspaces.
An attribute can have a classification, which supplies it with a predetermined meaning. Classified attributes have specific OLAP data types depending on the classification. The following table lists the Attribute
classifications, the data type of the classification, and a brief description.
Classification |
Data Type |
Description |
|
Numeric |
Position in the default order. |
|
Date |
Last date in a time period. |
|
Numeric |
Number of days in a time period. |
|
Text |
Long description. |
|
Text |
Short description. |
|
Boolean |
Hidden or visible? |
|
--- |
User-defined. |
The Attribute
class implements the DerivedMeasureInput
interface. You can therefore use an Attribute
as am input to calculations that generate derived measures.
In the current release, only Dimension
objects can support attributes. To apply an attribute to an object owned by a dimension, use an AttributeProjection
.
Fields inherited from class oracle.AWXML.BaseObject |
DATABASENULL |
Constructor Summary | |
Attribute(BaseObject input) Creates an Attribute for the specified Dimension . |
Method Summary | |
java.lang.String |
Alter(AWConnection connection) Alters this Attribute in the current analytic workspace. |
java.lang.String |
Create(AWConnection connection) Creates the Attribute in the current analytic workspace of the specified database connection. |
java.lang.String |
Delete(AWConnection connection) Deletes the Attribute in the current analytic workspace of the specified database connection. |
java.lang.String |
getClassification() Gets the classification of the Attribute . |
java.lang.String |
getDataType() Gets the name of the data type of the Attribute . |
Dimension |
getDimensionDomain() Gets the Dimension referenced as the domain for the Attribute . |
boolean |
isDefaultOrder() Indicates whether the Attribute is used to define the default sort order for the dimension. |
boolean |
isMultiLingual() Indicates whether the Attribute has values for more than one language. |
void |
setClassification(java.lang.String input) Specifies the classification of the Attribute . |
void |
setDataType(java.lang.String input) Specifies the data type of the Attribute . |
void |
setDimensionDomain(Dimension input) Assigns the specified Dimension as the domain of the Attribute . |
void |
setIsDefaultOrder(boolean input) Specifies whether to use the Attribute to define the default sort order for the dimension. |
void |
setIsDefaultOrder(java.lang.Boolean input) Specifies whether to use the Attribute to define the default sort order for the dimension. |
void |
setIsMultiLingual(boolean input) Specifies whether the Attribute has values for more than one language. |
void |
setIsMultiLingual(java.lang.Boolean input) Specifies whether the Attribute has values for more than one language. |
java.lang.String |
WriteToXML() Gets an XML representation of the Attribute . |
Methods inherited from class oracle.AWXML.BaseObject |
CreateAfter, CreateBefore, CreateFirst, DataRead, getColumnName, getId, getLongName, getLongName, getName, getOwner, getPluralName, getPluralName, getSchema, getShortName, getShortName, setColumnName, setLongName, setLongName, setName, setPluralName, setPluralName, setSchema, setShortName, setShortName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Attribute(BaseObject input)
Attribute
for the specified Dimension
.input
- The Dimension
that owns the Attribute
.Method Detail |
public void setDimensionDomain(Dimension input)
Dimension
as the domain of the Attribute
. All values of the Attribute
are members of the associated dimension. Attributes defined with a dimension domain perform better than attributes with standard data types when the number of unique attribute values is small compared to the size of the owning dimension.input
- The Dimension
to use as the domain of this Attribute
.public Dimension getDimensionDomain()
Dimension
referenced as the domain for the Attribute
.Dimension
representing the domain of the Attribute
.public void setClassification(java.lang.String input)
Attribute
. The classification system provides predetermined meanings for specific attributes. The attribute classifications are the following:
DEFAULT_ORDER END_DATE TIME_SPAN MEMBER_LONG_DESCRIPTION MEMBER_SHORT_DESCRIPTION MEMBER_VISIBLE USER
To identify an Attribute
that is used by a foreign tool or application for its own purpose, specify a classification of USER
.
input
- The classification that you want the Attribute
to have.public java.lang.String getClassification()
Attribute
.Attribute
classification.public void setDataType(java.lang.String input)
Attribute
.
The data type can be any valid type supported by the OLAP DML.
input
- The data type of the Attribute
.public java.lang.String getDataType()
Attribute
.Attribute
.public java.lang.String WriteToXML()
Attribute
.String
that represents the Attribute
.public boolean isDefaultOrder()
Attribute
is used to define the default sort order for the dimension.True
if the attribute defines the default sort order for the dimension, otherwise False
.public void setIsDefaultOrder(boolean input)
Attribute
to define the default sort order for the dimension. By default, an Attribute
does not define the default sort order.input
- The boolean
true
if you want the Attribute
to define the default sort order for the dimension, or false
otherwise.public void setIsDefaultOrder(java.lang.Boolean input)
Attribute
to define the default sort order for the dimension. By default, an Attribute
does not define the default sort order.input
- A Boolean
that contains true
if you want the Attribute
to define the default sort order for the dimension, or false
otherwise.public java.lang.String Create(AWConnection connection)
Attribute
in the current analytic workspace of the specified database connection.connection
- The AWConnection
that represents the database connection.String
that contains success
.public java.lang.String Alter(AWConnection connection)
Attribute
in the current analytic workspace.connection
- The AWConnection
that specifies the database connection.String
that contains success
.public java.lang.String Delete(AWConnection connection)
Attribute
in the current analytic workspace of the specified database connection.connection
- The AWConnection
that represents the database connection.String
that contains success
.public void setIsMultiLingual(java.lang.Boolean input)
Attribute
has values for more than one language.input
- A Boolean
that indicates whether the Attribute
has values for more than one language.public void setIsMultiLingual(boolean input)
Attribute
has values for more than one language.input
- A boolean
that indicates whether the Attribute
has values for more than one language.public boolean isMultiLingual()
Attribute
has values for more than one language.boolean
that is true
if the Attribute
has values for more than one language or false
otherwise.
|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |