public class ProductRelationship extends java.lang.Object implements ProductRelationshipIf
Constructor and Description |
---|
ProductRelationship()
Constructor
|
ProductRelationship(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Product object from a Record object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
int |
getProdIdFrom() |
int |
getProdIdTo() |
java.lang.String |
getProdOptions()
Only used for bundles
|
int |
getProductId() |
int |
getQuantity()
Only used for bundles
|
int |
getRelationType() |
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setProdIdFrom(int prodIdFrom) |
void |
setProdIdTo(int prodIdTo) |
void |
setProdOptions(java.lang.String prodOptions)
Only used for bundles
|
void |
setProductId(int productId) |
void |
setQuantity(int quantity)
Only used for bundles
|
void |
setRelationType(int relationType) |
java.lang.String |
toString() |
public ProductRelationship()
public ProductRelationship(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 getProductId()
getProductId
in interface ProductRelationshipIf
public void setProductId(int productId)
setProductId
in interface ProductRelationshipIf
productId
- the productId to setpublic int getRelationType()
getRelationType
in interface ProductRelationshipIf
public void setRelationType(int relationType)
setRelationType
in interface ProductRelationshipIf
relationType
- the relationType to setpublic java.lang.String getCustom1()
getCustom1
in interface ProductRelationshipIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface ProductRelationshipIf
custom1
- the custom1 to setpublic java.lang.String getCustom2()
getCustom2
in interface ProductRelationshipIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface ProductRelationshipIf
custom2
- the custom2 to setpublic int getQuantity()
getQuantity
in interface ProductRelationshipIf
public void setQuantity(int quantity)
setQuantity
in interface ProductRelationshipIf
quantity
- the quantity to setpublic java.lang.String getProdOptions()
getProdOptions
in interface ProductRelationshipIf
public void setProdOptions(java.lang.String prodOptions)
setProdOptions
in interface ProductRelationshipIf
prodOptions
- the prodOptions to setpublic int getProdIdFrom()
getProdIdFrom
in interface ProductRelationshipIf
public void setProdIdFrom(int prodIdFrom)
setProdIdFrom
in interface ProductRelationshipIf
prodIdFrom
- the prodIdFrom to setpublic int getProdIdTo()
getProdIdTo
in interface ProductRelationshipIf
public void setProdIdTo(int prodIdTo)
setProdIdTo
in interface ProductRelationshipIf
prodIdTo
- the prodIdTo to setCopyright © 2018 DS Data Systems UK Ltd.