Guest User

Untitled

a guest
May 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. public class Pilot {
  2.     private String name;
  3.     private int points;
  4.    
  5.     public Pilot(String name,int points) {
  6.         this.name=name;
  7.         this.points=points;
  8.     }
  9. }
  10.  
  11. ...
  12. db.store(new Pilot("Michael Schumacher",100));
  13. db.store(new Pilot("Rubens Barrichello",99));
  14. ...
  15. ObjectSet result1 = db.queryByExample(new Pilot(null,0));
  16. ObjectSet result2 = db.queryByExample(Pilot.class);
  17. ObjectSet result3 = db.queryByExample(new Pilot("Michael Schumacher",0));
  18. ObjectSet result4 = db.queryByExample(new Pilot(null,100));
  19. ...
Add Comment
Please, Sign In to add comment