Coverage Report - org.jtheque.films.services.impl.utils.search.ActorSearch
 
Classes in this File Line Coverage Branch Coverage Complexity
ActorSearch
0 %
0/15
N/A
1
 
 1  
 package org.jtheque.films.services.impl.utils.search;
 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.utils.db.Note;
 20  
 import org.jtheque.films.persistence.od.ActorImpl;
 21  
 import org.jtheque.primary.od.CountryImpl;
 22  
 
 23  
 /**
 24  
  * A search of actors.
 25  
  *
 26  
  * @author Baptiste Wicht
 27  
  */
 28  
 public final class ActorSearch extends AbstractSearch<ActorImpl> {
 29  
     private boolean mustCheckCountry;
 30  
     private boolean mustCheckNote;
 31  
 
 32  
     /* Search's criteria */
 33  
     private Note note;
 34  
     private CountryImpl country;
 35  
 
 36  
     /**
 37  
      * Construct a new <code>ActorSearch</code>.
 38  
      */
 39  
     public ActorSearch() {
 40  0
         super();
 41  
 
 42  0
         setSearcher(new ActorSearcher());
 43  0
     }
 44  
 
 45  
     /**
 46  
      * Return the country of the search.
 47  
      *
 48  
      * @return the country
 49  
      */
 50  
     public CountryImpl getCountry() {
 51  0
         return country;
 52  
     }
 53  
 
 54  
     /**
 55  
      * Set the country of the search.
 56  
      *
 57  
      * @param country the country to set
 58  
      */
 59  
     public void setCountry(CountryImpl country) {
 60  0
         this.country = country;
 61  0
     }
 62  
 
 63  
     /**
 64  
      * Indicate if we must check the country for the search.
 65  
      *
 66  
      * @return <code>true</code> if we must check country else <code>false</code>.
 67  
      */
 68  
     public boolean isMustCheckCountry() {
 69  0
         return mustCheckCountry;
 70  
     }
 71  
 
 72  
     /**
 73  
      * Set if we must check the country or not.
 74  
      *
 75  
      * @param mustCheckCountry the mustCheckCountry to set
 76  
      */
 77  
     public void setMustCheckCountry(boolean mustCheckCountry) {
 78  0
         this.mustCheckCountry = mustCheckCountry;
 79  0
     }
 80  
 
 81  
     /**
 82  
      * Indicate if we must check the note for the search.
 83  
      *
 84  
      * @return <code>true</code> if we must check note else <code>false</code>.
 85  
      */
 86  
     public boolean isMustCheckNote() {
 87  0
         return mustCheckNote;
 88  
     }
 89  
 
 90  
     /**
 91  
      * Set if we must check the note or not.
 92  
      *
 93  
      * @param mustCheckNote the mustCheckNote to set
 94  
      */
 95  
     public void setMustCheckNote(boolean mustCheckNote) {
 96  0
         this.mustCheckNote = mustCheckNote;
 97  0
     }
 98  
 
 99  
     /**
 100  
      * Return the note of the search.
 101  
      *
 102  
      * @return the note
 103  
      */
 104  
     public Note getNote() {
 105  0
         return note;
 106  
     }
 107  
 
 108  
     /**
 109  
      * Set the note of the search.
 110  
      *
 111  
      * @param note The searched note
 112  
      */
 113  
     public void setNote(Note note) {
 114  0
         this.note = note;
 115  0
     }
 116  
 }