Advertisement
Guest User

Untitled

a guest
Jun 25th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. public class ricette {
  2.  
  3. private int _ID;
  4. private String nome;
  5. private String tipoPiatto;
  6. private int cottura;
  7. private int numeroP;
  8. private String ingredienti;
  9. private String quantita;
  10. private String preparazione;
  11. private String creatoreRicetta;
  12. private String difficolta;
  13.  
  14. //Empty Constructor
  15. public ricette()
  16. {
  17.  
  18. }
  19. //Constructor
  20. public ricette(int _ID, String nome,String tipoPiatto,int cottura,int numeroP, String ingredienti,String quantita,String preparazione,String ricettaDi,String difficolta)
  21. {
  22. this._ID=_ID;
  23. this.nome=nome;
  24. this.tipoPiatto=tipoPiatto;
  25. this.cottura=cottura;
  26. this.numeroP=numeroP;
  27. this.ingredienti=ingredienti;
  28. this.quantita=quantita;
  29. this.preparazione=preparazione;
  30. this.creatoreRicetta=creatoreRicetta;
  31. this.difficolta=difficolta;
  32. }
  33.  
  34. //Other Constructor
  35. public ricette(String nome,String tipoPiatto,int cottura,int numeroP, String ingredienti,String quantita,String preparazione,String creatoreRicetta,String difficolta)
  36. {
  37. this.nome=nome;
  38. this.tipoPiatto=tipoPiatto;
  39. this.cottura=cottura;
  40. this.numeroP=numeroP;
  41. this.ingredienti=ingredienti;
  42. this.quantita=quantita;
  43. this.preparazione=preparazione;
  44. this.creatoreRicetta=creatoreRicetta;
  45. this.difficolta=difficolta;
  46. }
  47.  
  48.  
  49. public int getID()
  50. {
  51. return _ID;
  52. }
  53. public void setID(int _ID)
  54. {
  55. this._ID=_ID;
  56. }
  57.  
  58. public int getCottura()
  59. {
  60. return cottura;
  61. }
  62.  
  63. public void setCottura(int cottura)
  64. {
  65. this.cottura=cottura;
  66. }
  67. public int getnumeroP()
  68. {
  69. return numeroP;
  70. }
  71. public void setnumeroP(int numeroP)
  72. {
  73. this.numeroP=numeroP;
  74. }
  75.  
  76. public String getNome()
  77. {
  78. return nome;
  79. }
  80. public void setNome(String nome)
  81. {
  82. this.nome=nome;
  83. }
  84.  
  85. public String getTipoPiatto()
  86. {
  87. return tipoPiatto;
  88. }
  89. public void setTipoPiatto(String tipoPiatto)
  90. {
  91. this.tipoPiatto=tipoPiatto;
  92. }
  93. public String getIngredienti()
  94. {
  95. return ingredienti;
  96. }
  97. public void setIngredienti(String ingredienti)
  98. {
  99. this.ingredienti=ingredienti;
  100. }
  101.  
  102. public String getQuantita()
  103. {
  104. return quantita;
  105. }
  106. public void setQuantita(String quantita)
  107. {
  108. this.quantita=quantita;
  109. }
  110. public String getPreparazione()
  111. {
  112. return preparazione;
  113. }
  114. public void setPreparazione(String preparazione)
  115. {
  116. this.preparazione=preparazione;
  117. }
  118. public String getcreatoreRicetta()
  119. {
  120. return creatoreRicetta;
  121. }
  122. public void setcreatoreRicetta(String creatoreRicetta)
  123. {
  124. this.creatoreRicetta=creatoreRicetta;
  125. }
  126. public String getDifficolta()
  127. {
  128. return difficolta;
  129. }
  130. public void setDifficolta(String difficolta)
  131. {
  132. this.difficolta=difficolta;
  133. }
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement