|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.search.SearchQualification | +--oracle.ifs.search.ExistenceQualification
ExistenceQualification represents a Simple Sub Query. This qualification provides a way to specify a search an attribute value match against a list of values. On the left hand side of this qualification is any scalar attribute of a iFS class. We do not support array attributes as of current release. On the right hand side the list of values could come from any iFS attriute (scalar or array type) or from a user supplied AttributeValue array.
// // Usage Examples // // Simple sub query example. Suppose you want to look for, // All documents whose name appears in STRINGVALUE attribute of any PROPERTY // Generates query - DOCUMENT.Name in (select STRINGVALUE from PROPERTY) // This shows scalar attributes on both LHS and RHS. // ExistenceQualification eq1 = new ExistenceQualification(); eq1.setLeftAttribute(Document.CLASS_NAME, PublicObject.NAME_ATTRIBUTE); eq1.setRightAttribute(Property.CLASS_NAME, Property.STRINGVALUE_ATTRIBUTE); // // Using the a array type attribute on the right hand side // Suppose you want to look for, all documents whose name appears in // STRINGVALUES array type attribute in a property. // Generates query - DOCUMENT.Name in (select STRINGVALUES[] from PROPERTY) // This flattens out the array attribute on the right hand side and generates // a concatenated list of all values in STRINGVALUES attribute in each row. // ExistenceQualification eq1 = new ExistenceQualification(); eq1.setLeftAttribute(Document.CLASS_NAME, PublicObject.NAME_ATTRIBUTE); eq1.setRightAttribute(Property.CLASS_NAME, Property.STRINGVALUES_ATTRIBUTE); // // User supplied AttributeValues on the RHS // Suppose you want to look for documents whose name is in {"FOO", "BAR", "NOTES"}, // then you use the EQ in the following manner. // // First generate the list of values. AttributeValue [] avArray = new AttributeValue[3]; avArray[0] = AttributeValue.newAttributeValue("FOO"); avArray[1] = AttributeValue.newAttributeValue("BAR"); avArray[2] = AttributeValue.newAttributeValue("NOTES"); // // Then use the list in a EQ. ExistenceQualification eq1 = new ExistenceQualification(); eq1.setLeftAttribute(Document.CLASS_NAME, PublicObject.NAME_ATTRIBUTE); eq1.setRightAttributeValue(avArray);
Fields inherited from class oracle.ifs.search.SearchQualification |
LATE_BIND_OPER |
Constructor Summary | |
ExistenceQualification()
Constructs an existence qualification. |
Method Summary | |
java.lang.String |
getLeftAttributeName()
Gets the left hand side Attribute name. |
java.lang.String |
getLeftClassname()
Gets the left hand side class name. |
java.lang.String |
getRightAttributeName()
Gets the right hand side Attribute name. |
AttributeValue[] |
getRightAttributeValue()
Gets up the Attribute value array for the right hand side. |
java.lang.String |
getRightClassname()
Gets the Right hand side class name. |
boolean |
isRightAttributeValue()
Gets true if the ExistenceQualification was constructed by supplying an Attribute Value array for RHS. |
void |
setLeftAttribute(java.lang.String classname,
java.lang.String attribute)
Sets the left hand side class and attribute name of this qualification. |
void |
setRightAttribute(java.lang.String classname,
java.lang.String attribute)
Sets the right hand side class and attribute name of this qualification. |
void |
setRightAttributeValue(AttributeValue[] avArray)
Sets up the Attribute value array for the right hand side. |
Constructor Detail |
public ExistenceQualification() throws IfsException
IfsException
- if the operation failsMethod Detail |
public void setLeftAttribute(java.lang.String classname, java.lang.String attribute) throws IfsException
class
- left hand side class nameattribute
- left hand side attribute nameIfsException
- if the operation failspublic void setRightAttribute(java.lang.String classname, java.lang.String attribute) throws IfsException
class
- right hand side class nameattribute
- right hand side attribute nameIfsException
- if the operation failspublic void setRightAttributeValue(AttributeValue[] avArray) throws IfsException
avArray
- array of attribute valuesIfsException
- if the operation failspublic AttributeValue[] getRightAttributeValue() throws IfsException
IfsException
- if the operation failspublic java.lang.String getLeftClassname() throws IfsException
IfsException
- if the operation failspublic java.lang.String getRightClassname() throws IfsException
IfsException
- if the operation failspublic java.lang.String getLeftAttributeName() throws IfsException
IfsException
- if the operation failspublic java.lang.String getRightAttributeName() throws IfsException
IfsException
- if the operation failspublic boolean isRightAttributeValue() throws IfsException
IfsException
- if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |