Previous Topic: FILTER Statement—Specify a Filter Using Regular Expression Logic (SNMP Jobs)Next Topic: FINDERPARAMETER Statement—Specify Finder Parameters


FINDERMETHOD Statement—Specify a Finder Method

The FINDERMETHOD statement specifies the name of the finder method in an Entity Bean job. You require the finder method to update the property values of an existing entity bean or to remove an entity bean from the database. To find the entity bean, the agent uses the bean's Java Naming and Directory Interface (JNDI) name along with its finder method.

Supported Job Type

When the operation type is UPDATE or REMOVE, this statement is required for the Entity Bean job type.

Syntax

This statement has the following format:

FINDERMETHOD finder_method
finder_method

Specifies the name of the finder method.

Limits: Up to 1024 characters; case-sensitive

Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.

Example: Update the Phone Number for the Acme Company in a Database

Suppose that you want to update the phone number for the Acme company to 800-555-0199. The customer entity bean stores the customer ID and phone number. The primary key for the customer is the customer ID. To find the entity bean, the job uses the Acme's customer ID. When the job runs, the Acme company's phone number is changed.

AGENT APPAGENT
INITIAL_CONTEXT weblogic.jndi.WLInitialContextFactory
LOCATION t3://localhost:7001
BEAN customer
OPERATIONTYPE UPDATE
METHOD changephone
FINDERMETHOD acme
FINDERPARAMETER TYPE(String) VALUE(customerid)
MODIFYPARAMETER TYPE(String) VALUE(800-555-0199)