Previous Topic: OPERATION Statement—Specify the Operation to be InvokedNext Topic: OSUSER Statement—Specify the OS User Name


OPERATIONTYPE Statement—Specify the Operation Type

The OPERATIONTYPE statement indicates the operation to perform on the entity bean in an Entity Bean job. The Entity Bean job lets you create an entity bean, update the property values of an existing entity bean, or remove an entity bean from the database.

Supported Job Type

This statement is required for the Entity Bean job type.

Syntax

This statement has the following format:

OPERATIONTYPE CREATE|UPDATE|REMOVE
CREATE

Creates an entity bean that is stored in a relational database on your application server.

UPDATE

Updates the property values of an entity bean instance in a relational database on your application server.

REMOVE

Removes an instance of an entity bean stored in a relational database on your application server.

Notes:

Example: Remove an Entity Bean

Suppose that you want to remove the customer record for the Acme customer. The record is stored in the database by the customer ID. When the job runs, the row in the customer table that corresponds to the Acme customer ID is removed.

AGENT APPAGENT
INITIAL_CONTEXT weblogic.jndi.WLInitialContextFactory
LOCATION t3://localhost:7001
BEAN customer
OPERATIONTYPE REMOVE
FINDERMETHOD acme
FINDERPARAMETER TYPE(String) VALUE(customerid)