DevPortal

What are EJB 2.0 Specific Validations?


The following table lists the EJB 2.0 specific validations:

Table 1: Validating EJB 2.0

Validation ConditionError Messages
Local Home i/fBeanName: Local Home class could not be loaded
LocalHome: Interface ExtendsEJBLocalHomeBeanName: LocalHome does not extend EJBLocalHome
LocalHome: InterfacePublicBeanName: LocalHomeInterface should be declared public
LocalHomeMethodModifiersBean Name: Local Home methods should be public and not static
LocalHome: MethodNameMatchBean Name: Local Home methods do not match with the Bean class
Local I/f: PublicBeanName: Local Component Interface not declared public
Local I/f: Extends EJBLocalObjectBeanName: Local Component i/f does not extend EJBLocalObject
Local I/f: Corresponding methods on the bean classBeanName: Local i/f methods do not corresponding to the bean class
CMP 2.0: Cascade Delete not supported for Many - Many relationBeanName: Many - Many relation cannot specify cascade - delete
CMP 2.0: CMF field declaration: Accessor methods Upper case get/setBeanName: Invalid Container Managed Field Accessor
CMP 2.0: CMFs Public or Protected and AbstractBeanName: CMFs should be declared abstract
CMP 2.0: CMF starts with lower caseBeanName: CMFs should start with lower case
CMP 2.0: CMF validBeanName: CMF should be primitive/serializable/remote/home reference
CMP 2.0: CMF declared in beanBeanName: CMF should not be declared in the Bean Class
CMP 2.0: CMR declaration: Accessor methods Upper case get/setBeanName: Invalid Container Managed Relation Accessor
CMP 2.0: CMRs Accessors public /protected and AbstractBeanName: CMR accessors should be declared public/protected and abstract
CMP 2.0: CMRs must start with lower caseBeanName: CMRs should start with lower case
CMP 2.0: CMR Local Interface for One - One Collection for One -Many or Many - ManyBeanName: Invalid CMR declaration
CMP 2.0: CMR fields VirtualBeanName: CMR accessors should be declared virtual
CMP 2.0: CMR MultiplicityBeanName: CMR Type - EJBLocalObject for One -One or Many -One Collection/Set for One - Many or Many - Many
EjbFinders: abstractBeanName: Finder method should not be declared in the bean class
EjbSelect: throws FinderExceptionBeanName: Select method should throw FinderException
EjbSelect: Public and abstractBeanName: Select method should be abstract and public
EjbSelect: QL associationBeanName: ejbSelect method not associated with QL
EjbSelect: Param Length and param matchingBeanName: ejbSelect Method params declared in the BeanClass and those declared in the ejb-jar.xml do not match


Related Topics:

© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal