Package controllers
Class Autostrada
- java.lang.Object
-
- controllers.Controller
-
- controllers.Autostrada
-
public class Autostrada extends Controller
The Autostrada entity controller- Author:
- gabrieleromanato
-
-
Field Summary
Fields Modifier and Type Field Description static doubleTARIFFA_UNITARIA
-
Constructor Summary
Constructors Constructor Description Autostrada()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<AutostradaModel>getAutostrade()java.util.ArrayList<CaselloModel>getCaselli()voidrenderView()Renders the viewbooleansaveAutostrada(AutostradaModel auto)Inserts an Autostrada into the databasevoidsetView(Autostrade view)Sets the view instance-
Methods inherited from class controllers.Controller
setView
-
-
-
-
Field Detail
-
TARIFFA_UNITARIA
public static final double TARIFFA_UNITARIA
- See Also:
- Constant Field Values
-
-
Method Detail
-
setView
public void setView(Autostrade view)
Sets the view instance- Parameters:
view- A view instance
-
renderView
public void renderView()
Renders the view- Overrides:
renderViewin classController
-
getCaselli
public java.util.ArrayList<CaselloModel> getCaselli()
- Returns:
- List of caselli
-
getAutostrade
public java.util.ArrayList<AutostradaModel> getAutostrade()
- Returns:
- List of autostrade
-
saveAutostrada
public boolean saveAutostrada(AutostradaModel auto)
Inserts an Autostrada into the database- Parameters:
auto- Autostrada model- Returns:
- Boolean
-
-