1
2
3
4 package org.andromda.cartridges.spring.metafacades;
5
6 /***
7 * <p>
8 * Represents a Spring entity query operation.
9 * </p>
10 *
11 * Metafacade interface to be used by AndroMDA cartridges.
12 */
13 public interface SpringQueryOperation
14 extends org.andromda.metafacades.uml.EntityQueryOperation
15 {
16
17 /***
18 * Indicates the metafacade type (used for metafacade mappings).
19 *
20 * @return always <code>true</code>
21 */
22 public boolean isSpringQueryOperationMetaType();
23
24 /***
25 * <p>
26 * Returns the argument that will contain the criteria search
27 * parameters.
28 * </p>
29 */
30 public org.andromda.metafacades.uml.ParameterFacade getCriteriaArgument();
31
32 /***
33 * <p>
34 * Gets the query; taking the entity of which should be included in
35 * the query (not counting queries that are explicitly modeled in
36 * OCL).
37 * </p>
38 */
39 public java.lang.String getQuery(org.andromda.cartridges.spring.metafacades.SpringEntity entity);
40
41 /***
42 * <p>
43 * The actual query returned for the body of the finder.
44 * </p>
45 */
46 public java.lang.String getQuery();
47
48 /***
49 * <p>
50 * Returns <code>true</code> if the operation is a criteria finder.
51 * </p>
52 */
53 public boolean isCriteriaFinder();
54
55 /***
56 * <p>
57 * Indicates whether or not the query parameters used for the body
58 * of the finder should be named ':someParam' or unnamed '?'.
59 * </p>
60 */
61 public boolean isUseNamedParameters();
62
63 }