1 package org.andromda.cartridges.ejb.metafacades;
2
3 import org.andromda.cartridges.ejb.EJBProfile;
4
5 /***
6 * MetafacadeLogic implementation for org.andromda.cartridges.ejb.metafacades.EJBOperationFacade.
7 *
8 * @see org.andromda.cartridges.ejb.metafacades.EJBOperationFacade
9 */
10 public class EJBOperationFacadeLogicImpl
11 extends EJBOperationFacadeLogic
12 {
13
14
15 public EJBOperationFacadeLogicImpl(Object metaObject, String context)
16 {
17 super(metaObject, context);
18 }
19
20 /***
21 * @see org.andromda.cartridges.ejb.metafacades.EJBOperationFacade#getTransactionType()
22 */
23 protected java.lang.String handleGetTransactionType()
24 {
25 return (String)this.findTaggedValue(EJBProfile.TAGGEDVALUE_EJB_TRANSACTION_TYPE, true);
26 }
27
28 /***
29 * @see org.andromda.cartridges.ejb.metafacades.EJBOperationFacade#isBusinessOperation()
30 */
31 protected boolean handleIsBusinessOperation()
32 {
33 return !this.hasStereotype(EJBProfile.STEREOTYPE_CREATE_METHOD) &&
34 !this.hasStereotype(EJBProfile.STEREOTYPE_FINDER_METHOD) &&
35 !this.hasStereotype(EJBProfile.STEREOTYPE_SELECT_METHOD);
36 }
37
38 /***
39 * @see org.andromda.cartridges.ejb.metafacades.EJBOperationFacade#isSelectMethod()
40 */
41 protected boolean handleIsSelectMethod()
42 {
43 return this.hasStereotype(EJBProfile.STEREOTYPE_SELECT_METHOD);
44 }
45 }