Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Pilot {
- private String name;
- private int points;
- public Pilot(String name,int points) {
- this.name=name;
- this.points=points;
- }
- }
- ...
- db.store(new Pilot("Michael Schumacher",100));
- db.store(new Pilot("Rubens Barrichello",99));
- ...
- ObjectSet result1 = db.queryByExample(new Pilot(null,0));
- ObjectSet result2 = db.queryByExample(Pilot.class);
- ObjectSet result3 = db.queryByExample(new Pilot("Michael Schumacher",0));
- ObjectSet result4 = db.queryByExample(new Pilot(null,100));
- ...
Add Comment
Please, Sign In to add comment