001// license-header java merge-point
002//
003// Attention: generated code (by Metafacade.vsl) - do not modify!
004//
005package org.andromda.cartridges.hibernate.metafacades;
006
007import org.andromda.metafacades.uml.EntityQueryOperation;
008
009/**
010 * Represents a Hibernate finder method.
011 *
012 * Metafacade interface to be used by AndroMDA cartridges.
013 */
014public interface HibernateFinderMethod
015    extends EntityQueryOperation
016{
017    /**
018     * Indicates the metafacade type (used for metafacade mappings).
019     *
020     * @return boolean always <code>true</code>
021     */
022    public boolean isHibernateFinderMethodMetaType();
023
024    /**
025     * The actual query returned for the body of the finder.
026     * @return String
027     */
028    public String getQuery();
029
030    /**
031     * Indicates whether or not the query parameters used for the body of the finder should be named
032     * ':someParam' or unnamed '?'.
033     * @return boolean
034     */
035    public boolean isUseNamedParameters();
036
037    /**
038     * Enables cache for the query.
039     * @return boolean
040     */
041    public boolean isUseQueryCache();
042}