public class FreeFormQualification extends SearchQualification
Since the sql generated for searches always uses table aliases, for searches with FreeFormQualifiers you must provide class aliases in the SearchClassSpecification.
In non admin mode the sqlString cannot contain references to unsecure database objects. This is to prevent users from bypassing the security system. But admin users can setup SearchObjects that contain FreeFormQualifiers and give access to normal users to execute them.
Currently FreeFormQualifiers don't support late binding. Hence the sqlString cannot contain '?'.
// // Usage Examples // // // looking for CONTENTOBJECTS which are greater than the average // content size // FreeFormQualification ffq= new FreeFormQualification(); String sqlExpression = "co.contentsize > " + "(select avg(contentsize) " + "from odm_contentobject c, odm_document d where c.id = d.contentobject)"); ffq.setSqlExpression(sqlExpression);
Modifier and Type | Field and Description |
---|---|
String |
m_SQLString
Specified SQL subClause, that is plugged into the Overall Select Statement.
|
LATE_BIND_OPER
Constructor and Description |
---|
FreeFormQualification()
Constructs a FreeFormQualification.
|
Modifier and Type | Method and Description |
---|---|
protected void |
accept(oracle.ifs.search.SearchQualificationVisitor v)
Accepts a SearchQualificationVisitor.
|
String |
getSQLExpression()
Gets the SQL expression of this object.
|
void |
setSqlExpression(String sqlExpression)
Sets the SQL expression for this object.
|
clone, isLateBound
public String m_SQLString
public FreeFormQualification() throws IfsException
IfsException
- if the operation failspublic void setSqlExpression(String sqlExpression) throws IfsException
sqlExpression
- SQL expression for this qualificationIfsException
- if the operation failspublic String getSQLExpression() 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.Copyright © 2023. All rights reserved.