Coverage Report - org.jtheque.films.services.impl.utils.file.jt.sources.JTFDataSource
 
Classes in this File Line Coverage Branch Coverage Complexity
JTFDataSource
0 %
0/8
N/A
1
 
 1  
 package org.jtheque.films.services.impl.utils.file.jt.sources;
 2  
 
 3  
 /*
 4  
  * This file is part of JTheque.
 5  
  *
 6  
  * JTheque is free software: you can redistribute it and/or modify
 7  
  * it under the terms of the GNU General Public License as published by
 8  
  * the Free Software Foundation, either version 3 of the License.
 9  
  *
 10  
  * JTheque is distributed in the hope that it will be useful,
 11  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
  * GNU General Public License for more details.
 14  
  *
 15  
  * You should have received a copy of the GNU General Public License
 16  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 17  
  */
 18  
 
 19  
 import org.jtheque.core.managers.file.able.BasicDataSource;
 20  
 import org.jtheque.films.persistence.od.able.Film;
 21  
 
 22  
 /**
 23  
  * A data source for JTF file.
 24  
  *
 25  
  * @author Baptiste Wicht
 26  
  */
 27  
 public final class JTFDataSource extends BasicDataSource {
 28  
     private Film film;
 29  
 
 30  
     /**
 31  
      * Construct a new JTFDataSource.
 32  
      */
 33  
     public JTFDataSource() {
 34  0
         super();
 35  0
     }
 36  
 
 37  
     /**
 38  
      * Construct a new JTFDataSource.
 39  
      *
 40  
      * @param film The film for the datasource.
 41  
      */
 42  
     public JTFDataSource(Film film) {
 43  0
         super();
 44  
 
 45  0
         this.film = film;
 46  0
     }
 47  
 
 48  
     /**
 49  
      * Return the film.
 50  
      *
 51  
      * @return The film.
 52  
      */
 53  
     public Film getFilm() {
 54  0
         return film;
 55  
     }
 56  
 
 57  
     /**
 58  
      * Set the film.
 59  
      *
 60  
      * @param film The film on the data source.
 61  
      */
 62  
     public void setFilm(Film film) {
 63  0
         this.film = film;
 64  0
     }
 65  
 }