public class Customer extends Object
Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyStringProperty |
message |
javafx.beans.property.ReadOnlyDoubleProperty |
progress |
Modifier and Type | Class and Description |
---|---|
static interface |
Customer.failCallback |
Constructor and Description |
---|
Customer() |
Customer(Integer ID,
String name,
String year,
String address,
String town,
String state,
String zipCode,
Double lat,
Double lon,
String phone,
BigDecimal paid,
Boolean delivered,
String email,
String nameEdited,
BigDecimal Donation) |
Customer(Integer ID,
String name,
String year,
String address,
String town,
String state,
String zipCode,
Double lat,
Double lon,
String phone,
BigDecimal paid,
Boolean delivered,
String email,
String nameEdited,
BigDecimal Donation,
String user) |
Customer(int ID,
String year)
Gets customer information using ID and year from the databse
|
Customer(int ID,
String name,
String year)
Gets customer information using ID, Name and year from the databse
|
Customer(String name,
String year) |
Modifier and Type | Method and Description |
---|---|
void |
deleteCustomer() |
boolean |
equals(Object obj) |
String |
getAddr() |
String[] |
getCustAddressFrmName() |
Boolean |
getDelivered()
Return Delivery status of the customer whose name has been specified.
|
BigDecimal |
getDontation()
Return Donation amount of the customer whose name has been specified.
|
String |
getEmail()
Return Email Address of the customer whose name has been specified.
|
String |
getFormattedAddress() |
Integer |
getId() |
Double |
getLat() |
Double |
getLon() |
String |
getMessage()
Gets the value of the property message.
|
String |
getName() |
int |
getNoLawnProductsOrdered()
Loops through Table to get total amount of Lawn Products ordered.
|
int |
getNoLivePlantsOrdered()
Loops through Table to get total amount of Lawn and Garden Products ordered.
|
int |
getNoMulchOrdered()
Loops through Table to get total amount of Bulk Mulch ordered.
|
Order.orderArray |
getOrderArray() |
int |
getOrderId()
Return Utilities.Order ID of the customer whose name has been specified.
|
BigDecimal |
getPaid()
Returns if the customer has paid.
|
String |
getPhone()
Return Phone number of the customer whose name has been specified.
|
double |
getProgress()
Gets the value of the property progress.
|
String |
getState() |
String |
getTown() |
String |
getUser() |
String |
getYear() |
String |
getZip() |
int |
hashCode() |
javafx.beans.property.ReadOnlyStringProperty |
messageProperty() |
javafx.beans.property.ReadOnlyDoubleProperty |
progressProperty() |
void |
refreshData() |
void |
setAddress(String address) |
void |
setDelivered(Boolean delivered) |
void |
setDonation(BigDecimal donation) |
void |
setEmail(String email) |
void |
setLat(Double lat) |
void |
setLon(Double lon) |
void |
setName(String name) |
void |
setPaid(BigDecimal paid) |
void |
setPhone(String phone) |
void |
setState(String state) |
void |
setTown(String town) |
void |
setYear(String year) |
void |
setZipCode(String zipCode) |
int |
updateValues(Customer.failCallback fail) |
public javafx.beans.property.ReadOnlyDoubleProperty progressProperty
getProgress()
public javafx.beans.property.ReadOnlyStringProperty messageProperty
getMessage()
public Customer(Integer ID, String name, String year, String address, String town, String state, String zipCode, Double lat, Double lon, String phone, BigDecimal paid, Boolean delivered, String email, String nameEdited, BigDecimal Donation)
public Customer(Integer ID, String name, String year, String address, String town, String state, String zipCode, Double lat, Double lon, String phone, BigDecimal paid, Boolean delivered, String email, String nameEdited, BigDecimal Donation, String user)
ID
- The ID of the customer. If creating a new customer, set this to -1name
- The name of the customeryear
- The Year the customer is to be added toaddress
- The street address of the customertown
- The town of the customerstate
- The state of the customerzipCode
- The 5 digit zip code of the customerlat
- The latitude of the customerlon
- The longitude of the customerphone
- THe phone number of the customerpaid
- A boolean that specifies where the customer paiddelivered
- A boolean that specifies whether the order was deliveredemail
- The email of the customernameEdited
- The new name of the customer to update toDonation
- The amount the customer donateduser
- The user to add the customer aspublic Customer(int ID, String year) throws CustomerNotFoundException
ID
- ID of the customeryear
- The year to retrieve fromCustomerNotFoundException
- Thrown if the specified ID is not found within the databasepublic Customer(int ID, String name, String year)
ID
- ID of the customername
- The name of the customeryear
- The year to retrieve frompublic Customer()
public int updateValues(Customer.failCallback fail) throws Exception
fail
- A callback for if the method fails. Used in workers.Exception
- Throws an exception so the caller can handle appropriately.public void deleteCustomer()
public String[] getCustAddressFrmName()
public Order.orderArray getOrderArray()
public int getNoMulchOrdered()
public int getNoLivePlantsOrdered()
public int getNoLawnProductsOrdered()
public Double getLat()
public void setLat(Double lat)
public Double getLon()
public void setLon(Double lon)
public void setAddress(String address)
public void setZipCode(String zipCode)
public void setDonation(BigDecimal donation)
public Integer getId()
public String getAddr()
public String getFormattedAddress()
public String getTown()
public void setTown(String town)
public String getState()
public void setState(String state)
public String getZip()
public String getName()
public void setName(String name)
public String getUser()
public String getPhone()
public void setPhone(String phone)
public BigDecimal getPaid()
public void setPaid(BigDecimal paid)
public String getYear()
public void setYear(String year)
public Boolean getDelivered()
public void setDelivered(Boolean delivered)
public String getEmail()
public void setEmail(String email)
public int getOrderId()
public BigDecimal getDontation()
public void refreshData()
public double getProgress()
public javafx.beans.property.ReadOnlyDoubleProperty progressProperty()
getProgress()
public String getMessage()
public javafx.beans.property.ReadOnlyStringProperty messageProperty()
getMessage()
Copyright © 2014–2018. All rights reserved.