public interface IEssAttributeQuery extends IEssBaseObject
This allows you to define the following:
Modifier and Type | Field and Description |
---|---|
static short |
MBR_TYPE_ATTRIBUTE_DIMENSION |
static short |
MBR_TYPE_ATTRIBUTE_MEMBER |
static short |
MBR_TYPE_ATTRIBUTED_MEMBER |
static short |
MBR_TYPE_BASE_DIMENSION |
static short |
MBR_TYPE_BASE_MEMBER |
static short |
MBR_TYPE_INVALID_MEMBER
Attribute related member (query input/output ) type
|
static short |
MBR_TYPE_STANDARD_DIMENSION |
static short |
MBR_TYPE_STANDARD_MEMBER |
static short |
OP_ALL
"Any" attribute querying operator.
|
static short |
OP_EQ
Equal-to attribute querying operator
|
static short |
OP_GT
Greater-Than attribute querying operator
|
static short |
OP_GTE
Greater-Than-or-Equal-to attribute querying operator
|
static short |
OP_LT
Less-Than attribute querying operator
|
static short |
OP_LTE
Less-Than-or-Equal-to attribute querying operator
|
static short |
OP_NEQ
Not-equal-to attribute querying operator
|
static short |
OP_TYPEOF
Type-of attribute querying operator
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttributeValue()
If the attribute value type is String, then a
String value object is returned. |
java.lang.Object |
getInputMember()
Returns the input member depending on one of the possible types, such as
either
IEssMember type or String . |
short |
getInputMemberType()
Returns the type of input member defined for attribute querying.
|
int |
getMaxMemberCount()
Returns the maximum count of members this query can return.
|
short |
getOperationType()
Returns the operator type used.
|
short |
getOutputMemberType()
Returns the type of expected member.
|
int |
getStartMemberIndex()
Gets the Start Member Index.
|
void |
set(short inputMbrType,
short outputMbrType)
Specify the type of input member you are specifying in the query and what type of member
you are expecting in the results.
|
void |
setAttributeValue(short opernType,
boolean booleanTypeAttrValue)
Use this to query Boolean type of attributes by specifying the attribute value
in
boolean value and using the Attribute Querying operator of your choice. |
void |
setAttributeValue(short opernType,
double doubleTypeAttrValue)
Use this to query Floating Point type of attributes by specifying the attribute value
as a
double value and using the Attribute Querying operator of your choice. |
void |
setAttributeValue(short opernType,
long dateTimeTypeAttrValue)
Use this to query Date type of attributes by specifying the attribute value
as a timestamp value and using the Attribute Querying operator of your choice.
|
void |
setAttributeValue(short opernType,
java.lang.String stringTypeAttrValue)
Use this to query Text based attributes by specifying the attribute value
in
String and using the Attribute Querying operator of your choice. |
void |
setInputMember(IEssMember member)
This is to specify the input member/dimension name to query on.
|
void |
setInputMember(java.lang.String memberName)
This is to specify the input member/dimension name to query on.
|
void |
setMemberRange(int startMemberIndex,
int maxMemberCount)
This is to limit the result of members that will be returned based on your specified counts,
to achieve capabilities equivalent to cursoring.
|
static final short MBR_TYPE_INVALID_MEMBER
static final short MBR_TYPE_STANDARD_MEMBER
static final short MBR_TYPE_STANDARD_DIMENSION
static final short MBR_TYPE_BASE_MEMBER
static final short MBR_TYPE_BASE_DIMENSION
static final short MBR_TYPE_ATTRIBUTE_MEMBER
static final short MBR_TYPE_ATTRIBUTE_DIMENSION
static final short MBR_TYPE_ATTRIBUTED_MEMBER
static final short OP_EQ
static final short OP_NEQ
static final short OP_GT
static final short OP_LT
static final short OP_GTE
static final short OP_LTE
static final short OP_TYPEOF
static final short OP_ALL
void set(short inputMbrType, short outputMbrType)
Both inputMbrType
and outputMbrType
has be
IEssAttributeQuery.MBR_TYPE_*.
The input member type corresponds to the member you will set
using setInputMember(String)
or setInputMember(IEssMember)
.
inputMbrType
- Input member type (one of the IEssAttributeQuery.MBR_TYPE_*
)outputMbrType
- Expected member type (one of the IEssAttributeQuery.MBR_TYPE_*
)setInputMember(String)
,
setInputMember(IEssMember)
void setInputMember(java.lang.String memberName)
It is mandatory to specify input member for attribute querying as it wont
make sense without this specification. So, you need to do that either using this
method or setInputMember(IEssMember)
.
Please note you need to specify the type of input member using set(short, short)
.
memberName
- Member or Dimension Name.set(short, short)
void setInputMember(IEssMember member)
It is mandatory to specify input member for attribute querying as it wont
make sense without this specification. So, you need to do that either using this
method or setInputMember(String)
.
Please note you also need to specify the type of input member using set(short, short)
.
member
- Member or Dimension Name.set(short, short)
void setAttributeValue(short opernType, java.lang.String stringTypeAttrValue)
String
and using the Attribute Querying operator of your choice.
For example,
myIEssAttributeQuery.setAttributeValue(IEssAttributeQuery.OP_NEQ, "Can");
opernType
- Operator Type as in "IEssAttributeQuery.OP_*
"stringTypeAttrValue
- attribute valuevoid setAttributeValue(short opernType, boolean booleanTypeAttrValue)
boolean
value and using the Attribute Querying operator of your choice.
For example,
myIEssAttributeQuery.setAttributeValue(IEssAttributeQuery.OP_EQ, true);
opernType
- Operator Type as in "IEssAttributeQuery.OP_*
"booleanTypeAttrValue
- attribute value.void setAttributeValue(short opernType, long dateTimeTypeAttrValue)
For example,
myIEssAttributeQuery.setAttributeValue(IEssAttributeQuery.OP_EQ, 101010102);
opernType
- Operator Type as in "IEssAttributeQuery.OP_*
"dateTimeTypeAttrValue
- attribute value.void setAttributeValue(short opernType, double doubleTypeAttrValue)
double
value and using the Attribute Querying operator of your choice.
For example,
myIEssAttributeQuery.setAttributeValue(IEssAttributeQuery.OP_EQ, 100.20);
opernType
- Operator Type as in "IEssAttributeQuery.OP_*
"doubleTypeAttrValue
- attribute value.void setMemberRange(int startMemberIndex, int maxMemberCount)
startMemberIndex
- Starting Member IndexmaxMemberCount
- Maximum number of members expected from the Query.short getInputMemberType()
short getOutputMemberType()
java.lang.Object getInputMember()
IEssMember
type or String
.
If there is no input member defined in this query, returns null.java.lang.Object getAttributeValue()
String
value object is returned.
If the attribute value type is boolean, then a Boolean
value object is returned.
If the attribute value type is DateTime, then a Long
value object is returned.
If the attribute value type is double, then a Double
value object is returned.
If there is no attribute value defined in this query, returns null
.short getOperationType()
int getStartMemberIndex()
int getMaxMemberCount()