1 21 package oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.objects; 23 24 import java.lang.reflect.Method ; 25 26 import oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataHelper; 27 28 34 public class MetadataMethod extends MetadataAccessibleObject { 35 protected Method m_setMethod; 36 37 40 public MetadataMethod(Method method) { 41 super(method); 42 43 m_setMethod = MetadataHelper.getSetMethod(method, method.getDeclaringClass()); 44 45 setName(method.getName()); 46 setAttributeName(MetadataHelper.getAttributeNameFromMethodName(method.getName())); 47 setRelationType(MetadataHelper.getGenericReturnType(method)); 48 } 49 50 53 public String getSetMethodName() { 54 return m_setMethod.getName(); 55 } 56 } 57 | Popular Tags |