public class Suggestion extends java.lang.Object implements SuggestionIf
Constructor and Description |
---|
Suggestion()
Constructor
|
Suggestion(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Suggestion object from a Record object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateKey() |
int |
getBoughtProductId() |
int |
getConfidence() |
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
int |
getCustomerId() |
int |
getSuggestedProductId() |
int |
getSuggestionType() |
int |
getSuggestionVersion() |
void |
setBoughtProductId(int boughtProductId) |
void |
setConfidence(int confidence) |
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustomerId(int customerId) |
void |
setSuggestedProductId(int suggestedProductId) |
void |
setSuggestionType(int suggestionType) |
void |
setSuggestionVersion(int suggestionVersion) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public Suggestion()
public Suggestion(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 java.lang.String toStringBrief()
toStringBrief
in interface SuggestionIf
public java.lang.String generateKey()
public int getSuggestionType()
getSuggestionType
in interface SuggestionIf
public void setSuggestionType(int suggestionType)
setSuggestionType
in interface SuggestionIf
suggestionType
- the suggestionType to setpublic int getSuggestionVersion()
getSuggestionVersion
in interface SuggestionIf
public void setSuggestionVersion(int suggestionVersion)
setSuggestionVersion
in interface SuggestionIf
suggestionVersion
- the suggestionVersion to setpublic int getBoughtProductId()
getBoughtProductId
in interface SuggestionIf
public void setBoughtProductId(int boughtProductId)
setBoughtProductId
in interface SuggestionIf
boughtProductId
- the boughtProductId to setpublic int getCustomerId()
getCustomerId
in interface SuggestionIf
public void setCustomerId(int customerId)
setCustomerId
in interface SuggestionIf
customerId
- the customerId to setpublic int getSuggestedProductId()
getSuggestedProductId
in interface SuggestionIf
public void setSuggestedProductId(int suggestedProductId)
setSuggestedProductId
in interface SuggestionIf
suggestedProductId
- the suggestedProductId to setpublic int getConfidence()
getConfidence
in interface SuggestionIf
public void setConfidence(int confidence)
setConfidence
in interface SuggestionIf
confidence
- the confidence to setpublic java.lang.String getCustom1()
getCustom1
in interface SuggestionIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface SuggestionIf
custom1
- the custom1 to setpublic java.lang.String getCustom2()
getCustom2
in interface SuggestionIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface SuggestionIf
custom2
- the custom2 to setpublic java.lang.String getCustom3()
getCustom3
in interface SuggestionIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface SuggestionIf
custom3
- the custom3 to setCopyright © 2018 DS Data Systems UK Ltd.