1 // license-header java merge-point 2 // 3 // Attention: generated code (by Metafacade.vsl) - do not modify! 4 // 5 package org.andromda.cartridges.hibernate.metafacades; 6 7 import org.andromda.metafacades.uml.EntityQueryOperation; 8 9 /** 10 * Represents a Hibernate finder method. 11 * 12 * Metafacade interface to be used by AndroMDA cartridges. 13 */ 14 public interface HibernateFinderMethod 15 extends EntityQueryOperation 16 { 17 /** 18 * Indicates the metafacade type (used for metafacade mappings). 19 * 20 * @return boolean always <code>true</code> 21 */ 22 public boolean isHibernateFinderMethodMetaType(); 23 24 /** 25 * The actual query returned for the body of the finder. 26 * @return String 27 */ 28 public String getQuery(); 29 30 /** 31 * Indicates whether or not the query parameters used for the body of the finder should be named 32 * ':someParam' or unnamed '?'. 33 * @return boolean 34 */ 35 public boolean isUseNamedParameters(); 36 37 /** 38 * Enables cache for the query. 39 * @return boolean 40 */ 41 public boolean isUseQueryCache(); 42 }