Search
The Caboteria
/
Tech Web
/
JavaEntityBeans
(revision 1) (raw view)
An *Entity Bean* is persistent. The persistence can be *CMP* (container-managed persistence) or *BMP* (bean-managed persistence). Each bean has a *primary key* which is basically analogous to a rdbms primary key in that it uniquely identifies a specific bean. A bean can have transactional properties that allow it to participate in transactions, which are usually managed by the container. A bean must have: * Remote Interface ( =Foo= ) - business methods used by the client * Home Interface ( =FooHome= ) - methods used by the client to create and find the bean * Entity Bean Class ( =FooEJB= ) - the actual bean code The entity bean class must: * be declared =public= * implement =EntityBean= * have an empty constructor, and no finalize method * implement zero or more =ejbCreate()= and =ejbPostCreate()= methods * implement the To learn more: http://java.sun.com/j2ee/tutorial/doc/Entity.html -- Main.TobyCabot - 03 Apr 2001 <br>
Edit
|
Attach
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria?
Send feedback