Oracle® Calendar SDK Java API Reference
10g Release 1 (10.1.2)

B25487-01


oracle.calendar.sdk
Class Query

java.lang.Object
  extended byoracle.calendar.sdk.Query


public class Query
extends java.lang.Object

Field Summary
static int CSDK_LOP_AND
static int CSDK_LOP_OR
static int CSDK_OP_EQ
static int CSDK_OP_EQ_CS
static int CSDK_OP_GE
static int CSDK_OP_GT
static int CSDK_OP_LE
static int CSDK_OP_LT
static int CSDK_OP_NE
static int CSDK_OP_NE_CS
static int CSDK_OP_STARTSWITH
static int CSDK_OP_STARTSWITH_CS

Constructor Summary
Query(java.lang.String in_property, int in_operator, java.lang.String in_value)
Creates a query object to be used with CSDK_FetchEventsByQuery or CSDK_FetchContactsByQuery.

Method Summary
void addCondition(java.lang.String in_property, int in_operator, java.lang.String in_value, int in_logicalOperator)
Adds a condition to a query object.
void dispose()
Destroys a query object created by CSDK_CreateQuery.
void finalize()
Destroys a query object created by CSDK_CreateQuery.

Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

CSDK_OP_NE

public static final int CSDK_OP_NE
See Also:
Constant Field Values

CSDK_OP_EQ

public static final int CSDK_OP_EQ
See Also:
Constant Field Values

CSDK_OP_LT

public static final int CSDK_OP_LT
See Also:
Constant Field Values

CSDK_OP_LE

public static final int CSDK_OP_LE
See Also:
Constant Field Values

CSDK_OP_GT

public static final int CSDK_OP_GT
See Also:
Constant Field Values

CSDK_OP_GE

public static final int CSDK_OP_GE
See Also:
Constant Field Values

CSDK_OP_STARTSWITH

public static final int CSDK_OP_STARTSWITH
See Also:
Constant Field Values

CSDK_OP_NE_CS

public static final int CSDK_OP_NE_CS
See Also:
Constant Field Values

CSDK_OP_EQ_CS

public static final int CSDK_OP_EQ_CS
See Also:
Constant Field Values

CSDK_OP_STARTSWITH_CS

public static final int CSDK_OP_STARTSWITH_CS
See Also:
Constant Field Values

CSDK_LOP_AND

public static final int CSDK_LOP_AND
See Also:
Constant Field Values

CSDK_LOP_OR

public static final int CSDK_LOP_OR
See Also:
Constant Field Values

Constructor Detail

Query

public Query(java.lang.String in_property,
             int in_operator,
             java.lang.String in_value)
      throws Api.StatusException
Creates a query object to be used with CSDK_FetchEventsByQuery or CSDK_FetchContactsByQuery.

An initial condition is specified (for example, "LOCATION equals "pub") and more conditions may be added using CSDK_AddConditionToQuery.

Parameters:
in_property - The property name to be compared, e.g. "N"
in_operator - Integer specifying which comparison operator to use
in_value - Property value with which eligible objects will be compared
Throws:
Api.StatusException

Method Detail

finalize

public void finalize()
              throws java.lang.Throwable
Destroys a query object created by CSDK_CreateQuery.
Throws:
java.lang.Throwable

dispose

public void dispose()
             throws java.lang.Throwable
Destroys a query object created by CSDK_CreateQuery.
Throws:
java.lang.Throwable

addCondition

public void addCondition(java.lang.String in_property,
                         int in_operator,
                         java.lang.String in_value,
                         int in_logicalOperator)
                  throws Api.StatusException
Adds a condition to a query object.

Each query may have multiple conditions, each AND'ed or OR'ed with the previous condition(s). There is no way to group conditions, and the OR operator (CSDK_LOP_OR) has a higher priority than the AND operator (CSDK_LOP_AND). Thus, C1 OR C2 AND C3 evaluates as (C1 OR C2) AND C3.

Parameters:
in_property - The property name to be compared, e.g. "N"
in_operator - Integer specifying which comparison operator to use
in_value - Property value with which eligible objects will be compared
in_logicalOperator - Specifies the operator to use between existing conditions and this one (for example, "OR", "AND")
Throws:
Api.StatusException

Oracle® Calendar SDK Java API Reference
10g Release 1 (10.1.2)

B25487-01


Copyright © 1998, 2005, Oracle. All rights reserved.