public class AttributeSubqueryQualification extends AttributeQualification
This subclass of AttributeQualification inherits most of the behavior, and
overrides to produce a subquery using an exists qualification
of the form:
exists (select 1 from
Modifier and Type | Field and Description |
---|---|
protected String |
m_InnerClassJoinAttribute
Represents the Name of the attribute in the inner class
on which to join.
|
protected String |
m_ParentClassAlias
Represents the Name of the alias used for the parent Class.
|
protected String |
m_ParentClassJoinColumn
Represents the column name in the parent class on which to join.
|
CONTAINS_WORD, DATE_COMP_DAY, DATE_COMP_HOUR, DATE_COMP_MIN, DATE_COMP_MONTH, DATE_COMP_SEC, DATE_COMP_YEAR, DOES_NOT_CONTAIN_WORD, ENDS_WITH, EQUAL, GREATER_THAN, GREATER_THAN_EQUAL, IOC_CONTAINS_WORD, IOC_LIKE, IOC_NOT_CONTAINS_WORD, IOC_NOT_LIKE, IS_NOT_NULL, IS_NULL, LESS_THAN, LESS_THAN_EQUAL, LIKE, LIKE_WITH_ESCAPE, m_Attribute, m_AttributeDataType, m_AttributeId, m_AttributeMultiValueTableSuffix, m_AVValue, m_Class, m_CompOper, m_DateCompLevel, m_DateValue, m_EscapeClause, m_IgnoreCase, m_Opers, m_ReverseOpers, m_SQLValue, m_Value, NOT_EQUAL, NOT_LIKE, NOT_LIKE_WITH_ESCAPE, QUALIFIER_NAME, STARTS_WITH
LATE_BIND_OPER
Constructor and Description |
---|
AttributeSubqueryQualification()
Constructs an AttributeSubqueryQualification.
|
Modifier and Type | Method and Description |
---|---|
protected void |
accept(oracle.ifs.search.SearchQualificationVisitor v)
Accepts a SearchQualificationVisitor.
|
String |
getInnerAliasName()
Gets the name used for the alias of the class used in the subquery.
|
String |
getInnerClassJoinAttribute()
Gets the Attribute used for the inner Class join.
|
String |
getParentClassAlias()
Gets the name used for the parent Class alias.
|
String |
getParentClassJoinColumn()
Gets the name used for the parent Class join column.
|
void |
setInnerClassJoinAttribute(String joinAttrName)
Sets the Attribute used for the inner Class join.
|
void |
setParentClassAlias(String parentAlias)
Sets the name used for the parent Class alias.
|
void |
setParentClassJoinColumn(String columnName)
Sets the name used for the parent Class join column.
|
protected String |
toSQL(String innerViewName,
String innerAliasName,
String innerJoinColumn,
String condition)
Returns the SQL clause that represents the qualification.
|
getAttributeClassname, getAttributeName, getDateComparisonLevel, getEscapeClauseCharacter, getNotNullOperator, getNullOperator, getNullSearchValue, getOperatorType, getValue, isCaseIgnored, isLateBound, operatorTypeName, setAttribute, setAttribute, setCaseIgnored, setDateComparisonLevel, setEscapeClauseCharacter, setOperatorType, setOperatorType, setValue, setValue, setValue, setValueLateBound, toSQL, toSQL, validateOperator
clone
protected String m_InnerClassJoinAttribute
protected String m_ParentClassAlias
protected String m_ParentClassJoinColumn
public AttributeSubqueryQualification()
public void setInnerClassJoinAttribute(String joinAttrName)
joinAttrName
- The name of the attribute in the inner class
on which to joinpublic void setParentClassAlias(String parentAlias)
parentAlias
- The name used for the parent Class aliaspublic void setParentClassJoinColumn(String columnName)
columnName
- The column name in the parent class on which to joinpublic String getInnerClassJoinAttribute()
public String getParentClassAlias()
public String getParentClassJoinColumn()
public String getInnerAliasName()
protected void accept(oracle.ifs.search.SearchQualificationVisitor v) throws IfsException
Calls visitAttributeSubqueryQualifier
on the visitor.
The code in visitAttributeSubqueryQualifier is specific to the Visitor.
accept
in class AttributeQualification
v
- the SearchQualificationVisitorIfsException
- if error occurs in the visitorprotected String toSQL(String innerViewName, String innerAliasName, String innerJoinColumn, String condition) throws IfsException
The SQL returned is the form:
exists (select 1 from
innerViewName
- the inner view nameinnerAliasName
- the inner alias nameinnerJoinColumn
- the inner join column namecondition
- the attribute where clause conditionIfsException
- if the operation failsCopyright © 2023. All rights reserved.