Package org.fundacaonokia.biblioteca.model

Examples of org.fundacaonokia.biblioteca.model.Livro


        return NUM_COLUNAS;
    }

    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        Livro l = lstLivros.get(rowIndex);
       
        switch (columnIndex) {
        case 0:
            return l.getIsbn();
           
        case 1:
            return l.getTitulo();
           
        case 2:
            return l.getAutor();
           
        default:
            return null;
        }
    }
View Full Code Here


            PreparedStatement pstm = this.conn.prepareStatement(sql);
            ResultSet rs = pstm.executeQuery();

            while (rs.next()) {
                // String str = rs.getString("titulo");
                Livro l = new Livro(rs.getString("isbn"),
                        rs.getString("autor"), rs.getString("titulo"),
                        rs.getString("editora"), rs.getInt("ano"),
                        rs.getInt("edicao"), rs.getInt("numPaginas"), null);
                lstRetorno.add(l);
            }
View Full Code Here

     *
     * @param e Instância do evento
     */
    protected void btnInserirActionPerformed(ActionEvent e) {
        DlgCadastroLivro viewCadastro = new DlgCadastroLivro();
        Livro novo = viewCadastro.novoLivro();
    }
View Full Code Here

TOP

Related Classes of org.fundacaonokia.biblioteca.model.Livro

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.