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.Service;
008
009/**
010 * Represents a service facade for hibernate java objects.
011 *
012 * Metafacade interface to be used by AndroMDA cartridges.
013 */
014public interface HibernateService
015    extends Service
016{
017    /**
018     * Indicates the metafacade type (used for metafacade mappings).
019     *
020     * @return boolean always <code>true</code>
021     */
022    public boolean isHibernateServiceMetaType();
023
024    /**
025     * The JNDI name to which this entity EJB is bound.
026     * @return String
027     */
028    public String getEjbJndiName();
029
030    /**
031     * The view type for the service ('remote' vs. 'local').
032     * @return String
033     */
034    public String getEjbViewType();
035
036    /**
037     * Indicates whether or not the interfaces for this service are remote.
038     * @return boolean
039     */
040    public boolean isEjbRemoteView();
041
042    /**
043     * Indicates whether or not if the service is an EJB it's stateful.
044     * @return boolean
045     */
046    public boolean isEjbStateful();
047}