Compoze Software, Inc.

com.compoze.exchange.webdav.sql
Class IsNullCondition


java.lang.Object

  |

  +--com.compoze.exchange.webdav.sql.AbstractSqlFragment

        |

        +--com.compoze.exchange.webdav.sql.Condition

              |

              +--com.compoze.exchange.webdav.sql.IsNullCondition

All Implemented Interfaces:
ISqlFragment, java.io.Serializable

public class IsNullCondition
extends Condition

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
 

See Also:
Serialized Form

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

IsNullCondition


public IsNullCondition(java.lang.String sPropName)
Constructor.
Method Detail

create


public static Condition create()
Description copied from class: Condition
Creates an empty condition statement.
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

create


public static Condition create(IsNullCondition condition)
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

create


public static Condition create(IsNullCondition condition,
                               boolean bOr)
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

create


public static Condition create(IOperator op)
Description copied from class: Condition
Creates a condition with a specfied operator clause.
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

create


public static Condition create(IOperator op,
                               boolean bOr)
Description copied from class: Condition
Creates a condition with a specfied operator clause.
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

create


public static Condition create(IPredicate predicate)
Description copied from class: Condition
Creates a condition with a specfied predicate clause.
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

create


public static Condition create(IPredicate predicate,
                               boolean bOr)
Description copied from class: Condition
Creates a condition with a specfied predicate clause.
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

add


public void add(IsNullCondition condition)
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

add


public void add(IsNullCondition IsNullCondition,
                boolean bOr)
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

add


public void add(IOperator op)
Description copied from class: Condition
Adds an operator clause.
Overrides:
add in class Condition
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

add


public void add(IOperator op,
                boolean bOr)
Description copied from class: Condition
Adds an operator clause.
Overrides:
add in class Condition
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

add


public void add(IPredicate predicate)
Description copied from class: Condition
Adds a predicate clause.
Overrides:
add in class Condition
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

add


public void add(IPredicate predicate,
                boolean bOr)
Description copied from class: Condition
Adds a predicate clause.
Overrides:
add in class Condition
Throws:
UnsupportedOperationException - if the getFromAddressesString operation is not supported by this contact.

toSQL


public java.lang.String toSQL()
Returns a SQL representation of the condition statement.
Overrides:
toSQL in class Condition
Returns:
the SQL representation of the condition statement.

main


public static void main(java.lang.String[] args)

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.