/* */ {
/* 2003 */ boolean status = true;
/* */
/* 2010 */ if (!hasEntityBeanInterface(this.bean))
/* */ {
/* 2012 */ fireSpecViolationEvent(entity, new Section("12.2.2.a"));
/* 2013 */ status = false;
/* */ }
/* */
/* 2020 */ if ((!isPublic(this.bean)) || (isAbstract(this.bean)))
/* */ {
/* 2022 */ fireSpecViolationEvent(entity, new Section("12.2.2.b"));
/* 2023 */ status = false;
/* */ }
/* */
/* 2030 */ if (isFinal(this.bean))
/* */ {
/* 2032 */ fireSpecViolationEvent(entity, new Section("12.2.2.c"));
/* 2033 */ status = false;
/* */ }
/* */
/* 2041 */ if (!hasDefaultConstructor(this.bean))
/* */ {
/* 2043 */ fireSpecViolationEvent(entity, new Section("12.2.2.d"));
/* 2044 */ status = false;
/* */ }
/* */
/* 2051 */ if (hasFinalizer(this.bean))
/* */ {
/* 2053 */ fireSpecViolationEvent(entity, new Section("12.2.2.e"));
/* 2054 */ status = false;
/* */ }
/* */
/* 2069 */ if (hasEJBCreateMethod(this.bean, false))
/* */ {
/* 2071 */ Iterator it = getEJBCreateMethods(this.bean);
/* 2072 */ while (it.hasNext())
/* */ {
/* 2074 */ Method ejbCreate = (Method)it.next();
/* 2075 */ if (!isPublic(ejbCreate))
/* */ {
/* 2077 */ fireSpecViolationEvent(entity, ejbCreate, new Section("12.2.3.a"));
/* */
/* 2079 */ status = false;
/* */ }
/* */
/* 2082 */ if ((isFinal(ejbCreate)) || (isStatic(ejbCreate)))
/* */ {
/* 2084 */ fireSpecViolationEvent(entity, ejbCreate, new Section("12.2.3.b"));
/* */
/* 2086 */ status = false;
/* */ }
/* */
/* 2089 */ if (!hasPrimaryKeyReturnType(entity, ejbCreate))
/* */ {
/* 2091 */ fireSpecViolationEvent(entity, ejbCreate, new Section("12.2.3.c"));
/* */
/* 2093 */ status = false;
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* 2124 */ if (hasEJBCreateMethod(this.bean, false))
/* */ {
/* 2126 */ Iterator it = getEJBCreateMethods(this.bean);
/* 2127 */ while (it.hasNext())
/* */ {
/* 2129 */ Method ejbCreate = (Method)it.next();
/* */
/* 2131 */ if (!hasMatchingEJBPostCreate(this.bean, ejbCreate))
/* */ {
/* 2133 */ fireSpecViolationEvent(entity, ejbCreate, new Section("12.2.4.a"));
/* */
/* 2135 */ status = false;
/* */ }
/* */
/* 2138 */ if (hasMatchingEJBPostCreate(this.bean, ejbCreate))
/* */ {
/* 2140 */ Method ejbPostCreate = getMatchingEJBPostCreate(this.bean, ejbCreate);
/* */
/* 2143 */ if (!isPublic(ejbPostCreate))
/* */ {
/* 2145 */ fireSpecViolationEvent(entity, ejbPostCreate, new Section("12.2.4.b"));
/* */
/* 2147 */ status = false;
/* */ }
/* */
/* 2150 */ if ((isStatic(ejbPostCreate)) || (isFinal(ejbPostCreate)))
/* */ {
/* 2152 */ fireSpecViolationEvent(entity, ejbPostCreate, new Section("12.2.4.c"));
/* */
/* 2154 */ status = false;
/* */ }
/* */
/* 2157 */ if (!hasVoidReturnType(ejbPostCreate))
/* */ {
/* 2159 */ fireSpecViolationEvent(entity, ejbPostCreate, new Section("12.2.4.d"));
/* */
/* 2161 */ status = false;
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* 2176 */ if (!hasEJBFindByPrimaryKey(this.bean))
/* */ {
/* 2178 */ fireSpecViolationEvent(entity, new Section("12.2.5.e"));
/* 2179 */ status = false;
/* */ }
/* */
/* 2182 */ if (hasEJBFindByPrimaryKey(this.bean))
/* */ {
/* 2184 */ Method ejbFindByPrimaryKey = getEJBFindByPrimaryKey(this.bean);
/* */
/* 2186 */ if (!hasPrimaryKeyReturnType(entity, ejbFindByPrimaryKey))
/* */ {
/* 2188 */ fireSpecViolationEvent(entity, ejbFindByPrimaryKey, new Section("12.2.5.e1"));
/* */
/* 2190 */ status = false;
/* */ }
/* */
/* 2193 */ if (!isSingleObjectFinder(entity, ejbFindByPrimaryKey))
/* */ {
/* 2195 */ fireSpecViolationEvent(entity, ejbFindByPrimaryKey, new Section("12.2.5.e2"));
/* */
/* 2197 */ status = false;
/* */ }
/* */
/* */ }
/* */
/* 2216 */ if (hasFinderMethod(this.bean))
/* */ {
/* 2218 */ Iterator it = getEJBFindMethods(this.bean);
/* 2219 */ while (it.hasNext())
/* */ {
/* 2221 */ Method finder = (Method)it.next();
/* */
/* 2223 */ if (!isPublic(finder))
/* */ {
/* 2225 */ fireSpecViolationEvent(entity, finder, new Section("12.2.5.a"));
/* 2226 */ status = false;
/* */ }
/* */
/* 2229 */ if ((isFinal(finder)) || (isStatic(finder)))
/* */ {
/* 2231 */ fireSpecViolationEvent(entity, finder, new Section("12.2.5.b"));
/* 2232 */ status = false;
/* */ }
/* */
/* 2244 */ if ((!isSingleObjectFinder(entity, finder)) && (!isMultiObjectFinder(finder)))
/* */ {
/* 2247 */ fireSpecViolationEvent(entity, finder, new Section("12.2.5.d"));
/* 2248 */ status = false;
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* 2262 */ Iterator it = getEjbHomeMethods(this.bean);
/* 2263 */ while (it.hasNext())
/* */ {
/* 2265 */ Method ejbHome = (Method)it.next();
/* */
/* 2267 */ if (!isPublic(ejbHome))
/* */ {
/* 2269 */ fireSpecViolationEvent(entity, ejbHome, new Section("10.6.6.a"));
/* 2270 */ status = false;
/* */ }
/* */
/* 2273 */ if (isStatic(ejbHome))
/* */ {
/* 2275 */ fireSpecViolationEvent(entity, ejbHome, new Section("10.6.6.b"));
/* 2276 */ status = false;
/* */ }
/* */
/* 2279 */ if (throwsRemoteException(ejbHome))
/* */ {
/* 2281 */ fireSpecViolationEvent(entity, ejbHome, new Section("10.6.6.c"));
/* 2282 */ status = false;
/* */ }
/* */ }
/* */
/* 2286 */ return status;