DevPortal

What are Entity Beans Level Validations?


The following table lists the entity beans level validations:

Table 1: Validating entity beans

Validation ConditionError Messages
CMP: Container Managed Fields Valid or not.BeanName: Invalid field declared as CMF should be primitive, serializable, home./remote.
BMP: Persistent fields declaredBean Name: Persistent fields cannot be declared for BMPs
CMP: at least one CMP fieldBeanName: CMP bean should have at least one CM field
ejbcreate: Not finalBean Name: ejbcreate should not be final
ejbcreate: PublicBeanName: ejbcreate should be public
ejbcreate: Not staticBeanName: ejbcreate should not be static
ejbCreate: Return typeBean Name: ejbCreate should return PrimaryKey class.
ejbCreate: parameter typeBean Name: ejbCreate should have valid parameter type.
ejbfindbyPK: Not staticBeanName: ejbfindbyPK should not be static
ejbfindbyPK: Not finalBeanName: ejbfindbyPK should not be final
ejbfindbyPK: PublicBeanName: ejbfindbyPk should be public
ejbfindbyPK: valid return typeBeanName: ejbfindbyPK should have valid return type: return type details
ejbfindbyPK: valid parameter typesBeanName: ejbfindbyPk should have valid param types: param details
ejbFindByPK: Return typeBeanName: ejbFindByPk should return primary Key Class.
PKClass: Constructor with no paramsBeanName: PKClass should have a constructor with no params
PKClass: PublicBeanName: PKClass should be declared public
PKClass: Valid RMI-IIOP typeBeanName: PKClass should be a valid RMI-IIOP type
CMP: PKClass: all fields within CMFsBeanName: PKClass should be defined within CMFs
CMP: CMFs within bean fieldsBeanName: CMF not found in bean
CMP: CMFs not transientBeanName: CMFs should not be declared as transient
PKClass: should override equals and hashcodeBeanName: PKClass should override equals and hashcode
MultiObject Finders: No ObjectNot found ExceptionBeanName: MultiObjectFinders should not throw ObjectNotFoundException
CMP: Persistent fields validBeanName: Invalid persistent field declared: Field details
ejbpostcreate - ejbcreate: match paramsBeanName: postcreate and create don't match
Home findbyPK: at least oneBeanName: there must be at least one findbyPK on the home interface
Home findbyPK: Param Type PKClassBeanName: the return type of findByPK should be of type PKClass of the bean
ejbFinders: Not StaticBeanName: EjbFinder methods cannot be declared static
ejbFinders: Not finalBeanName: EjbFinder methods cannot be declared final
ejbFinders: PublicBeanName: EjbFinder methods should be declared public
ejbFinders: valid parameter typesBeanName: EjbFinder methods should have valid parameter types
ejbFinders: Return typeBeanName: EjbFinder methods should return primary key or collection of PKs
HomeFinders: Return typeBeanName: Finder Method should return Remote Interface
HomeFinders: Finder ExceptionBeanName: Finder methods should throw finder exception
HomeFinders: corresponding ejbFinder methodBeanName: No corresponding ejbFinder method found: finder method details
HomeFinders: Remote ExceptionBeanName: Finder method should throw RemoteException
ejbPostCreate: Matching create methodsBeanName: all ejbcreate methods should have matching ejbPostCreateMethods
ejbPostCreate: Not FinalBeanName: ejbPostCreate Methods cannot be declared final
ejbPostCreate: Not StaticBeanName: ejbPostCreate Methods cannot be declared static
ejbPostCreate: Return typeBeanName: ejbPostCreate Methods should return void
ejbPostCreate: PublicBeanName: ejbPostCreate Methods should be declared public
Home Interface Methods:BeanName: Home Interface Should be only create or finder methods
Transaction attributes on remote i/f-
*Home Intf: each method corresponding method pre-fix: ejbHomeBeanName: Home Method <> does not have corresponding method
InterfaceInterface
InterfaceInterface


Related Topics:

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