|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.compoze.exchange.webdav.sql.AbstractSqlFragment
|
+--com.compoze.exchange.webdav.sql.Condition
|
+--com.compoze.exchange.webdav.sql.IsNullCondition
This class provides the implementation for creating a 'IS null' condition statement.
The following example demonstrates how to use this class:
IsNullCondition nullCond = new IsNullCondition("urn:schemas:contacts:givenName");
System.out.println(nullCond);
Calling toSQL() or toString() will return the SQL representation of this object.
For example, the above example would yield:
"urn:schemas:contacts:givenName" IS null
| Constructor Summary | |
IsNullCondition(java.lang.String sPropName)
Constructor. |
|
| Method Summary | |
void |
add(IOperator op)
Adds an operator clause. |
void |
add(IOperator op,
boolean bOr)
Adds an operator clause. |
void |
add(IPredicate predicate)
Adds a predicate clause. |
void |
add(IPredicate predicate,
boolean bOr)
Adds a predicate clause. |
void |
add(IsNullCondition condition)
|
void |
add(IsNullCondition IsNullCondition,
boolean bOr)
|
static Condition |
create()
Creates an empty condition statement. |
static Condition |
create(IOperator op)
Creates a condition with a specfied operator clause. |
static Condition |
create(IOperator op,
boolean bOr)
Creates a condition with a specfied operator clause. |
static Condition |
create(IPredicate predicate)
Creates a condition with a specfied predicate clause. |
static Condition |
create(IPredicate predicate,
boolean bOr)
Creates a condition with a specfied predicate clause. |
static Condition |
create(IsNullCondition condition)
|
static Condition |
create(IsNullCondition condition,
boolean bOr)
|
static void |
main(java.lang.String[] args)
|
java.lang.String |
toSQL()
Returns a SQL representation of the condition statement. |
| Methods inherited from class com.compoze.exchange.webdav.sql.Condition |
add, add, create, create, getCondition, isEmpty, isOr |
| Methods inherited from class com.compoze.exchange.webdav.sql.AbstractSqlFragment |
escape, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IsNullCondition(java.lang.String sPropName)
| Method Detail |
public static Condition create()
ConditionUnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.public static Condition create(IsNullCondition condition)
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.
public static Condition create(IsNullCondition condition,
boolean bOr)
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.public static Condition create(IOperator op)
ConditionUnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.
public static Condition create(IOperator op,
boolean bOr)
ConditionUnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.public static Condition create(IPredicate predicate)
ConditionUnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.
public static Condition create(IPredicate predicate,
boolean bOr)
ConditionUnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.public void add(IsNullCondition condition)
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.
public void add(IsNullCondition IsNullCondition,
boolean bOr)
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.public void add(IOperator op)
Conditionadd in class ConditionUnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.
public void add(IOperator op,
boolean bOr)
Conditionadd in class ConditionUnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.public void add(IPredicate predicate)
Conditionadd in class ConditionUnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.
public void add(IPredicate predicate,
boolean bOr)
Conditionadd in class ConditionUnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.public java.lang.String toSQL()
toSQL in class Conditionpublic static void main(java.lang.String[] args)
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||