javax.ejb

Interface EJBLocalObject


  • public interface EJBLocalObject
    The EJBLocalObject interface must be extended by all enterprise beans' local interfaces. An enterprise bean's local interface provides the local client view of an EJB object. An enterprise bean's local interface defines the business methods callable by local clients.

    The enterprise bean's local interface is defined by the enterprise bean provider and implemented by the enterprise bean container.

    Enterprise beans written to the EJB 3.0 and later APIs do not require a local interface that extends the EJBLocalObject interface. A local business interface can be used instead.

    Since:
    EJB 2.0
    • Method Detail

      • getEJBLocalHome

        EJBLocalHome getEJBLocalHome()
                              throws EJBException
        Obtain the enterprise bean's local home interface. The local home interface defines the enterprise bean's create, finder, remove, and home business methods that are available to local clients.
        Returns:
        A reference to the enterprise bean's local home interface.
        Throws:
        EJBException - Thrown when the method failed due to a system-level failure.
      • getPrimaryKey

        Object getPrimaryKey()
                      throws EJBException
        Obtain the primary key of the EJB local object.

        This method can be called on an entity bean. An attempt to invoke this method on a session bean will result in an EJBException.

        Note: Support for entity beans is optional as of EJB 3.2.

        Returns:
        The EJB local object's primary key.
        Throws:
        EJBException - Thrown when the method failed due to a system-level failure or when invoked on a session bean.
      • remove

        void remove()
             throws RemoveException,
                    EJBException
        Remove the EJB local object.
        Throws:
        RemoveException - The enterprise bean or the container does not allow destruction of the object.
        EJBException - Thrown when the method failed due to a system-level failure.
      • isIdentical

        boolean isIdentical(EJBLocalObject obj)
                     throws EJBException
        Test if a given EJB local object is identical to the invoked EJB local object.
        Parameters:
        obj - An object to test for identity with the invoked object.
        Returns:
        True if the given EJB local object is identical to the invoked object, false otherwise.
        Throws:
        EJBException - Thrown when the method failed due to a system-level failure.

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Version en cache

22/08/2025 03:46:27 Cette version de la page est en cache (à la date du 22/08/2025 03:46:27) afin d'accélérer le traitement.
Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.

Document créé le 14/04/2008, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/ejb/ejblocalobject.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, EJBLocalObject

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.