User: juha
Date: 00/08/20 13:29:17
Modified: src/resources/org/jboss/verifier DefaultMessages.properties
Log:
Verifies entity bean class (section 9.2.2):
- must implement EntityBean
- public, non-abstract, non-final class
- default constructor
- no finalizer()
Verifies ejbCreate(...) methods (section 9.2.3):
- must be public, non-final, non-static
- must return bean's prim key type
- must be legal RMI/IIOP (NYI)
Verifies ejbPostCreate(...) methods (section 9.2.4)
- must be public, non-final, non-static
- must return void
- args must match corresponding ejbCreate(...)
Verifies ejbFind methods (section 9.2.5)
- all entities must define ejbFindByPrimaryKey
- finder return type must be prim key type, Collection or Enumeration
- finder must be public, non-final, non-static
- finder method arguments must be legal RMI/IIOP (NYI)
Revision Changes Path
1.4 +27 -0
jboss/src/resources/org/jboss/verifier/DefaultMessages.properties
Index: DefaultMessages.properties
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/resources/org/jboss/verifier/DefaultMessages.properties,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DefaultMessages.properties 2000/07/25 17:36:12 1.3
+++ DefaultMessages.properties 2000/08/20 20:29:17 1.4
@@ -35,6 +35,33 @@
6.10.6.d = The methods in the home interface must include java.rmi.RemoteException
in their throws clause.
6.10.6.e = A session bean's home interface must define one or more create(...)
methods.
+9.2.2.a = The entity bean's class must implement, directly or indirectly, the
javax.ejb.EntityBean interface.
+9.2.2.b = The entity bean class must be defined as public.
+9.2.2.c = The entity bean class must not be defined as abstract.
+9.2.2.d = The entity bean class must not be defined as final.
+9.2.2.e = The entity bean class must define a public constructor that takes no
arguments.
+9.2.2.f = The entity bean class must not define the finalize() method.
+
+9.2.3.a = The ejbCreate(...) method of an entity bean class must be declared as
public.
+9.2.3.b = The ejbcreate(...) method of an entity bean class must not be declared
as final or static.
+9.2.3.c = The return type of an ejbCreate(...) method must be the entity bean's
primary key type.
+9.2.3.d = The method arguments of an ejbCreate(...) method must be legal types
for RMI/IIOP.
+9.2.3.e = The return value type of an ejbCreate(...) method must be legal type
for RMI/IIOP.
+
+9.2.4.a = For each ejbCreate(...) method, the entity bean class must define a
matching ejbPostCreate(...) method.
+9.2.4.b = The ejbPostCreate(...) method must be declared as public.
+9.2.4.c = The ejbPostCreate(...) method must not be declared as static.
+9.2.4.d = The ejbPostCreate(...) method must not be declared as final.
+
+9.2.5.a = Every entity bean must define the ejbFindByPrimaryKey method.
+9.2.5.b = The return type of the ejbFindByPrimaryKey method must be the primary
key type.
+9.2.5.c = The ejbFindByPrimaryKey method must be a single-object finder.
+9.2.5.d = A finder method must be declared as public.
+9.2.5.e = A finder method must not be declared as final.
+9.2.5.f = A finder method must not be declared as static.
+9.2.5.g = The method argument types of a finder method must be legal types for
RMI/IIOP.
+9.2.5.h = The finder method return type must be either the entity bean's primary
key type or an instance of the Enumeration or the Collection interface.
+
16.2.b = The Bean Provider must specify the fully-qualified name of the Java
class that implements the enterprise bean's business methods.
16.2.c = The Bean Provider must specify the fully-qualified name of the
enterprise bean's home interface in the home element.
16.2.d = The Bean Provider must specify the fully-qualified name of the
enterprise bean's remote interface in the remote element.