Coverage Report - org.kuali.rice.core.jpa.spring.NullEntityManagerFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
NullEntityManagerFactory
0%
0/5
N/A
2
 
 1  
 /*
 2  
  * Copyright 2007-2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.core.jpa.spring;
 17  
 
 18  
 import java.util.Map;
 19  
 
 20  
 import javax.persistence.EntityManager;
 21  
 import javax.persistence.EntityManagerFactory;
 22  
 
 23  
 /**
 24  
  * Null EntityManagerFactory that enables SharedEntityManagerBean to create a proxy when jpa is not enabled. 
 25  
  * 
 26  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 27  
  *
 28  
  */
 29  0
 public class NullEntityManagerFactory implements EntityManagerFactory {
 30  
 
 31  
     /**
 32  
      * @see javax.persistence.EntityManagerFactory#close()
 33  
      */
 34  
     public void close() {
 35  0
         throw new UnsupportedOperationException("JPA is not enabled, this should not be called.");
 36  
     }
 37  
 
 38  
     /**
 39  
      * @see javax.persistence.EntityManagerFactory#createEntityManager()
 40  
      */
 41  
     public EntityManager createEntityManager() {
 42  0
         throw new UnsupportedOperationException("JPA is not enabled, this should not be called.");
 43  
     }
 44  
 
 45  
     /**
 46  
      * @see javax.persistence.EntityManagerFactory#createEntityManager(java.util.Map)
 47  
      */
 48  
     public EntityManager createEntityManager(Map arg0) {
 49  0
         throw new UnsupportedOperationException("JPA is not enabled, this should not be called.");
 50  
     }
 51  
 
 52  
     /**
 53  
      * @see javax.persistence.EntityManagerFactory#isOpen()
 54  
      */
 55  
     public boolean isOpen() {
 56  0
         throw new UnsupportedOperationException("JPA is not enabled, this should not be called.");
 57  
     }
 58  
 
 59  
 }