public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { if(method == null) { return "ejbSelect"; //$NON-NLS-1$ } return method.getName(); }
public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { if(method == null) { return ""; //$NON-NLS-1$ } return method.getName(); }
public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { if(method == null) { return "ejbHome"; //$NON-NLS-1$ } return method.getName(); }
public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { if(method == null) { return "find"; //$NON-NLS-1$ } return method.getName(); }
public String getMethodName(EnterpriseBean bean, JavaClass clazz, Method method) { if(method == null) { return "ejbFind"; //$NON-NLS-1$ } return method.getName(); }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { if(method == null) { return false; } if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_EJBHOME)) { return true; } return false; }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { if(method == null) { return false; } if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_CREATE)) { return true; } return false; }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { if(method == null) { return false; } if(method.getName().startsWith(IMethodAndFieldConstants.PREFIX_EJBFIND)) { return true; } return false; }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { if(method == null) { return false; } if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_EJBCREATE)) { return true; } return false; }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { if(method == null) { return false; } if(method.getName().startsWith(IMethodAndFieldConstants.METHODNAME_EJBPOSTCREATE)) { return true; } return false; }
public String getMatchingEjbPostCreateMethodName(IEJBValidationContext vc, Method method) { StringBuffer buffer = new StringBuffer(IMethodAndFieldConstants.PREFIX_C); // Strip the "ejbPostC" off of "create" and replace with "c" buffer.append(method.getName().substring(8)); return buffer.toString(); }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { if(method == null) { return false; } if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBLOAD)) { if(method.listParametersWithoutReturn().length == 0) { return true; } } return false; }
protected static String getFieldName(Method aMethod) { if (aMethod == null) return null; return getFieldName(aMethod.getName()); }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { if(method == null) { return false; } if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBACTIVATE)) { if(method.listParametersWithoutReturn().length == 0) { return true; } } return false; }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { if(method == null) { return false; } if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBREMOVE)) { if(method.listParametersWithoutReturn().length == 0) { return true; } } return false; }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { if(method == null) { return false; } if(method.getName().equals(IMethodAndFieldConstants.METHODNAME_EJBSTORE)) { if(method.listParametersWithoutReturn().length == 0) { return true; } } return false; }
/** * Does the method name start with "get", and is the method a zero arg * method, that does not return void? */ protected static boolean isGetter(Method aMethod) { String name = aMethod.getName(); return name != null && name.startsWith(GET) && name.length() > 3 && aMethod.listParametersWithoutReturn().length==0 && !aMethod.isVoid(); }
public boolean isMethodType(EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { // It's a business method if it's exposed on the component interface. // HACK ... depends on the fact that ABeanClassVRule, and its subtypes, are the only classes that will ever have a BUSINESS method. if(ValidationRuleUtility.getMethod(method, method.getName(), ABeanClassVRule.getRemoteComponentMethodsExtended(methodsExtendedLists)) != null) { return true; } if(ValidationRuleUtility.getMethod(method, method.getName(), ABeanClassVRule.getRemoteComponentMethodsExtended(methodsExtendedLists)) != null) { return true; } // internal helper method return false; }
/** * Checks to see if @ejbMethod is one of the required methods. */ protected void primValidateExistence(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method ejbMethod) throws InvalidInputException { // Can't invoke an abstract method //super.validateExistence(ejbMethod); if (IMethodAndFieldConstants.METHODNAME_EJBCREATE.equals(ejbMethod.getName())) incrementCreateMethodCount(vc, bean, clazz, ejbMethod); else if (ejbMethod.isConstructor()) validateConstructor(vc, bean, clazz, ejbMethod); }
public final void validateMatchingComponentMethod(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz, Method method, List[] methodsExtendedLists) { Method remoteMethod = ValidationRuleUtility.getMethod(method, method.getName(), getRemoteComponentMethodsExtended(methodsExtendedLists)); if(remoteMethod != null) { validateMatchingMethodExceptions(vc, bean, clazz, method, bean.getRemoteInterface(), remoteMethod); } Method localMethod = ValidationRuleUtility.getMethod(method, method.getName(), getLocalComponentMethodsExtended(methodsExtendedLists)); if(localMethod != null) { validateMatchingMethodExceptions(vc, bean, clazz, method, bean.getLocalInterface(), localMethod); } }