public class QDRMember extends java.lang.Object implements VectorClone, oracle.dss.util.persistence.XMLizable, java.io.Serializable
QDR.
A QDRMember specifies the members of a dimension to consider.
There are four different types of QDRMember objects:
QDR uses a QDRMember that has
type VARIES.
Also, varied members are used in ranking reports.
| Modifier and Type | Field and Description |
|---|---|
static int |
AGG
Member type: an aggregate member
|
static int |
CURRENT
Member type: The current Time period.
|
static int |
FIXED
Member type: The dimension member is a single, fixed member, such as
"PARIS".
|
static int |
LIST
Member type: A list of dimension members.
|
protected java.lang.Object |
m_data |
protected int |
m_intType |
static int |
TOTAL
Member type: a total member.
|
static int |
VARIES
Member type: The dimension member varies.
|
protected static java.lang.String |
XML_AGG |
protected static java.lang.String |
XML_CURRENT |
static java.lang.String |
XML_LIST_NAME |
static java.lang.String |
XML_NAME |
static java.lang.String |
XML_NAME_NEW |
protected static java.lang.String |
XML_TOTAL |
protected static java.lang.String |
XML_VARIES |
| Constructor and Description |
|---|
QDRMember()
Default constructor.
|
QDRMember(int type)
Constructor that specifies a member type.
|
QDRMember(int type,
java.lang.Object data)
Constructor that specifies the type and the member or members that this
QDRMember represents. |
QDRMember(java.lang.String dimMember)
Constructor that specifies the name of dimension member.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of this
QDRMember object. |
boolean |
contains(QDRMember qdrMember)
Indicates whether this
QDRMember contains the specified
QDRMember. |
protected boolean |
contains(java.util.Vector vector1,
java.util.Vector vector2) |
protected java.lang.String |
convertTypeIntToString(int type) |
protected int |
convertTypeStringToInt(java.lang.String strType) |
boolean |
equals(java.lang.Object obj)
Specifies whether this
QDRMember is equivalent to the
specified Object. |
boolean |
equals(QDRMember qdrMember)
Specifies whether this
QDRMember is equivalent to the
specified QDRMember. |
java.util.Vector |
getAllDependentIDs(java.lang.String measDim,
NameConverter nc) |
java.lang.Object |
getData()
Retrieves the dimension member or members that this
QDRMember represents. |
java.lang.String |
getStateString(MemberContext memberContext) |
java.lang.String |
getTagName()
Retrieves the name that is used to represent this object in XML.
|
int |
getType()
Retrieves the type of this
QDRMember object. |
java.lang.Object |
getXML(oracle.dss.util.persistence.XMLContext context)
Returns the XML representation of the object.
|
int |
hashCode() |
void |
setData(java.lang.Object newData)
Specifies the dimension member or members that this
QDRMember object represents, when the member type of this
QDRMember object is
FIXED or LIST. |
void |
setType(int type)
Specifies the type of this
QDRMember object. |
void |
setXML(oracle.dss.util.persistence.XMLContext context,
java.lang.Object node)
Sets the XML representation of the object.
|
java.lang.String |
toString()
Generates the string representation of this
QDRMember. |
public static final int FIXED
public static final int VARIES
| June | July | ||
| Tokyo | |||
| Internet phones | 2314 | 2978 | |
| PDAs | 1834 | 2411 | |
| Pagers | 817 | 699 | |
| Chicago | |||
| Pagers | 5004 | 3917 | |
| Cell phones | 3956 | 4057 | |
| PDAs | 2887 | 3422 | |
The Product dimension is set to the top three products based on Sales,
in June, by Direct channel, in the current city.
Here, the QDRMember for the Geography varies, so that
a different selection of products can appear for each Geography member
in the crosstab.
public static final int CURRENT
public static final int LIST
public static final int TOTAL
public static final int AGG
protected static final java.lang.String XML_VARIES
protected static final java.lang.String XML_CURRENT
protected static final java.lang.String XML_TOTAL
protected static final java.lang.String XML_AGG
protected int m_intType
protected java.lang.Object m_data
@Concealed public static final java.lang.String XML_NAME
QDRMember that has any
type except LIST.@Concealed public static final java.lang.String XML_NAME_NEW
@Concealed public static final java.lang.String XML_LIST_NAME
QDRMember that has the
LIST type.public QDRMember()
QDRMember.public QDRMember(int type)
public QDRMember(java.lang.String dimMember)
QDRMember.FIXED.dimMember - The name of the dimension member that this
QDRMember represents.FIXEDpublic QDRMember(int type,
java.lang.Object data)
QDRMember represents.type - A constant that represents the type of data
that this QDRMember object represents.
The valid constants are listed in the See Also section.data - The dimension member or members that this
QDRMember represents.
If type is FIXED, then
data should be a String that
identifies the dimension member.
If type is LIST, then
data should be a Vector of
strings that identify the dimension members.FIXED,
VARIES,
CURRENT,
LISTpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
QDRMember object.clone in interface VectorCloneclone in class java.lang.ObjectQDRMember object.java.lang.CloneNotSupportedException - If cloning is not supported
for any of the fields.public boolean equals(QDRMember qdrMember)
QDRMember is equivalent to the
specified QDRMember.
QDRMember objects are equivalent if they have the same
member type and if they represent exactly the same dimension members.qdrMember - The QDRMember to which you want to compare
this QDRMember.true if the two QDRMember objects
have the same type and represent the same dimension members,
false if the type is different or if the
two QDRMember objects represent different
dimension members.getType(),
getData()protected boolean contains(java.util.Vector vector1,
java.util.Vector vector2)
public boolean contains(QDRMember qdrMember)
QDRMember contains the specified
QDRMember.
This QDRMember contains the specified QDRMember
if it represents all of the dimension members that the specified
QDRMember represents.
A QDRMember that has the VARIES type contains
any other QDRMember.
If two QDRMember objects are equivalent, then they each
contain the other.
qdrMember - The QDRMember with which you want to
compare this QDRMember.true if this QDRMember represents
all of the dimension members that
qdrMember represents,
false if qdrMember is null
or if qdrMember represents
any dimension members that this
QDRMember does not represent.equals(oracle.dss.util.QDRMember)public boolean equals(java.lang.Object obj)
QDRMember is equivalent to the
specified Object.
QDRMember objects are equivalent if they have the same
member type and if they represent exactly the same dimension members.equals in class java.lang.ObjectqdrMember - The QDRMember to which you want to compare
this QDRMember.true if the two QDRMember objects
have the same type and represent the same dimension members,
false if the type is different, if the
two QDRMember objects represent different
dimension members, or if obj is not a
QDRMember.getType(),
getData()public java.lang.String toString()
QDRMember.
If the member type of this QDRMember object is
FIXED or LIST, then this method generates
a String that identifies the members that this
QDRMember represents.toString in class java.lang.ObjectQDRMember.getType()public void setType(int type)
QDRMember object.public int getType()
QDRMember object.public void setData(java.lang.Object newData)
QDRMember object represents, when the member type of this
QDRMember object is
FIXED or LIST.newData - The object that specifies the dimension member or members
that this QDRMember should represent.
If the member type is FIXED, then pass a
String that identifies the single dimension
member that this QDRMember should represent.
If the member type is LIST, then pass a
Vector of dimension members.FIXED,
LIST,
getType()public java.lang.Object getData()
QDRMember represents.QDRMember represents.public java.util.Vector getAllDependentIDs(java.lang.String measDim,
NameConverter nc)
public java.lang.Object getXML(oracle.dss.util.persistence.XMLContext context)
oracle.dss.util.persistence.XMLizablegetXML in interface oracle.dss.util.persistence.XMLizablecontext - The control settings that is send by the container (caller)ObjectScopepublic void setXML(oracle.dss.util.persistence.XMLContext context,
java.lang.Object node)
oracle.dss.util.persistence.XMLizablesetXML in interface oracle.dss.util.persistence.XMLizablenode - The root ObjectNode of the persistence object tree.public java.lang.String getTagName()
oracle.dss.util.persistence.XMLizablegetTagName in interface oracle.dss.util.persistence.XMLizableQDR.QDR in XML.
If this member is a list, then this method returns a special
list name, rather than a plain name.protected java.lang.String convertTypeIntToString(int type)
protected int convertTypeStringToInt(java.lang.String strType)
public java.lang.String getStateString(MemberContext memberContext)