public class DynamicsCrmWhereManager extends Object implements DynamicsCrmWhereComponent
Constructor and Description |
---|
DynamicsCrmWhereManager() |
Modifier and Type | Method and Description |
---|---|
void |
and()
Define the comparation of the \
|
void |
beginExpression()
A beginExpression means the first \
|
void |
comparison(String operator,
String field,
String value)
Adds a comparison element that is represented by
DynamicsCrmWhereLeaf and is translated as a \ |
void |
endPrecedence()
An end of precedence means go back to the previous \
|
String |
getQueryXml() |
void |
initPrecedence()
A new precedence means a new \
|
void |
or()
Define the comparation of the \
|
void |
release() |
public void beginExpression()
DynamicsCrmWhereComposite
of the compositepublic void initPrecedence()
DynamicsCrmWhereComposite
of the compositepublic void endPrecedence()
public void and()
DynamicsCrmQueryException
- By rule, the Dynamics CRM Query Language only allows one comparation per \Ex. WHERE a=1 AND b=2 OR c=3 throws an exception.
For solving this problem use agruppator
Ex. WHERE a=1 AND (b=2 OR c=3)
public void or()
DynamicsCrmQueryException
- By rule, the Dynamics CRM Query Language only allows one comparation per \Ex. WHERE a=1 AND b=2 OR c=3 throws an exception.
For solving this problem use agruppator
Ex. WHERE a=1 AND (b=2 OR c=3)
public void comparison(String operator, String field, String value)
DynamicsCrmWhereLeaf
and is translated as a \operator
- The operator for the conditionfield
- The name of the fieldvalue
- The value to compare topublic String getQueryXml()
getQueryXml
in interface DynamicsCrmWhereComponent
public void release()
release
in interface DynamicsCrmWhereComponent
Copyright © 2010–2017. All rights reserved.