View Javadoc

1   package atg.util.ejb;
2   
3   import java.rmi.RemoteException;
4   import javax.ejb.CreateException;
5   import javax.ejb.EJBException;
6   import javax.ejb.EntityBean;
7   import javax.ejb.EntityContext;
8   import javax.ejb.RemoveException;
9   import atg.metier.entite.ATGIEntite;
10  import atg.service.constante.AtgConstantes;
11  import atg.service.constante.AtgConstantesWF;
12  import atg.service.log.AtgLogManager;
13  import atg.util.service.ATGBasicClass;
14  /** 
15   * <p>Copyright : FERRARI Olivier</p>
16   * @author FERRARI Olivier
17   * @version 1.1
18   * Modifié par YSMAL Vincent, mise en place de la constante : ATG_LOG_LOGGING_PROPERTIES_PATH
19   * à la place de la chaine en dure 
20   *
21   * Ce logiciel est régi par la licence CeCILL soumise au droit français et
22   * respectant les principes de diffusion des logiciels libres. Vous pouvez
23   * utiliser, modifier et/ou redistribuer ce programme sous les conditions
24   * de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA 
25   *  sur le site http://www.cecill.info.
26   * 
27   * Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 
28   * pris connaissance de la licence CeCILL, et que vous en avez accepté les
29   * termes.
30   */
31  public abstract class ATGEJBEntite extends ATGBasicClass
32      implements EntityBean,ATGIEntite
33  {
34    /**
35     * Creation de l'ejb
36     * @throws CreateException Erreur lors de la création de l'Ejb.
37     */
38  public ATGEJBEntite()  {
39  
40  atg.service.constante.AtgConstantesWF.init(new atg.service.constante.
41                                             AtgConstantesWF());
42  
43  // Initialisation des traces
44  /*   Cas de traces relatives à l'application
45   AtgLogManager.setPathFileProperties(getServletContext().getRealPath("")
46              + AtgConstantesWF.getValue("PATH_CONSTANTE_FILE")
47              + AtgConstantes.ATG_LOG_DEFAULT_FILE_LOGGING);
48   */
49  //   Cas de traces en chemin dur
50  /*AtgLogManager.setPathFileProperties(AtgConstantesWF.getValue(
51      "PATH_CONSTANTE_FILE")
52                                      +
53                                      AtgConstantes.
54                                      ATG_LOG_DEFAULT_FILE_LOGGING );
55  */
56  AtgLogManager.setPathFileProperties(AtgConstantesWF.getValue(AtgConstantes.ATG_LOG_LOGGING_PATH_FILE_NAME)
57                                  +
58                                  AtgConstantes.
59                                  ATG_LOG_DEFAULT_FILE_LOGGING );
60  logFinest("Chargement des paramêtres EJB");
61  }
62  
63    /**
64     * setEntityContext
65     *
66     * @param entityContext EntityContext
67     * @throws EJBException
68     * @throws RemoteException
69     */
70    public void setEntityContext(EntityContext entityContext) throws EJBException, RemoteException
71    {
72      /*
73       * @todo Implémenter cette méthode javax.ejb.EntityBean
74       */
75    }
76  
77    /**
78     * unsetEntityContext
79     *
80     * @throws EJBException
81     * @throws RemoteException
82  
83     */
84    public void unsetEntityContext() throws EJBException, RemoteException
85    {
86      /*
87       *  @todo Implémenter cette méthode javax.ejb.EntityBean
88       */
89    }
90  
91    /**
92     * ejbRemove
93     *
94     * @throws RemoveException
95     * @throws EJBException
96     * @throws RemoteException
97     */
98    public void ejbRemove() throws RemoveException, EJBException, RemoteException
99    {
100     /*
101      * @todo Implémenter cette méthode javax.ejb.EntityBean  
102      */   
103   }
104 
105   /**
106    * ejbActivate
107    *
108    * @throws EJBException
109    * @throws RemoteException
110    * 
111    */
112   public void ejbActivate() throws EJBException, RemoteException
113   {
114     /*
115      * @todo Implémenter cette méthode javax.ejb.EntityBean
116      */
117   }
118 
119   /**
120    * ejbPassivate
121    *
122    * @throws EJBException
123    * @throws RemoteException
124    *
125    */
126   public void ejbPassivate() throws EJBException, RemoteException
127   {
128     /*
129      *  @todo Implémenter cette méthode javax.ejb.EntityBean
130      */
131   }
132 
133   /**
134    * ejbLoad
135    *
136    * @throws EJBException
137    * @throws RemoteException
138    */
139   public void ejbLoad() throws EJBException, RemoteException
140   {
141     /*
142      * @todo Implémenter cette méthode javax.ejb.EntityBean
143      */
144   }
145 
146   /**
147    * ejbStore
148    *
149    * @throws EJBException
150    * @throws RemoteException
151 
152    */
153   public void ejbStore() throws EJBException, RemoteException
154   {
155     /*
156     * @todo Implémenter cette méthode javax.ejb.EntityBean
157     */
158   }
159 }