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.ParameterFacade;
8
9 /**
10 * Represents an argument in a EJB3 finder method.
11 *
12 * Metafacade interface to be used by AndroMDA cartridges.
13 */
14 public interface EJB3FinderMethodArgumentFacade
15 extends ParameterFacade
16 {
17 /**
18 * Indicates the metafacade type (used for metafacade mappings).
19 *
20 * @return boolean always <code>true</code>
21 */
22 public boolean isEJB3FinderMethodArgumentFacadeMetaType();
23
24 /**
25 * Returns the temporal type value set via tagged value on finder method parameters if one
26 * exists. Expect one of DATE, TIME, TIMESTAMP or NONE. This is used in the Query.setParameter
27 * method.
28 * @return String
29 */
30 public String getTemporalType();
31
32 /**
33 * Returns true if this parameter is of type enum and has ordinal values.
34 * @return boolean
35 */
36 public boolean isEnumerationTypeOrdinal();
37
38 /**
39 * Returns true if this parameter is of type enum and has string values.
40 * @return boolean
41 */
42 public boolean isEnumerationTypeString();
43
44 /**
45 * Returns true if FirstResult stereotype is applied to this finder method parameter.
46 * @return boolean
47 */
48 public boolean isFirstResult();
49
50 /**
51 * Returns true if MaxResults stereotype is applied to this finder method parameter.
52 * @return boolean
53 */
54 public boolean isMaxResults();
55 }