public class JoinQualification extends SearchQualification
A null Attribute Name implies joining on the Object's id. When you have more than one search class in your search specification, they all must be joined using appropriate join conditions. Failure to do so will result in cartesian join of the search classes for which there is no join condition.
Below is an example of constructing JoinQualification. For a example with a complete search tree, look at javadoc for AttributeSearchSpecification or ContextSearchSpecification.
// // Usage Examples // // // Joining on a scalar attribute // Joining Document with DirectoryUser // Generates SQL of the form DOCUMENT.Owner = DIRECTORYUSER.Id JoinQualification jq1 = new JoinQualification(); jq1.setLeftAttribute(Document.CLASS_NAME, PublicObject.OWNER_ATTRIBUTE); // Note the 'null' being passed for attribute. That implies // joining on ID. jq2.setRightAttribute(DirectoryUser.CLASS_NAME, null);
Modifier and Type | Field and Description |
---|---|
static int |
LHS
Constant used to identify the Left-hand-Side of the join condition.
|
protected String[] |
m_Attribute
Holds onto the LHS and RHS Attributes.
|
protected String[] |
m_Class
Holds onto the LHS and RHS Classes
|
static int |
RHS
Constant used to identify the Right-hand-Side of the join condition.
|
LATE_BIND_OPER
Constructor and Description |
---|
JoinQualification()
Constructs an JoinQualification.
|
Modifier and Type | Method and Description |
---|---|
protected void |
accept(oracle.ifs.search.SearchQualificationVisitor v)
Accepts a SearchQualificationVisitor.
|
Object |
clone()
Returns a clone of this SearchQualification.
|
String |
getLeftAttributeClassname()
Gets the classname of left side of this join qualification.
|
String |
getLeftAttributeName()
Gets the unqualified attribute name of the left side of this
join qualification.
|
String |
getRightAttributeClassname()
Gets the classname of right side of this join qualification.
|
String |
getRightAttributeName()
Gets the unqualified attribute name of the right side of this
join qualification.
|
void |
setLeftAttribute(String className,
String attrName)
Set left hand side Join Attribute.
|
void |
setRightAttribute(String className,
String attrName)
Set right hand side Join Attribute.
|
isLateBound
public static final int LHS
public static final int RHS
protected String[] m_Class
protected String[] m_Attribute
public JoinQualification()
public void setLeftAttribute(String className, String attrName)
className
- The class of the attributeattrName
- The joining AttributeSearchSpecification
,
SearchClassSpecification
public void setRightAttribute(String className, String attrName)
className
- The class of the attributeattrName
- The joining AttributeSearchSpecification
,
SearchClassSpecification
public String getLeftAttributeName() throws IfsException
IfsException
- if the operation failspublic String getRightAttributeName() throws IfsException
IfsException
- if the operation failspublic String getLeftAttributeClassname() throws IfsException
IfsException
- if the operation failspublic String getRightAttributeClassname() throws IfsException
IfsException
- if the operation failsprotected void accept(oracle.ifs.search.SearchQualificationVisitor v) throws IfsException
accept
in class SearchQualification
v
- SearchQualificationVisitorIfsException
- thrown if Visitor code throws.public Object clone()
clone
in class SearchQualification
Copyright © 2023. All rights reserved.