Hierarchy Developer's Guide for Oracle Self-Service E-Billing > APIs for Customizing <ProductName> Hierarchy Manager >

IExpression Interface


This interface represents different filter operations you can have on a query, especially for searching name-value pairs such as hierarchy node attributes. Use IHierarchyService.createExpression() to get an instance of this object.

Table 2. IExpression Methods
Method
Description

IFilter and(IFilter c1, IFilter c2)

Create a filter which does the AND logic operation on the two passed-in filters.

IFilter between(java.lang.String propertyName, java.lang.Object lo, java.lang.Object hi)

Create a filter which does the BETWEEN operation.

IFilter eq(java.lang.String propertyName, java.lang.Object value)

Create a filter which does the EQUAL logic operation.

IFilter ge(java.lang.String propertyName, java.lang.Object value)

Create a filter which does the GREATER THAN OR EQUAL (>=) operation.

IFilter gt(java.lang.String propertyName, java.lang.Object value)

Create a filter which does the GREATER THAN (>) operation.

IFilter in(java.lang.String propertyName, java.util.Collection values)

Create a filter which does the IN operation.

IFilter isNotNull(java.lang.String propertyName)

Create a filter which does the IS NOT NULL operation.

IFilter isNull(java.lang.String propertyName)

Create a filter which does the IS NULL operation.

IFilter le(java.lang.String propertyName, java.lang.Object value)

Create a filter which does the LESS THAN OR EQUAL (<=) operation.

IFilter like(java.lang.String propertyName, java.lang.Object value)

Create a filter which does the SQL LIKE operation.

IFilter lt(java.lang.String propertyName, java.lang.Object value)

Create a filter which does the LESS THAN (<) operation.

IFilter not(IFilter expression)

Create a filter which does the NOT operation on the passed in filter.

IFilter or(IFilter c1, IFilter c2)

Create a filter which does the OR logic operation on the two passed-in filters.

IFilter sql(java.lang.String sql)

Create a filter using the passed in SQL expression.

Hierarchy Developer's Guide for Oracle Self-Service E-Billing Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices.