/** * Get the methodName. * * @return the methodName. */ public String getMethodName() { return getName(); }
/** * Set the methodName. * * @param methodName the methodName. * @throws IllegalArgumentException for a null methodName */ public void setMethodName(String methodName) { setName(methodName); }
TransactionTimeout timeoutAnnotation = new TransactionTimeoutImpl(method.getTransactionTimeout()); addAnnotations(TransactionTimeout.class, timeoutAnnotation, container, method.getMethodName(), null);
/** * Get the transaction timeout for the method * * @param methodName the method name * @return the transaction timeout */ public int getMethodTransactionTimeout(String methodName) { MethodAttributeMetaData attribute = getMethodAttribute(methodName); return attribute.getTransactionTimeout(); }
String pattern = getMethodName();
/** * Whether it is read only * * @return true for read only */ public boolean isReadOnly() { return getDelegate().isReadOnly(); }
/** * Whether this matches the method name * * @param methodName the method name * @return true for a match */ public boolean patternMatches(String methodName) { return getDelegate().matches(methodName); }
/** * Whether this is idempotent * * @return true for idempotent */ public boolean isIdempotent() { return getDelegate().isIdempotent(); }
/** * Get the transaction timeout * * @return the transaction timeout */ public int getTransactionTimeout() { return getDelegate().getTransactionTimeout(); } }
String pattern = getMethodName();
/** * Is this method a read-only method * * @param methodName the method name * @return true for read only */ public boolean isMethodReadOnly(String methodName) { MethodAttributeMetaData attribute = getMethodAttribute(methodName); return attribute.isReadOnly(); }
/** * Whether this matches the method name * * @param methodName the method name * @return true for a match */ public boolean patternMatches(String methodName) { return getDelegate().matches(methodName); }
/** * Whether this is idempotent * * @return true for idempotent */ public boolean isIdempotent() { return getDelegate().isIdempotent(); }
/** * Get the transaction timeout for the method * * @param methodName the method name * @return the transaction timeout */ public int getMethodTransactionTimeout(String methodName) { MethodAttributeMetaData attribute = getMethodAttribute(methodName); return attribute.getTransactionTimeout(); }
private void addAnnotations(Class<? extends Annotation> annotationClass, Annotation annotation, EJBContainer container, String methodName, MethodParametersMetaData params) { try { AnnotationRepository annotations = container.getAnnotations(); if (methodName.equals("*")) { log.debug("adding " + annotationClass.getName() + " annotation to " + ejbClass.getName() + "." + methodName); for (java.lang.reflect.Method declaredMethod : ejbClass .getDeclaredMethods()) { annotations.addAnnotation(declaredMethod, annotationClass, annotation); overrideAnnotations(container, declaredMethod, annotationClass .getName(), annotation); } } else { if (params == null) { java.lang.reflect.Method[] methods = ejbClass.getMethods(); boolean foundMethod = false; for (int methodIndex = 0; methodIndex < methods.length; ++methodIndex) { if (methods[methodIndex].getName().equals(methodName)) { log.debug("adding " + annotationClass.getName() + " method annotation to " + methods[methodIndex]);
/** * Is this method a read-only method * * @param methodName the method name * @return true for read only */ public boolean isMethodReadOnly(String methodName) { MethodAttributeMetaData attribute = getMethodAttribute(methodName); return attribute.isReadOnly(); }
if (attribute.matches(methodName))
/** * Get the methodName. * * @return the methodName. */ public String getMethodName() { return getName(); }
/** * Set the methodName. * * @param methodName the methodName. * @throws IllegalArgumentException for a null methodName */ public void setMethodName(String methodName) { setName(methodName); }
/** * Get the transaction timeout * * @return the transaction timeout */ public int getTransactionTimeout() { return getDelegate().getTransactionTimeout(); } }