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
Creates an entity bean that is stored in a relational database on your application server.
Updates the property values of an entity bean instance in a relational database on your application server.
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)
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|