Package Models

Examples of Models.BookModel


    public panelSearchBook() {
        initComponents();
    }
   
    private void fillTable(String type , String name){
        BookModel bookModel = new BookModel();
        List<Book> books = null;
        switch (type) {
            case "whereName":
                books = bookModel.whereName(name);
                break;
            case "all":
                books = bookModel.all();
                break;
            default: ;
        }
      
       
View Full Code Here


        book.setName(bookName);
        book.setAuthor_id(author_id);
        book.setPrice(price);
        book.setTotal_pages(total_pages);
       
        BookModel bookModel = new BookModel();
        int flag = bookModel.save(book);
       
        if(flag == 1)
        {
            JOptionPane.showMessageDialog(null, "Book added !", "Message", JOptionPane.INFORMATION_MESSAGE);
            clearAllInputFields();
View Full Code Here

TOP

Related Classes of Models.BookModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.