001package org.andromda.cartridges.ejb.metafacades; 002 003import org.andromda.cartridges.ejb.EJBProfile; 004import org.apache.commons.lang.StringUtils; 005 006/** 007 * MetafacadeLogic implementation for org.andromda.cartridges.ejb.metafacades.EJBEntityAttributeFacade. 008 * 009 * @see org.andromda.cartridges.ejb.metafacades.EJBEntityAttributeFacade 010 */ 011public class EJBEntityAttributeFacadeLogicImpl 012 extends EJBEntityAttributeFacadeLogic 013{ 014 private static final long serialVersionUID = 34L; 015 // ---------------- constructor ------------------------------- 016 017 /** 018 * @param metaObject 019 * @param context 020 */ 021 public EJBEntityAttributeFacadeLogicImpl(Object metaObject, String context) 022 { 023 super(metaObject, context); 024 } 025 026 /** 027 * @return findTaggedValue(EJBProfile.TAGGEDVALUE_EJB_TRANSACTION_TYPE, true) 028 * @see org.andromda.cartridges.ejb.metafacades.EJBEntityAttributeFacade#getTransactionType() 029 */ 030 protected String handleGetTransactionType() 031 { 032 return (String)this.findTaggedValue(EJBProfile.TAGGEDVALUE_EJB_TRANSACTION_TYPE, true); 033 } 034 035 /** 036 * @see org.andromda.metafacades.uml.AttributeFacade#getGetterName() 037 */ 038 public String getGetterName() 039 { 040 return "get" + StringUtils.capitalize(super.getName()); 041 } 042}