1 package org.cacert.gigi.dbObjects;
3 import java.sql.ResultSet;
4 import java.sql.SQLException;
7 public class Assurance {
14 private String location;
16 private String method;
22 public Assurance(ResultSet result) throws SQLException {
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");
33 public User getFrom() {
41 public String getLocation() {
45 public int getPoints() {
53 public String getMethod() {
57 public String getDate() {