View Javadoc
1   // license-header java merge-point
2   //
3   // Attention: generated code (by Metafacade.vsl) - do not modify!
4   //
5   package org.andromda.cartridges.ejb3.metafacades;
6   
7   import org.andromda.metafacades.uml.OperationFacade;
8   
9   /**
10   * Represents an operation in an entity EJB bean POJO.
11   *
12   * Metafacade interface to be used by AndroMDA cartridges.
13   */
14  public interface EJB3OperationFacade
15      extends OperationFacade
16  {
17      /**
18       * Indicates the metafacade type (used for metafacade mappings).
19       *
20       * @return boolean always <code>true</code>
21       */
22      public boolean isEJB3OperationFacadeMetaType();
23  
24      /**
25       * The method call for the implementation operation.
26       * @return String
27       */
28      public String getImplementationCall();
29  
30      /**
31       * The name of the operation used within the entity implementation.
32       * @return String
33       */
34      public String getImplementationName();
35  
36      /**
37       * The signature for the implementation operation.
38       * @return String
39       */
40      public String getImplementationSignature();
41  
42      /**
43       * True/false on whether or not this operation is an EJB business operation.  This returns true
44       * if the operation is not one of the following:
45       * Create Method
46       * Finder or Query Method
47       * Select Method
48       * @return boolean
49       */
50      public boolean isBusinessOperation();
51  
52      /**
53       * Returns true if the operation has the <<CreateMethod>> stereotype.
54       * @return boolean
55       */
56      public boolean isCreateMethod();
57  
58      /**
59       * Returns true if the operation is a finder or query operation.
60       * @return boolean
61       */
62      public boolean isFinderMethod();
63  
64      /**
65       * Returns true if this operation is marked with any of the lifecycle callback stereotypes like
66       * PrePersist, PostPersist, PreRemove, PostRemove, PreUpdate, PostUpdate or PostLoad.
67       * @return boolean
68       */
69      public boolean isLifecycleCallback();
70  
71      /**
72       * Returns true if the associated operation has the <<PostLoad>> stereotype.
73       * NOTE: The method signature must return void and have no args.
74       * @return boolean
75       */
76      public boolean isPostLoad();
77  
78      /**
79       * Returns true if the associated operation has the <<PostPersist>> stereotype.
80       * NOTE: The method signature must return void and have no args.
81       * @return boolean
82       */
83      public boolean isPostPersist();
84  
85      /**
86       * Returns true if the associated operation has the <<PostRemove>> stereotype.
87       * NOTE: The method signature must return void and have no args.
88       * @return boolean
89       */
90      public boolean isPostRemove();
91  
92      /**
93       * Returns true if the associated operation has the <<PostUpdate>> stereotype.
94       * NOTE: The method signature must return void and have no args.
95       * @return boolean
96       */
97      public boolean isPostUpdate();
98  
99      /**
100      * Returns true if the associated operation has the <<PrePersist>> stereotype.
101      * NOTE: The method signature must return void and have no args.
102      * @return boolean
103      */
104     public boolean isPrePersist();
105 
106     /**
107      * Returns true if the associated operation has the <<PreRemove>> stereotype.
108      * NOTE: The method signature must return void and have no args.
109      * @return boolean
110      */
111     public boolean isPreRemove();
112 
113     /**
114      * Returns true if the associated operation has the <<PreUpdate>> stereotype.
115      * NOTE: The method signature must return void and have no args.
116      * @return boolean
117      */
118     public boolean isPreUpdate();
119 
120     /**
121      * True/false on whether or not this operation represents a select method.
122      * @return boolean
123      */
124     public boolean isSelectMethod();
125 }