public class RewardPoint extends java.lang.Object implements RewardPointIf
Constructor and Description |
---|
RewardPoint()
Constructor
|
RewardPoint(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Reward Points object from a Record object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
A code used to define the type of transaction in which the points were added or removed.
|
int |
getCustomerId()
The numeric id of the customer that the points belong to.
|
java.util.Calendar |
getDateAdded()
The date added
|
java.lang.String |
getDescription()
A description that can be viewed in a points statement.
|
int |
getId()
The numeric id of the Reward Points Object
|
int |
getInitialPoints()
The initial number of points when they were awarded
|
int |
getRemainingPoints()
The number of points remaining, since some may have been used.
|
java.lang.String |
getStoreId()
The store id
|
int |
getTransactionType()
The type of transaction which indicates whether the points have been added or removed.
|
boolean |
isExpired()
Indicates whether the points have expired
|
void |
setCode(java.lang.String code)
A code used to define the type of transaction in which the points were added or removed.
|
void |
setCustomerId(int customerId)
The numeric id of the customer that the points belong to.
|
void |
setDateAdded(java.util.Calendar dateAdded)
The date added
|
void |
setDescription(java.lang.String description)
A description that can be viewed in a points statement.
|
void |
setExpired(boolean expired)
Indicates whether the points have expired
|
void |
setId(int id)
The numeric id of the Reward Points Object
|
void |
setInitialPoints(int initialPoints)
The initial number of points when they were awarded
|
void |
setRemainingPoints(int remainingPoints)
The number of points remaining, since some may have been used.
|
void |
setStoreId(java.lang.String storeId)
The store id
|
void |
setTransactionType(int transactionType)
The type of transaction which indicates whether the points have been added or removed.
|
java.lang.String |
toString() |
public RewardPoint()
public RewardPoint(com.workingdogs.village.Record vr, KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString
in class java.lang.Object
public int getId()
RewardPointIf
getId
in interface RewardPointIf
public void setId(int id)
RewardPointIf
setId
in interface RewardPointIf
id
- the id to setpublic java.lang.String getStoreId()
RewardPointIf
getStoreId
in interface RewardPointIf
public void setStoreId(java.lang.String storeId)
RewardPointIf
setStoreId
in interface RewardPointIf
storeId
- the storeId to setpublic java.lang.String getCode()
RewardPointIf
getCode
in interface RewardPointIf
public void setCode(java.lang.String code)
RewardPointIf
setCode
in interface RewardPointIf
code
- the code to setpublic java.lang.String getDescription()
RewardPointIf
getDescription
in interface RewardPointIf
public void setDescription(java.lang.String description)
RewardPointIf
setDescription
in interface RewardPointIf
description
- the description to setpublic int getCustomerId()
RewardPointIf
getCustomerId
in interface RewardPointIf
public void setCustomerId(int customerId)
RewardPointIf
setCustomerId
in interface RewardPointIf
customerId
- the customerId to setpublic int getInitialPoints()
RewardPointIf
getInitialPoints
in interface RewardPointIf
public void setInitialPoints(int initialPoints)
RewardPointIf
setInitialPoints
in interface RewardPointIf
initialPoints
- the initialPoints to setpublic int getRemainingPoints()
RewardPointIf
getRemainingPoints
in interface RewardPointIf
public void setRemainingPoints(int remainingPoints)
RewardPointIf
setRemainingPoints
in interface RewardPointIf
remainingPoints
- the remainingPoints to setpublic boolean isExpired()
RewardPointIf
isExpired
in interface RewardPointIf
public void setExpired(boolean expired)
RewardPointIf
setExpired
in interface RewardPointIf
expired
- the expired to setpublic int getTransactionType()
RewardPointIf
getTransactionType
in interface RewardPointIf
public void setTransactionType(int transactionType)
RewardPointIf
setTransactionType
in interface RewardPointIf
transactionType
- the transactionType to setpublic java.util.Calendar getDateAdded()
RewardPointIf
getDateAdded
in interface RewardPointIf
public void setDateAdded(java.util.Calendar dateAdded)
RewardPointIf
setDateAdded
in interface RewardPointIf
dateAdded
- the dateAdded to setCopyright © 2018 DS Data Systems UK Ltd.