01: /**
02: * Copyright (C) 2001-2005 France Telecom R&D
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */package org.objectweb.speedo.pm.ejb.lib;
18:
19: import org.objectweb.speedo.lib.Personality;
20: import org.objectweb.speedo.pm.api.POManagerItf;
21: import org.objectweb.speedo.pm.ejb.api.EJBPOManagerFactoryItf;
22: import org.objectweb.speedo.pm.lib.AbstractPOManagerFactory;
23:
24: import javax.persistence.EntityManager;
25: import javax.persistence.PersistenceContextType;
26:
27: /**
28: * is the POManager factory dedicated to EJB.
29: *
30: * @author S.Chassande-Barrioz
31: */
32: public class EJBPOManagerFactory extends AbstractPOManagerFactory
33: implements EJBPOManagerFactoryItf {
34:
35: /**
36: *
37: */
38: public EJBPOManagerFactory() {
39: super (Personality.EJB);
40: }
41:
42: /**
43: * @see javax.persistence.EntityManagerFactory#createEntityManager()
44: */
45: public EntityManager createEntityManager() {
46: return null;
47: }
48:
49: /**
50: * @see javax.persistence.EntityManagerFactory#createEntityManager(javax.persistence.PersistenceContextType)
51: */
52: public EntityManager createEntityManager(PersistenceContextType arg0) {
53: return null;
54: }
55:
56: /**
57: * @see javax.persistence.EntityManagerFactory#getEntityManager()
58: */
59: public EntityManager getEntityManager() {
60: return null;
61: }
62:
63: /**
64: * @see javax.persistence.EntityManagerFactory#close()
65: */
66: public void close() {
67: }
68:
69: /**
70: * @see javax.persistence.EntityManagerFactory#isOpen()
71: */
72: public boolean isOpen() {
73: return false;
74: }
75:
76: /**
77: * @see org.objectweb.speedo.pm.api.POManagerFactoryItf#getPOManager()
78: */
79: public POManagerItf getPOManager() {
80: return null;
81: }
82:
83: }
|