ECOrganizationQuery object

The ECOrganizationQuery object, used to perform member search, can be extended. The ECOrganizationQuery object works just like the ECUserQuery object.

You can query these tables:

Database table Description
ORGENTITY The organization's ORGENTITY record
ADDRESS The address for the organization.
MBRATTRVAL The member attribute values for this organization
MBRREL The organization's ancestor hierarchy

This means that you can search based on any numeric or string attribute in any of these tables.

Example: Search organizations by organization name

ECOrganizationQuery query = new ECOrganizationQuery(); 

WhereClauseSearchCondition whereClause = 
  new WhereClauseSearchCondition(


Vector vecResults =
  (new UserSearchAccessBean())