Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Enterprise JavaBeans™ Specification, Version 2.0 - Sun Microsystems.pdf
Скачиваний:
14
Добавлен:
24.05.2014
Размер:
2.71 Mб
Скачать

Sun Microsystems Inc.

EJB 1.1 Entity Bean Component Contract for Container Managed PersistenceEnterprise JavaBeans 2.0, Public Draft Object interaction

13.2.7 Finding an entity object

Figure 56 OID of execution of a finder method on an entity bean instance with EJB 1.1 container-managed persistence

container-provided classes

client

EJB

EJB

container entity

synchro-

instance transaction database

 

Home

Object

context

nization

service

 

 

 

 

 

 

find<METHOD>(args)

search DB

new

13.2.8 Adding and removing an instance from the pool

The diagrams in Subsections 13.2.7 through 13.2.7 did not show the sequences between the “does not exist” and “pooled” state (see the diagram in Section 11.1.4).

5/31/00

276

Sun Microsystems Inc

Object interaction diagrams

Enterprise JavaBeans 2.0, Public Draft EJB 1.1 Entity Bean Component Contract for

Figure 57 OID of a container adding an instance to the pool

container-provided classes

EJB

EJB

container entity

synchro-

instance transaction database

Home

Object

context

nization

service

 

 

 

 

 

new

new

setEntityContext(ec)

Figure 58 OID of a container removing an instance from the pool

container-provided classes

EJB

EJB

container entity

synchro-

instance transaction database

Home

Object

context

nization

service

 

 

 

 

 

unsetEntityContext()

277

5/31/00

Sun Microsystems Inc.

EJB 1.1 Entity Bean Component Contract for Container Managed PersistenceEnterprise JavaBeans 2.0, Public Draft Object interaction

5/31/00

278