first commit lol
This commit is contained in:
commit
1328afffd9
33 changed files with 1999 additions and 0 deletions
76
src/autovermietung/models/Kunde.java
Normal file
76
src/autovermietung/models/Kunde.java
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
package autovermietung.models;
|
||||
|
||||
public class Kunde {
|
||||
private int knr;
|
||||
private String vorname;
|
||||
private String nachname;
|
||||
private String anschrift;
|
||||
private String telefon;
|
||||
private int personr;
|
||||
|
||||
public Kunde(int k, String v, String n, String a, String t, int p) {
|
||||
this.knr = k;
|
||||
this.vorname = v;
|
||||
this.nachname = n;
|
||||
this.anschrift = a;
|
||||
this.telefon = t;
|
||||
this.personr = p;
|
||||
}
|
||||
|
||||
public int getKnr() {
|
||||
return knr;
|
||||
}
|
||||
|
||||
public void setKnr(int knr) {
|
||||
this.knr = knr;
|
||||
}
|
||||
|
||||
public String getVorname() {
|
||||
return vorname;
|
||||
}
|
||||
|
||||
public void setVorname(String vorname) {
|
||||
this.vorname = vorname;
|
||||
}
|
||||
|
||||
public String getNachname() {
|
||||
return nachname;
|
||||
}
|
||||
|
||||
public void setNachname(String nachname) {
|
||||
this.nachname = nachname;
|
||||
}
|
||||
|
||||
public String getAnschrift() {
|
||||
return anschrift;
|
||||
}
|
||||
|
||||
public void setAnschrift(String anschrift) {
|
||||
this.anschrift = anschrift;
|
||||
}
|
||||
|
||||
public int getPersonr() {
|
||||
return personr;
|
||||
}
|
||||
|
||||
public void setPersonr(int personr) {
|
||||
this.personr = personr;
|
||||
}
|
||||
|
||||
public String getTelefon() {
|
||||
return telefon;
|
||||
}
|
||||
|
||||
public void setTelefon(String telefon) {
|
||||
this.telefon = telefon;
|
||||
}
|
||||
|
||||
public void getInformation() {
|
||||
System.out.print(this.knr);
|
||||
System.out.print("\t" + this.vorname);
|
||||
System.out.print("\t" + this.nachname);
|
||||
System.out.print("\t" + this.anschrift);
|
||||
System.out.print("\t" + this.telefon);
|
||||
System.out.println("\t" + this.personr);
|
||||
}
|
||||
}
|
||||
76
src/autovermietung/models/Modell.java
Normal file
76
src/autovermietung/models/Modell.java
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
package autovermietung.models;
|
||||
|
||||
public class Modell {
|
||||
private int mnr;
|
||||
private String modellname;
|
||||
private int hubraum;
|
||||
private int leistung;
|
||||
private float kmpreis;
|
||||
private float pauschale;
|
||||
|
||||
public Modell(int nr, String mn, int h, int l, float kmp, float p) {
|
||||
this.mnr = nr;
|
||||
this.modellname = mn;
|
||||
this.hubraum = h;
|
||||
this.leistung = l;
|
||||
this.kmpreis = kmp;
|
||||
this.pauschale = p;
|
||||
}
|
||||
|
||||
public int getMnr() {
|
||||
return mnr;
|
||||
}
|
||||
|
||||
public void setMnr(int mnr) {
|
||||
this.mnr = mnr;
|
||||
}
|
||||
|
||||
public String getModellname() {
|
||||
return modellname;
|
||||
}
|
||||
|
||||
public void setModellname(String modellname) {
|
||||
this.modellname = modellname;
|
||||
}
|
||||
|
||||
public int getHubraum() {
|
||||
return hubraum;
|
||||
}
|
||||
|
||||
public void setHubraum(int hubraum) {
|
||||
this.hubraum = hubraum;
|
||||
}
|
||||
|
||||
public int getLeistung() {
|
||||
return leistung;
|
||||
}
|
||||
|
||||
public void setLeistung(int leistung) {
|
||||
this.leistung = leistung;
|
||||
}
|
||||
|
||||
public float getKmpreis() {
|
||||
return kmpreis;
|
||||
}
|
||||
|
||||
public void setKmpreis(float kmpreis) {
|
||||
this.kmpreis = kmpreis;
|
||||
}
|
||||
|
||||
public float getPauschale() {
|
||||
return pauschale;
|
||||
}
|
||||
|
||||
public void setPauschale(float pauschale) {
|
||||
this.pauschale = pauschale;
|
||||
}
|
||||
|
||||
public void getInformation() {
|
||||
System.out.print(this.mnr);
|
||||
System.out.print("\t" + this.modellname);
|
||||
System.out.print("\t" + this.hubraum);
|
||||
System.out.print("\t" + this.leistung);
|
||||
System.out.print("\t" + this.kmpreis);
|
||||
System.out.println("\t" + this.pauschale);
|
||||
}
|
||||
}
|
||||
87
src/autovermietung/models/Pkw.java
Normal file
87
src/autovermietung/models/Pkw.java
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
package autovermietung.models;
|
||||
|
||||
import java.sql.Date;
|
||||
|
||||
public class Pkw {
|
||||
private String kennzeichen;
|
||||
private Date erstzulassung;
|
||||
private int tachostand;
|
||||
private String farbe;
|
||||
private Date ausleihdatum;
|
||||
private int mnr;
|
||||
private int knr;
|
||||
|
||||
public Pkw(String k, Date e, int t, String f, Date a, int mnr, int knr) {
|
||||
this.kennzeichen = k;
|
||||
this.erstzulassung = e;
|
||||
this.tachostand = t;
|
||||
this.farbe = f;
|
||||
this.ausleihdatum = a;
|
||||
this.mnr = mnr;
|
||||
this.knr = knr;
|
||||
}
|
||||
|
||||
public Date getAusleihdatum() {
|
||||
return ausleihdatum;
|
||||
}
|
||||
|
||||
public void setAusleihdatum(Date ausleihdatum) {
|
||||
this.ausleihdatum = ausleihdatum;
|
||||
}
|
||||
|
||||
public String getFarbe() {
|
||||
return farbe;
|
||||
}
|
||||
|
||||
public void setFarbe(String farbe) {
|
||||
this.farbe = farbe;
|
||||
}
|
||||
|
||||
public int getTachostand() {
|
||||
return tachostand;
|
||||
}
|
||||
|
||||
public void setTachostand(int tachostand) {
|
||||
this.tachostand = tachostand;
|
||||
}
|
||||
|
||||
public Date getErstzulassung() {
|
||||
return erstzulassung;
|
||||
}
|
||||
|
||||
public void setErstzulassung(Date erstzulassung) {
|
||||
this.erstzulassung = erstzulassung;
|
||||
}
|
||||
|
||||
public String getKennzeichen() {
|
||||
return kennzeichen;
|
||||
}
|
||||
|
||||
public void setKennzeichen(String kennzeichen) {
|
||||
this.kennzeichen = kennzeichen;
|
||||
}
|
||||
|
||||
public void getInformation() {
|
||||
System.out.print(this.kennzeichen);
|
||||
System.out.print("\t" + this.farbe);
|
||||
System.out.print("\t" + this.tachostand);
|
||||
System.out.print("\t" + this.erstzulassung);
|
||||
System.out.print("\t" + this.ausleihdatum);
|
||||
}
|
||||
|
||||
public int getKnr() {
|
||||
return knr;
|
||||
}
|
||||
|
||||
public void setKnr(int knr) {
|
||||
this.knr = knr;
|
||||
}
|
||||
|
||||
public int getMnr() {
|
||||
return mnr;
|
||||
}
|
||||
|
||||
public void setMnr(int mnr) {
|
||||
this.mnr = mnr;
|
||||
}
|
||||
}
|
||||
Reference in a new issue