Package Models
Class Customer
java.lang.Object
Models.Customer
A class representing the Customer object
-
Constructor Summary
ConstructorDescriptionCustomer
(int customerId, String customerName, String address, String postalCode, String phone, LocalDateTime createDate, String createdBy, LocalDateTime lastUpdate, String lastUpdatedBy, int divisionId) Constructor method for the Customer object -
Method Summary
Modifier and TypeMethodDescriptionint
int
getPhone()
void
setAddress
(String address) void
setCreateDate
(LocalDateTime createDate) void
setCreatedBy
(String createdBy) void
setCustomerId
(int customerId) void
setCustomerName
(String customerName) void
setDivisionId
(int divisionId) void
setLastUpdate
(LocalDateTime lastUpdate) void
setLastUpdatedBy
(String lastUpdatedBy) void
void
setPostalCode
(String postalCode) toString()
-
Constructor Details
-
Customer
public Customer(int customerId, String customerName, String address, String postalCode, String phone, LocalDateTime createDate, String createdBy, LocalDateTime lastUpdate, String lastUpdatedBy, int divisionId) Constructor method for the Customer object- Parameters:
customerId
- the customerId integer value to be set on the Customer objectcustomerName
- the customerName string value to be set on the Customer objectaddress
- the address string value to be set on the Customer objectpostalCode
- the postalCode string value to be set on the Customer objectphone
- the phone string value to be set on the Customer objectcreateDate
- the createDate LocalDateTime value to be set on the Customer objectcreatedBy
- the createdBy string value to be set on the Customer objectlastUpdate
- the lastUpdate LocalDateTime value to be set on the Customer objectlastUpdatedBy
- the lastUpdatedBy string value to be set on the Customer objectdivisionId
- the divisionId integer value to be set on the Customer object
-
-
Method Details
-
getCustomerId
public int getCustomerId()- Returns:
- the customerId integer value on the Customer object
-
getCustomerName
- Returns:
- the customerName string value on the Customer object
-
getAddress
- Returns:
- the address string value on the Customer object
-
getPostalCode
- Returns:
- the postalCode string value on the Customer object
-
getPhone
- Returns:
- the phone string value on the Customer object
-
getCreateDate
- Returns:
- the createDate LocalDateTime value on the Customer object
-
getCreatedBy
- Returns:
- the createdBy string value on the Customer object
-
getLastUpdate
- Returns:
- the lastUpdate LocalDateTime value on the Customer object
-
getLastUpdatedBy
- Returns:
- the lastUpdatedBy string value on the Customer object
-
getDivisionId
public int getDivisionId()- Returns:
- the divisionId integer value on the Customer object
-
setCustomerId
public void setCustomerId(int customerId) - Parameters:
customerId
- the customerId integer value to be set on the Customer object
-
setCustomerName
- Parameters:
customerName
- the customerName string value to be set on the Customer object
-
setAddress
- Parameters:
address
- the address string value to be set on the Customer object
-
setPostalCode
- Parameters:
postalCode
- the postalCode string value to be set on the Customer object
-
setPhone
- Parameters:
phone
- the phone string value to be set on the Customer object
-
setCreateDate
- Parameters:
createDate
- the createDate LocalDateTime value to be set on the Customer object
-
setCreatedBy
- Parameters:
createdBy
- the createdBy string value to be set on the Customer object
-
setLastUpdate
- Parameters:
lastUpdate
- the lastUpdate LocalDateTime value to be set on the Customer object
-
setLastUpdatedBy
- Parameters:
lastUpdatedBy
- the lastUpdatedBy string value to be set on the Customer object
-
setDivisionId
public void setDivisionId(int divisionId) - Parameters:
divisionId
- the divisionId integer value to be set on the Customer object
-
toString
-