|
|||||||||
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.PropertyQualification
The PropertyQualification(PQ) represents a condition on a Class Property. Conecptually PropertyQualifications are similar to AttributeQualifications, with a PQ being applied on an Object's Property instead of an Attribute.
A PropertyQualification is represented by a Search Class, a property Name, a search Value and a comparison operator. The comparison value must be specified as a AttributeValue. For late Binding, the setlateBound function must be called, with dataType of the property specified. This is required there are no rules for mapping property names to dataTypes. Each object is free to use a property name as it chooses.
Roughly, a PropertyQualification translates to the SQL condition
exists (select list of proeprties where name = ' Specified Name' and type = 'Specified Type'
and value 'oper' 'Specified Comparison Value'
Constructor Summary | |
PropertyQualification()
Constructs a PropertyQualification. |
Method Summary | |
java.lang.String |
getClassname()
Returns the search class for this qualification object. |
int |
getDateComparisonLevel()
Returns the date comparison level. |
int |
getLateBoundDataType()
Get the data type if the qualification is late bound. |
int |
getOperatorType()
Gets the operator for this qualification. |
java.lang.String |
getPropertyName()
Return the searched property. |
AttributeValue |
getValue()
Return the comparison value. |
boolean |
isCaseIgnored()
Returns true if this object is set to be case insensitive. |
boolean |
isLateBound()
Returns whether Qualification is late bound. |
void |
setCaseIgnored(boolean value)
Sets up case sensitive behavior for this object. |
void |
setClassname(java.lang.String clss)
Set the Search Classname. |
void |
setDateComparisonLevel(int df)
Sets the date comparison value. |
void |
setLateBoundDataType(int dataType)
Set Qualification as Late Bound. |
void |
setOperatorType(int oper)
Sets the comparision operator. |
void |
setOperatorType(java.lang.String oper)
Sets the comparison operator. |
void |
setPropertyName(java.lang.String name)
Specify the property used in the condition. |
void |
setValue(AttributeValue av)
Sets the comparison value. |
Methods inherited from class oracle.ifs.search.SearchQualification |
clone |
Constructor Detail |
public PropertyQualification() throws IfsException
Method Detail |
public void setClassname(java.lang.String clss) throws IfsException
Class should be a valid iFS PublicObject or SubClass or an Alias. A null class is taken to mean, use the first Result Class of the SearchSpecification.
clss
- Search Class.IfsException
- if the operation failsSearchClassSpecification
public java.lang.String getClassname() throws IfsException
IfsException
- if the operation failspublic void setPropertyName(java.lang.String name) throws IfsException
name
- name of searched property.public java.lang.String getPropertyName()
public void setValue(AttributeValue av) throws IfsException
av
- the comparison value specified as an AttrbuteValueIfsException
- 22002 if av is null.public AttributeValue getValue()
public void setLateBoundDataType(int dataType) throws IfsException
dataType
- property's dataTypeIfsException
- if the operation failspublic int getLateBoundDataType() throws IfsException
IfsException
- if the operation failspublic boolean isLateBound()
isLateBound
in class SearchQualification
public void setOperatorType(java.lang.String oper) throws IfsException
oper
- comparison operator stringIfsException
- if specified operator is not supported.AttributeQualification
public void setOperatorType(int oper) throws IfsException
oper
- comaprison operator must be one of,
AttributeQualification.EQUAL
,
AttributeQualification.GREATER_THAN
,
AttributeQualification.GREATER_THAN_EQUAL
,
AttributeQualification.IS_NOT_NULL
,
AttributeQualification.IS_NULL
,
AttributeQualification.LESS_THAN
,
AttributeQualification.LESS_THAN_EQUAL
,
AttributeQualification.LIKE
IfsException
- if specified operator is not supported.AttributeQualification
public int getOperatorType() throws IfsException
public void setDateComparisonLevel(int df) throws IfsException
df
- date comparison level. See DATE constants for a list of levels.AttributeQualification
public void setCaseIgnored(boolean value) throws IfsException
IfsException
- if the operation failspublic int getDateComparisonLevel()
public boolean isCaseIgnored()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |