public boolean addBook(Book book){
        String sql = "insert into book(id_book_catalogue,name,author1,"
                + "author2,author3,isbn,state) values(?,?,?,?,?,?,?)";
        try{
            int id_bc;
            if(this.getIdBookCatalogue(book.getBookCatalogue()) == 0){
                this.addBookCatalogue(book.getBookCatalogue());
            }
            
            id_bc = this.getIdBookCatalogue(book.getBookCatalogue());
            
            PreparedStatement ps = con.prepareStatement(sql);
            ps.setInt(1, id_bc);
            ps.setString(2, book.getName());
            ps.setString(3, book.getAuthor1());
            ps.setString(4, book.getAuthor2());
            ps.setString(5, book.getAuthor3());
            ps.setString(6, book.getISBN());
            ps.setString(7, book.getState());
            
            ps.executeUpdate();
            return true;
        }
        catch(SQLException ex){
            System.err.println(ex.getMessage());
            return false;
        }
    }