public class Customer extends JDBCObject<Customer>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CUST
A constant that defines the default customer for a retail site.
|
static java.lang.String |
ONETIME_SHIPTO
A constant that defines the customer id for a one-time ship-to.
|
private static long |
serialVersionUID
The class' serialization version id.
|
LOWVAL_RPG_DATE, LOWVAL_RPG_TIME, STATUS_ACTIVE, STATUS_BLANK, STATUS_CANCELED, STATUS_DELETED, STATUS_INACTIVE, STATUS_PENDING
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
Customer()
Constructs a
Customer object with all field values set to
null . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress1()
Returns the address line 1.
|
java.lang.String |
getAddress2()
Returns the address line 2.
|
java.lang.String |
getAddress3()
Returns the address line 3.
|
java.lang.String |
getAddress4()
Returns the address line 4.
|
java.lang.String |
getARFax()
Returns the A/R fax number.
|
java.lang.String |
getARPhone()
Returns the A/R phone number.
|
java.lang.String |
getBilltoId()
Returns the bill-to customer id.
|
java.lang.String |
getCity()
Returns the city.
|
boolean |
getCommercial()
Returns the is commerical address flag.
|
java.lang.String |
getContactName()
(not persisted) Returns the contact name.
|
java.lang.String |
getContactPhone()
(not persisted) Returns the contact phone number.
|
Country |
getCountry()
Returns the country object.
|
java.lang.String |
getCountryCode()
Returns the country code.
|
java.lang.String |
getEmailAddr()
Returns the email address.
|
java.lang.String |
getFax()
Returns the fax number.
|
java.lang.String |
getId()
Returns the unique id for the customer.
|
boolean |
getIsPersisted()
(not persisted) Returns the is persisted flag.
|
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getPhone()
Returns the phone number.
|
java.lang.String |
getPostalCode()
Returns the postal code.
|
boolean |
getPrepay()
Returns the is prepay flag.
|
java.lang.String |
getShipforId()
Returns the ship-for customer id.
|
State |
getState()
Returns the state/province object.
|
java.lang.String |
getStateCode()
Returns the state/province code.
|
java.lang.String |
getStatusCode()
Returns the status code (defined by backend).
|
java.lang.String |
getStatusText()
Returns the status code text (defined by backend).
|
java.lang.String |
getVerificationAddress()
(not persisted) Returns the customer's address used for verifying
credit card transactions.
|
java.lang.String |
getVerificationPostalCode()
(not persisted) Returns the customer's postal code used for verifying
credit card transactions.
|
java.lang.String |
getXrefCode()
Returns the product cross reference code.
|
boolean |
isDefaultCustomer()
(not persisted) Answers if the customer is the default customer.
|
boolean |
isOneTimeShipto()
(not persisted) Answers if the customer is a one-time ship-to.
|
boolean |
isStatusDelete()
(not persisted) Answers if the customer status is delete.
|
void |
setAddress1(java.lang.String value)
Sets the address line 1.
|
void |
setAddress2(java.lang.String value)
Sets the address line 2.
|
void |
setAddress3(java.lang.String value)
Sets the address line 3.
|
void |
setAddress4(java.lang.String value)
Sets the address line 4.
|
void |
setARFax(java.lang.String value)
Sets the A/R fax number.
|
void |
setARPhone(java.lang.String value)
Sets the A/R phone number.
|
void |
setBilltoId(java.lang.String value)
Sets the bill-to customer id.
|
void |
setCity(java.lang.String value)
Sets the city.
|
void |
setCommercial(boolean value)
Sets the is commerical address flag.
|
void |
setContactName(java.lang.String value)
(not persisted) Sets the contact name.
|
void |
setContactPhone(java.lang.String value)
(not persisted) Sets the contact phone number.
|
void |
setCountry(Country value)
Sets the country object.
|
private void |
setCountryCode(java.lang.String value)
Sets the country code.
|
void |
setEmailAddr(java.lang.String value)
Sets the email address.
|
void |
setFax(java.lang.String value)
Sets the fax number.
|
void |
setId(java.lang.String value)
Sets the unique id for the customer.
|
void |
setIsPersisted(boolean value)
(not persisted) Sets the is persisted flag.
|
void |
setName(java.lang.String value)
Sets the name.
|
void |
setPhone(java.lang.String value)
Sets the phone number.
|
void |
setPostalCode(java.lang.String value)
Sets the postal code.
|
void |
setPrepay(boolean value)
Sets the is prepay flag.
|
void |
setShipforId(java.lang.String value)
Sets the ship-for customer id.
|
void |
setState(State value)
Sets the state/province object.
|
private void |
setStateCode(java.lang.String value)
Sets the state/province code.
|
void |
setStatusCode(java.lang.String value)
Sets the status code (defined by backend).
|
void |
setStatusText(java.lang.String value)
Sets the status code text (defined by backend).
|
void |
setXrefCode(java.lang.String value)
Sets the product cross reference code.
|
boolean |
shouldExclude()
(not persisted) Answers if the customer should be excluded from processing
(customer is default customer or is one-time shipto customer or is deleted).
|
after, before, compareTo, equals, fmtStatus, fmtStatus, getObjectStatus, hashKey, setObjectStatus
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
private static final long serialVersionUID
public static final java.lang.String DEFAULT_CUST
public static final java.lang.String ONETIME_SHIPTO
public Customer()
Customer
object with all field values set to
null
. Initializes the following flags and values based on
configured defaults.
setCommercial() | Customer.Commercial.Default |
public java.lang.String getId()
public void setId(java.lang.String value)
value
- (String) The unique id for the customer.public java.lang.String getBilltoId()
public void setBilltoId(java.lang.String value)
value
- (String) The bill-to customer id.public java.lang.String getShipforId()
public void setShipforId(java.lang.String value)
value
- (String) The ship-for customer id.public java.lang.String getName()
public void setName(java.lang.String value)
value
- (String) The name.public java.lang.String getAddress1()
public void setAddress1(java.lang.String value)
value
- (String) The address line 1.public java.lang.String getAddress2()
public void setAddress2(java.lang.String value)
value
- (String) The address line 2.public java.lang.String getAddress3()
public void setAddress3(java.lang.String value)
value
- (String) The address line 3.public java.lang.String getAddress4()
public void setAddress4(java.lang.String value)
value
- (String) The address line 4.public java.lang.String getCity()
public void setCity(java.lang.String value)
value
- (String) The city.public State getState()
public void setState(State value)
value
- (State) The state/province object.public java.lang.String getStateCode()
private void setStateCode(java.lang.String value)
value
- (String) The state/province code.public java.lang.String getPostalCode()
public void setPostalCode(java.lang.String value)
value
- (String) The postal code.public Country getCountry()
public void setCountry(Country value)
value
- (Country) The country object.public java.lang.String getCountryCode()
private void setCountryCode(java.lang.String value)
value
- (String) The country code.public java.lang.String getStatusCode()
public void setStatusCode(java.lang.String value)
value
- (String) The status code (defined by backend).public java.lang.String getStatusText()
public void setStatusText(java.lang.String value)
value
- (String) The status code text (defined by backend).public java.lang.String getXrefCode()
public void setXrefCode(java.lang.String value)
value
- (String) The product cross reference code.public boolean getPrepay()
public void setPrepay(boolean value)
value
- (boolean) The is prepay flag.public java.lang.String getPhone()
public void setPhone(java.lang.String value)
value
- (String) The phone number.public java.lang.String getFax()
public void setFax(java.lang.String value)
value
- (String) The fax number.public java.lang.String getARPhone()
public void setARPhone(java.lang.String value)
value
- (String) The A/R phone number.public java.lang.String getARFax()
public void setARFax(java.lang.String value)
value
- (String) The A/R fax number.public java.lang.String getEmailAddr()
public void setEmailAddr(java.lang.String value)
value
- (String) The email address.public boolean getCommercial()
public void setCommercial(boolean value)
value
- (boolean) The is commerical address flag.public java.lang.String getContactName()
public void setContactName(java.lang.String value)
value
- (String) The contact name.public java.lang.String getContactPhone()
public void setContactPhone(java.lang.String value)
value
- (String) The contact phone number.public boolean getIsPersisted()
public void setIsPersisted(boolean value)
value
- (boolean) The is persisted flag.public java.lang.String getVerificationAddress()
public java.lang.String getVerificationPostalCode()
public boolean isDefaultCustomer()
true
if the customer is the default customer,
otherwise false
.public boolean isOneTimeShipto()
true
if the customer is a one-time ship-to,
otherwise false
.public boolean isStatusDelete()
true
if the customer status is delete,
otherwise false
.public boolean shouldExclude()
true
if the customer should be excluded,
otherwise false
.