Coverage Report - edu.sampleu.bookstore.document.BookOrderDocument
 
Classes in this File Line Coverage Branch Coverage Complexity
BookOrderDocument
0%
0/10
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 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 edu.sampleu.bookstore.document;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.List;
 20  
 
 21  
 import org.kuali.rice.krad.document.TransactionalDocumentBase;
 22  
 import edu.sampleu.bookstore.bo.BookOrder;
 23  
 
 24  
 /*
 25  
  * Transactional Document class file for Book Order.
 26  
  */
 27  
 
 28  0
 public class BookOrderDocument extends TransactionalDocumentBase {
 29  
 
 30  
         private static final long serialVersionUID = -1856169002927442467L;
 31  
 
 32  0
         private List<BookOrder> bookOrders = new ArrayList<BookOrder>();
 33  
 
 34  
         public List<BookOrder> getBookOrders() {
 35  0
                 return bookOrders;
 36  
         }
 37  
 
 38  
         public void setBookOrders(List<BookOrder> bookOrders) {
 39  0
                 this.bookOrders = bookOrders;
 40  0
         }
 41  
         
 42  
         public void addBookOrder(BookOrder bookOrder) {
 43  0
                 bookOrder.setDocumentId(getDocumentNumber());
 44  0
                 bookOrders.add(bookOrder);
 45  0
     }
 46  
         
 47  
         public void removeBookOrder(int deleteIndex) {
 48  0
                 bookOrders.remove(deleteIndex);
 49  0
         }
 50  
         
 51  
 }