Coverage Report - org.apache.commons.mapper.MapperAdapter
 
Classes in this File Line Coverage Branch Coverage Complexity
MapperAdapter
0%
0/7
N/A
1.833
 
 1  
 /*
 2  
  * Copyright 2003-2004 The Apache Software Foundation.
 3  
  * 
 4  
  * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
 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  
 
 17  
 package org.apache.commons.mapper;
 18  
 
 19  
 import java.util.Collection;
 20  
 
 21  
 /**
 22  
  * A default implementation of the Mapper interface that throws 
 23  
  * <code>UnsupportedOperationExceptions</code> for all methods.  This 
 24  
  * makes it easy to define an anonymous inner class Mapper implementation.
 25  
  */
 26  
 public class MapperAdapter implements Mapper {
 27  
 
 28  
     /**
 29  
      * Default constructor for MapperAdapter.
 30  
      */
 31  
     public MapperAdapter() {
 32  0
         super();
 33  0
     }
 34  
 
 35  
     /**
 36  
      * @see org.apache.commons.mapper.Mapper#create(java.lang.Object)
 37  
      */
 38  
     public Object create(Object object) throws MapperException {
 39  0
         throw new UnsupportedOperationException("create() not supported.");
 40  
     }
 41  
 
 42  
     /**
 43  
      * @see org.apache.commons.mapper.Mapper#findByUniqueId(java.lang.Object)
 44  
      */
 45  
     public Object findByUniqueId(Object id) throws MapperException {
 46  0
         throw new UnsupportedOperationException("findByUniqueId() not supported .");
 47  
     }
 48  
 
 49  
     /**
 50  
      * @see org.apache.commons.mapper.Mapper#delete(java.lang.Object)
 51  
      */
 52  
     public void delete(Object object) throws MapperException {
 53  0
         throw new UnsupportedOperationException("delete() not supported.");
 54  
 
 55  
     }
 56  
 
 57  
     /**
 58  
      * @see org.apache.commons.mapper.Mapper#update(java.lang.Object)
 59  
      */
 60  
     public void update(Object object) throws MapperException {
 61  0
         throw new UnsupportedOperationException("update() not supported.");
 62  
 
 63  
     }
 64  
 
 65  
     /**
 66  
      * @see org.apache.commons.mapper.Mapper#findAllObjects()
 67  
      */
 68  
     public Collection findAllObjects() throws MapperException {
 69  0
         throw new UnsupportedOperationException("findAllObjects() not supported.");
 70  
     }
 71  
 
 72  
 }