Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

oracle.dss.util
Class QDRMember

java.lang.Object
  extended by oracle.dss.util.QDRMember
All Implemented Interfaces:
java.io.Serializable, oracle.dss.util.persistence.XMLizable, VectorClone
Direct Known Subclasses:
HierarchicalQDRMember

public class QDRMember
extends java.lang.Object
implements VectorClone, oracle.dss.util.persistence.XMLizable, java.io.Serializable

A member in a QDR. A QDRMember specifies the members of a dimension to consider.

There are four different types of QDRMember objects:

See Also:
FIXED, LIST, CURRENT, VARIES, QDR, Serialized Form

Field Summary
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 Summary
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.
 
Method Summary
 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()
           
 int getType()
          Retrieves the type of this QDRMember object.
 java.lang.Object getXML(oracle.dss.util.persistence.XMLContext context)
           
 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)
           
 java.lang.String toString()
          Generates the string representation of this QDRMember.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FIXED

public static final int FIXED
Member type: The dimension member is a single, fixed member, such as "PARIS".

See Also:
Constant Field Values

VARIES

public static final int VARIES
Member type: The dimension member varies. Use this type for a dimension-only QDR, or for a ranking report. For example, suppose that you have the following crosstab:
JuneJuly
Tokyo
Internet phones23142978
PDAs18342411
Pagers817699
Chicago
Pagers50043917
Cell phones39564057
PDAs28873422

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.

See Also:
Constant Field Values

CURRENT

public static final int CURRENT
Member type: The current Time period.

See Also:
Constant Field Values

LIST

public static final int LIST
Member type: A list of dimension members.

See Also:
Constant Field Values

TOTAL

public static final int TOTAL
Member type: a total member.

See Also:
Constant Field Values

AGG

public static final int AGG
Member type: an aggregate member

See Also:
Constant Field Values

XML_VARIES

protected static final java.lang.String XML_VARIES
See Also:
Constant Field Values

XML_CURRENT

protected static final java.lang.String XML_CURRENT
See Also:
Constant Field Values

XML_TOTAL

protected static final java.lang.String XML_TOTAL
See Also:
Constant Field Values

XML_AGG

protected static final java.lang.String XML_AGG
See Also:
Constant Field Values

m_intType

protected int m_intType

m_data

protected java.lang.Object m_data

XML_NAME

public static final java.lang.String XML_NAME
See Also:
Constant Field Values

XML_NAME_NEW

public static final java.lang.String XML_NAME_NEW
See Also:
Constant Field Values

XML_LIST_NAME

public static final java.lang.String XML_LIST_NAME
See Also:
Constant Field Values
Constructor Detail

QDRMember

public QDRMember()
Default constructor. This constructor creates an empty QDRMember.


QDRMember

public QDRMember(int type)
Constructor that specifies a member type.

Parameters:
type - A constant that represents the type of data that this QDRMember object represents.
See Also:
FIXED, VARIES, CURRENT, LIST

QDRMember

public QDRMember(java.lang.String dimMember)
Constructor that specifies the name of dimension member. The member type is impled to be QDRMember.FIXED.

Parameters:
dimMember - The name of the dimension member that this QDRMember represents.
See Also:
FIXED

QDRMember

public QDRMember(int type,
                 java.lang.Object data)
Constructor that specifies the type and the member or members that this QDRMember represents.

Parameters:
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.
See Also:
FIXED, VARIES, CURRENT, LIST
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates a copy of this QDRMember object.

Specified by:
clone in interface VectorClone
Overrides:
clone in class java.lang.Object
Returns:
A copy of this QDRMember object.
Throws:
java.lang.CloneNotSupportedException - If cloning is not supported for any of the fields.

equals

public boolean equals(QDRMember qdrMember)
Specifies whether this 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.

Parameters:
qdrMember - The QDRMember to which you want to compare this QDRMember.
Returns:
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.
See Also:
getType(), getData()

contains

protected boolean contains(java.util.Vector vector1,
                           java.util.Vector vector2)

contains

public boolean contains(QDRMember qdrMember)
Indicates whether this 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.

Parameters:
qdrMember - The QDRMember with which you want to compare this QDRMember.
Returns:
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.
See Also:
equals(oracle.dss.util.QDRMember)

equals

public boolean equals(java.lang.Object obj)
Specifies whether this 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.

Overrides:
equals in class java.lang.Object
Parameters:
qdrMember - The QDRMember to which you want to compare this QDRMember.
Returns:
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.
See Also:
getType(), getData()

toString

public java.lang.String toString()
Generates the string representation of this 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.

Overrides:
toString in class java.lang.Object
Returns:
The string representation of this QDRMember.
See Also:
getType()

setType

public void setType(int type)
Specifies the type of this QDRMember object.

Parameters:
type - A constant that represents the type of data that this QDRMember object represents. Valid constants are listed in the See Also section.
See Also:
FIXED, VARIES, CURRENT, LIST

getType

public int getType()
Retrieves the type of this QDRMember object.

Returns:
The constant that represents the type. The valid constants are listed in the See Also section.
See Also:
FIXED, VARIES, CURRENT, LIST

setData

public 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.

Parameters:
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.
See Also:
FIXED, LIST, getType()

getData

public java.lang.Object getData()
Retrieves the dimension member or members that this QDRMember represents.

Returns:
The data object that identifies the dimension member or members that this QDRMember represents.

getAllDependentIDs

public java.util.Vector getAllDependentIDs(java.lang.String measDim,
                                           NameConverter nc)

getXML

public java.lang.Object getXML(oracle.dss.util.persistence.XMLContext context)
Specified by:
getXML in interface oracle.dss.util.persistence.XMLizable
Returns:
The root ObjectNode of the persistence object tree.

setXML

public void setXML(oracle.dss.util.persistence.XMLContext context,
                   java.lang.Object node)
Specified by:
setXML in interface oracle.dss.util.persistence.XMLizable
Parameters:
node - The root ObjectNode of the persistence object tree.

getTagName

public java.lang.String getTagName()
Specified by:
getTagName in interface oracle.dss.util.persistence.XMLizable
Returns:
The XML name of this QDR.

convertTypeIntToString

protected java.lang.String convertTypeIntToString(int type)

convertTypeStringToInt

protected int convertTypeStringToInt(java.lang.String strType)

getStateString

public java.lang.String getStateString(MemberContext memberContext)

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

Copyright © 1997, 2011, Oracle. All rights reserved.