Package be.entities

Examples of be.entities.Brouwer


    String query = "SELECT * FROM brouwers WHERE brouwerNr = ?";
    this.stmt = con.prepareStatement(query);
    this.stmt.setLong(1, id);
    this.rs = this.stmt.executeQuery();

    Brouwer b = createBrouwer(this.rs);

    closeConnection();

    return b;
  }
View Full Code Here


    stmt.close();
    rs.close();
    stmt.close();
  }
  Brouwer createBrouwer(ResultSet rs) throws SQLException{
        Brouwer b = new Brouwer();
        b.setPostCode(rs.getString("PostCode"));
        b.setAdres(rs.getString("Adres"));
        b.setBrNaam(rs.getString("BrNaam"));
        b.setGemeente(rs.getString("gemeente"));
        b.setOmzet(rs.getDouble("Omzet"));

        return b;
  }
View Full Code Here

TOP

Related Classes of be.entities.Brouwer

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.