01: package org.andromda.cartridges.ejb.metafacades;
02:
03: import org.andromda.cartridges.ejb.EJBProfile;
04:
05: /**
06: * MetafacadeLogic implementation for org.andromda.cartridges.ejb.metafacades.EJBOperationFacade.
07: *
08: * @see org.andromda.cartridges.ejb.metafacades.EJBOperationFacade
09: */
10: public class EJBOperationFacadeLogicImpl extends
11: EJBOperationFacadeLogic {
12: // ---------------- constructor -------------------------------
13:
14: public EJBOperationFacadeLogicImpl(Object metaObject, String context) {
15: super (metaObject, context);
16: }
17:
18: /**
19: * @see org.andromda.cartridges.ejb.metafacades.EJBOperationFacade#getTransactionType()
20: */
21: protected java.lang.String handleGetTransactionType() {
22: return (String) this .findTaggedValue(
23: EJBProfile.TAGGEDVALUE_EJB_TRANSACTION_TYPE, true);
24: }
25:
26: /**
27: * @see org.andromda.cartridges.ejb.metafacades.EJBOperationFacade#isBusinessOperation()
28: */
29: protected boolean handleIsBusinessOperation() {
30: return !this .hasStereotype(EJBProfile.STEREOTYPE_CREATE_METHOD)
31: && !this
32: .hasStereotype(EJBProfile.STEREOTYPE_FINDER_METHOD)
33: && !this
34: .hasStereotype(EJBProfile.STEREOTYPE_SELECT_METHOD);
35: }
36:
37: /**
38: * @see org.andromda.cartridges.ejb.metafacades.EJBOperationFacade#isSelectMethod()
39: */
40: protected boolean handleIsSelectMethod() {
41: return this.hasStereotype(EJBProfile.STEREOTYPE_SELECT_METHOD);
42: }
43: }
|