package AlMaGe;
import java.sql.SQLException;
import AlMaGe.Calculate;
public class PersIDGehAus{
private int persID;
private int gehAusID;
private Calculate abrechnung;
public PersIDGehAus(int persID, int gehAusID) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
this.persID = persID;
this.gehAusID = gehAusID;
this.abrechnung = new Calculate(getPersID());
}
public int getPersID(){
return persID;
}
public int getGehAusID(){
return gehAusID+1;
}
public Calculate getAbrechnungsDaten(){
return abrechnung;
}
@Override
public String toString() {
return "PersID: "+getPersID()+" GehAusID: "+getGehAusID();
}
}