public class Filter
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Filter()
Filter constructor comment.
|
Filter(Field f1,
int op)
Constructor for filters of the form: tableA.field1 = field1.value
|
Filter(Field f1,
int op,
Field f2)
Constructor for filters of the form: tableA.field1 = tableB.field2
|
Filter(Field f1,
int op,
Query q2)
Constructor for filters of the form: tableA.field1 IN ( select field1 from tableB where ...)
|
Filter(java.lang.String className,
java.lang.String propName,
int op,
java.lang.Object val) |
Modifier and Type | Method and Description |
---|---|
Filter |
betweenFilter(java.lang.String className,
java.lang.String propName,
java.lang.Object val,
java.lang.Object val2) |
boolean |
chkDeps()
Check dependencies in hierarchical queries.
|
java.lang.String |
getDbType()
Getter for property dbType.
|
Field |
getField1()
Returns the left-hand value of this filter.
|
Field |
getField2()
Returns the (field) right-hand value of this filter.
|
Field |
getField2b()
Returns the second (field) right-hand value of this filter.
|
int |
getOp()
Returns the Operator of this filter.
|
Query |
getQuery2()
Returns the (query) right-hand value of this filter.
|
void |
propagateDbType() |
void |
setDbType(java.lang.String dbType)
Setter for property dbType.
|
void |
setField1(Field newField1)
Sets the left-hand field of this filter.
|
void |
setField2(Field newField2)
Sets the right-hand field of this filter.
|
void |
setField2b(Field newField2b)
Sets the right-hand secondary field of this filter.
|
void |
setOp(int newOp)
Sets the operator for this filter.
|
void |
setQuery2(Query newQuery2)
Sets the right-hand query for this filter.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean parameterize)
Returns a String that represents the value of this object.
|
public Filter()
public Filter(Field f1, int op)
f1
- com.irisel.oms.sql.Fieldop
- intpublic Filter(Field f1, int op, Field f2)
f1
- com.irisel.oms.sql.Fieldop
- intf2
- com.irisel.oms.sql.Fieldpublic Filter(Field f1, int op, Query q2)
f1
- com.irisel.oms.sql.Fieldop
- intq2
- com.irisel.oms.sql.Querypublic Filter(java.lang.String className, java.lang.String propName, int op, java.lang.Object val)
public Filter betweenFilter(java.lang.String className, java.lang.String propName, java.lang.Object val, java.lang.Object val2)
public boolean chkDeps() throws QueryException
QueryException
public Field getField1()
public Field getField2()
public Field getField2b()
public int getOp()
public Query getQuery2()
public void setField1(Field newField1)
newField1
- com.irisel.oms.sql.Fieldpublic void setField2(Field newField2)
newField2
- com.irisel.oms.sql.Fieldpublic void setField2b(Field newField2b)
newField2
- com.irisel.oms.sql.Fieldpublic void setOp(int newOp)
newOp
- com.irisel.oms.sql.OperatorOperator
public void setQuery2(Query newQuery2)
newQuery2
- com.irisel.oms.sql.Querypublic java.lang.String toString(boolean parameterize)
public java.lang.String getDbType()
public void setDbType(java.lang.String dbType)
dbType
- New value of property dbType.public void propagateDbType()
public java.lang.String toString()
toString
in class java.lang.Object