public class Condition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
cEQUAL
Constant Comparation: Equal =
|
static int |
cGET
Constant Comparation: Greater or Equal Than
|
static int |
cGT
Constant Comparation: Greater Than
|
static int |
cINList
Constant: condition In list of values
|
static int |
cINQuery
Constant: condition In list of results of a Query
|
static int |
cLET
Constant Comparation: Lest or Equal Than
|
static int |
cLIKE
Constant Comparation: Like/Contains %
|
static int |
cLT
Constant Comparation: Lest Than
|
static int |
cNE
Constant Comparation: Distinct
|
static java.lang.String |
CONTAINS
Constant operator: Condition for Documents containing a text expresion
|
static java.lang.String |
INFOLDER
Constant operator: Condition for Documents or folders stored DIRECTLY in a folder
|
static java.lang.String |
INTREE
Constant operator: Condition for Documents or folders stored under a folder at any level
|
Constructor and Description |
---|
Condition(Attribute Attr)
Constructor that creates a condition where name_of_attribute = "value of attribute"
|
Condition(Attribute Attr,
int pComparation)
Constructor that creates a condition where name_of_attribute COMPARATION value_of_attribute
|
Condition(org.w3c.dom.Node XMLConds)
Buils a Condition object from XML
|
Condition(java.lang.String pField,
java.util.HashSet ListVal)
Compare the value of a field with a list of values (pField in (ListVal) )
|
Condition(java.lang.String pField,
int pComparation,
java.lang.Object pValue)
Constructor that creates a condition where pField COMPARATION pValue
|
Condition(java.lang.String pField,
int pComparation,
java.lang.Object pValue,
int pTypeVal)
Constructor that creates a condition where pField COMPARATION pValue
|
Condition(java.lang.String pField,
Query Search)
Compare the value of a field with the result of query (pField in (select ) )
|
Condition(java.lang.String pField,
java.lang.String pField2)
Compare two columns ( Attr1=Attr2 )
|
Modifier and Type | Method and Description |
---|---|
static Condition |
genContainsCond(java.lang.String TabName,
java.lang.String Arg,
DriverGeneric Drv)
Search in the Fulltext repository and generates a condition with the list of document that meet the FT criteria
|
static Condition |
genInFolder(java.lang.String FoldRef,
DriverGeneric Drv)
Create conditions for searching the elements contained in a specific folder
|
static Conditions |
genInTreeCond(java.lang.String FoldRef,
DriverGeneric Drv)
Create conditions for searching all the elements UNDER a specific folder at any level
|
int |
getComparation()
Returns the Comparation/operator
|
int |
getcType()
Returns the cType , the type of condition
|
java.lang.String |
getField()
Returns the Field
|
int |
getTypeVal()
Returns the TypeVal, the kind of value (String, Date,..)
|
java.lang.Object |
getValue()
Returns the Value or second operator
|
boolean |
isInvert()
Returns the bvalue of inversion of condition, that is if condition has a "previous" NOT
|
public static final int cEQUAL
public static final int cGT
public static final int cLT
public static final int cGET
public static final int cLET
public static final int cNE
public static final int cLIKE
public static final int cINList
public static final int cINQuery
public static final java.lang.String CONTAINS
public static final java.lang.String INTREE
public static final java.lang.String INFOLDER
public Condition(Attribute Attr)
Attr
- Attribute Attribute
to use for comparationpublic Condition(Attribute Attr, int pComparation)
Attr
- Attribute Attribute
to use for comparationpComparation
- Kind of comparation
cEQUAL =0;
cGT =1;
cLT =2;
cGET =3;
cLET =4;
cNE =5;
cLIKE =8;public Condition(java.lang.String pField, int pComparation, java.lang.Object pValue) throws PDException
pField
- name of field to comparepComparation
- Kind of comparation
cEQUAL =0;
cGT =1;
cLT =2;
cGET =3;
cLET =4;
cNE =5;
cLIKE =8;pValue
- Object to comparePDException
- in any errorpublic Condition(java.lang.String pField, int pComparation, java.lang.Object pValue, int pTypeVal) throws PDException
pField
- name of field to comparepComparation
- Kind of comparation
cEQUAL =0;
cGT =1;
cLT =2;
cGET =3;
cLET =4;
cNE =5;
cLIKE =8;pValue
- Object to comparepTypeVal
- Phisical type of valuePDException
- in any errorpublic Condition(java.lang.String pField, java.lang.String pField2) throws PDException
pField
- name of first columnpField2
- naame of the second columnPDException
- in any errorpublic Condition(java.lang.String pField, java.util.HashSet ListVal) throws PDException
pField
- name of field to compareListVal
- List of valuesPDException
- in any errorpublic Condition(java.lang.String pField, Query Search) throws PDException
pField
- name of field to compareSearch
- Query Query
PDException
- in any errorpublic Condition(org.w3c.dom.Node XMLConds) throws PDException
XMLConds
- with conditionPDException
- in any errorpublic int getcType()
public java.lang.String getField()
public java.lang.Object getValue()
public int getComparation()
public boolean isInvert()
public int getTypeVal()
public static Condition genContainsCond(java.lang.String TabName, java.lang.String Arg, DriverGeneric Drv) throws PDException
TabName
- Document TypeArg
- FT criteriaDrv
- OPD DriverPDException
- in any errorpublic static Conditions genInTreeCond(java.lang.String FoldRef, DriverGeneric Drv) throws PDException
FoldRef
- Id of Folder under search forDrv
- OPD SessionPDException
- in any errorpublic static Condition genInFolder(java.lang.String FoldRef, DriverGeneric Drv) throws PDException
FoldRef
- Id of Folder under search forDrv
- OPD SessionPDException
- in any error