@ManagedBean @SessionScoped public class NewCarBean extends Object implements Serializable
| Constructor and Description |
|---|
NewCarBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBrand() |
String |
getColor() |
CustomerBean |
getCustomerBean() |
String |
getFuel() |
int |
getMileage() |
int |
getPrice() |
String |
getType() |
int |
getYear() |
String |
sell() |
void |
setBrand(String brand) |
void |
setColor(String color) |
void |
setCustomerBean(CustomerBean customerBean) |
void |
setFuel(String fuel) |
void |
setMileage(int mileage) |
void |
setPrice(int price) |
void |
setType(String type) |
void |
setYear(int year) |
public CustomerBean getCustomerBean()
public void setCustomerBean(CustomerBean customerBean)
@NotNull
@Size(min=2,
max=10)
public String getBrand()
@NotNull
@Size(min=2,
max=10)
public String getColor()
@NotNull
@Size(min=2,
max=10)
public String getFuel()
@Min(value=0L) @Max(value=1000000L) public int getMileage()
@Min(value=1L) @Max(value=5000000L) public int getPrice()
@NotNull
@Size(min=1,
max=10)
public String getType()
@NotNull @Min(value=1886L) @Max(value=2014L) public int getYear()
public void setBrand(String brand)
public void setColor(String color)
public void setFuel(String fuel)
public void setMileage(int mileage)
public void setPrice(int price)
public void setType(String type)
public void setYear(int year)
public String sell()
Copyright © 2015. All rights reserved.