]> WPIA git - gigi.git/blob - src/org/cacert/gigi/dbObjects/Assurance.java
Test+implement: object cache for email and domain.
[gigi.git] / src / org / cacert / gigi / dbObjects / Assurance.java
1 package org.cacert.gigi.dbObjects;
2
3 import java.sql.ResultSet;
4 import java.sql.SQLException;
5
6
7 public class Assurance {
8     private int id;
9
10     private User from;
11
12     private User to;
13
14     private String location;
15
16     private String method;
17
18     private int points;
19
20     private String date;
21
22     public Assurance(ResultSet result) throws SQLException {
23         super();
24         this.id = result.getInt("id");
25         this.from = User.getById(result.getInt("from"));
26         this.to = User.getById(result.getInt("to"));
27         this.location = result.getString("location");
28         this.method = result.getString("method");
29         this.points = result.getInt("points");
30         this.date = result.getString("date");
31     }
32
33     public User getFrom() {
34         return from;
35     }
36
37     public int getId() {
38         return id;
39     }
40
41     public String getLocation() {
42         return location;
43     }
44
45     public int getPoints() {
46         return points;
47     }
48
49     public User getTo() {
50         return to;
51     }
52
53     public String getMethod() {
54         return method;
55     }
56
57     public String getDate() {
58         return date;
59     }
60
61 }