|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.QueryRestriction
public class QueryRestriction
Query Restriction
| Field Summary | |
|---|---|
protected boolean |
AndCondition
And/Or Condition |
protected Object |
Code
SQL Where Code |
protected Object |
Code_to
SQL Where Code To |
protected String |
ColumnName
Column Name |
protected String |
DirectWhereClause
Direct Where Clause |
protected String |
InfoDisplay
Info |
protected String |
InfoDisplay_to
Info To |
protected String |
InfoName
Name |
protected String |
Operator
Operator |
| Constructor Summary | |
|---|---|
QueryRestriction(String whereClause)
Create Restriction with direct WHERE clause |
|
QueryRestriction(String columnName,
Object code,
Object code_to,
String infoName,
String infoDisplay,
String infoDisplay_to)
Range Restriction (BETWEEN) |
|
QueryRestriction(String columnName,
Object code,
Object code_to,
String infoName,
String infoDisplay,
String infoDisplay_to,
String operator,
String directWhereClause,
boolean andCondition)
Copy Constructor - Internal Use |
|
QueryRestriction(String columnName,
String operator,
Object code,
String infoName,
String infoDisplay)
Restriction |
|
| Method Summary | |
|---|---|
String |
getInfoDisplayAll()
Get Display with optional To |
String |
getInfoName()
Get Info Name |
String |
getInfoOperator()
Get Info Operator |
String |
getSQL(String tableName)
Return SQL construct for this restriction |
void |
setAndCondition(boolean and)
|
String |
toString()
Get String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String DirectWhereClause
protected String ColumnName
protected String InfoName
protected String Operator
protected Object Code
protected String InfoDisplay
protected Object Code_to
protected String InfoDisplay_to
protected boolean AndCondition
| Constructor Detail |
|---|
public QueryRestriction(String columnName,
String operator,
Object code,
String infoName,
String infoDisplay)
columnName - ColumnNameoperator - Operator, e.g. = != ..code - Code, e.g 0, All%infoName - Display NameinfoDisplay - Display of Code (Lookup)
public QueryRestriction(String columnName,
Object code,
Object code_to,
String infoName,
String infoDisplay,
String infoDisplay_to)
columnName - ColumnNamecode - Code, e.g 0, All%code_to - Code, e.g 0, All%infoName - Display NameinfoDisplay - Display of Code (Lookup)infoDisplay_to - Display of Code (Lookup)public QueryRestriction(String whereClause)
whereClause - SQL WHERE Clause
public QueryRestriction(String columnName,
Object code,
Object code_to,
String infoName,
String infoDisplay,
String infoDisplay_to,
String operator,
String directWhereClause,
boolean andCondition)
columnName - code - code_to - infoName - infoDisplay - infoDisplay_to - operator - directWhereClause - andCondition - | Method Detail |
|---|
public String getSQL(String tableName)
tableName - optional table name
public String toString()
toString in class Objectpublic String getInfoName()
public String getInfoOperator()
public String getInfoDisplayAll()
public void setAndCondition(boolean and)
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||