Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package database;
  7.  
  8. import databag.Lid;
  9. import database.connect.ConnectionManager;
  10. import datatype.Geslacht;
  11. import datatype.Rijksregisternummer;
  12. import exception.ApplicationException;
  13. import exception.DBException;
  14. import java.sql.Connection;
  15. import java.sql.PreparedStatement;
  16. import java.sql.ResultSet;
  17. import java.sql.SQLException;
  18. import java.time.LocalDate;
  19.  
  20. /**
  21. *
  22. * @author jens
  23. */
  24. public class Test {
  25. public static void main(String[] args) throws ApplicationException, DBException, SQLException {
  26. Rijksregisternummer r = new Rijksregisternummer("91082800159");
  27. Lid l = new Lid();
  28. l.setGeslacht(Geslacht.M);
  29. l.setRijksregisternummer(r);
  30. l.setTelnr("057696969");
  31. l.setNaam("Vanhouttegem");
  32. l.setVoornaam("Mike");
  33. l.setOpmerkingen("skippy");
  34. l.setEmailadres("Mike.Vanhouttgem@student.vives.be");
  35.  
  36. LidDB liddb = new LidDB();
  37.  
  38. liddb.toevoegenLid(l);
  39.  
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement