|
|||||||||
| Home >> All >> com >> globalretailtech >> [ data overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.globalretailtech.data
Class Promotion

java.lang.Objectcom.globalretailtech.data.DBRecord
com.globalretailtech.data.Promotion
- All Implemented Interfaces:
- java.io.Serializable
- public class Promotion
- extends DBRecord
- implements java.io.Serializable
- extends DBRecord
Promotion defines (hopefully) a very arbitray promotion mechanism. Various parameters and the actual promotion logic is defined. This is linked to an Item through promotion map.
| Field Summary | |
private static int[] |
col_types
|
private static java.lang.String[] |
columns
|
private int |
itempromotionid
|
private boolean |
printbeforeitem
|
private java.lang.String |
promotionclass
|
private double |
promotiondval1
|
private double |
promotiondval2
|
private double |
promotiondval3
|
private double |
promotiondval4
|
private double |
promotiondval5
|
private int |
promotionno
|
private java.lang.String |
promotionstring
|
private int |
promotiontype
|
private int |
promotionval1
|
private int |
promotionval2
|
private int |
promotionval3
|
private int |
promotionval4
|
private int |
promotionval5
|
private static java.lang.StringBuffer |
scratch
|
private static java.lang.String |
table
|
private java.lang.String |
validdays
|
private java.lang.String |
validtimes
|
| Fields inherited from class com.globalretailtech.data.DBRecord |
BOOLEAN, BYTE, DATA, DATE, DOUBLE, INT, STRING |
| Constructor Summary | |
Promotion()
|
|
| Method Summary | |
java.util.Vector |
columnObjects()
Temporary base class implementations for xml import/export. |
DBRecord |
copy()
Copies the record, used to create a new record during population. |
static java.lang.String |
getByID(int id)
|
static java.lang.String |
getByNo(int no)
|
void |
populate(java.sql.ResultSet rset)
Called by fetch method in DBContext to move entity data from the result set to the record |
boolean |
printBeforeItem()
|
java.lang.String |
promotionClass()
|
double |
promotionDVal1()
|
double |
promotionDVal2()
|
double |
promotionDVal3()
|
double |
promotionDVal4()
|
double |
promotionDVal5()
|
int |
promotionID()
|
int |
promotionNo()
|
java.lang.String |
promotionString()
|
int |
promotionType()
|
int |
promotionVal1()
|
int |
promotionVal2()
|
int |
promotionVal3()
|
int |
promotionVal4()
|
int |
promotionVal5()
|
void |
relations()
Called by fetch method in DBContext to service any entity relationships (child records). |
boolean |
save()
Entity save. |
void |
setPrintBeforeItem(boolean value)
|
void |
setPromotionClass(java.lang.String value)
|
void |
setPromotionDVal1(double value)
|
void |
setPromotionDVal2(double value)
|
void |
setPromotionDVal3(double value)
|
void |
setPromotionDVal4(double value)
|
void |
setPromotionDVal5(double value)
|
void |
setPromotionID(int value)
|
void |
setPromotionNo(int value)
|
void |
setPromotionString(java.lang.String value)
|
void |
setPromotionType(int value)
|
void |
setPromotionVal1(int value)
|
void |
setPromotionVal2(int value)
|
void |
setPromotionVal3(int value)
|
void |
setPromotionVal4(int value)
|
void |
setPromotionVal5(int value)
|
void |
setValidDays(java.lang.String value)
|
void |
setValidTimes(java.lang.String value)
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
java.lang.String |
toXML()
Abstract implementation of toXML () |
boolean |
update()
Entity update. |
java.lang.String |
validDays()
|
java.lang.String |
validTimes()
|
| Methods inherited from class com.globalretailtech.data.DBRecord |
getUpdateString, toXML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
table
private static java.lang.String table
columns
private static java.lang.String[] columns
col_types
private static int[] col_types
itempromotionid
private int itempromotionid
promotionno
private int promotionno
promotiontype
private int promotiontype
promotionval1
private int promotionval1
promotionval2
private int promotionval2
promotionval3
private int promotionval3
promotionval4
private int promotionval4
promotionval5
private int promotionval5
promotiondval1
private double promotiondval1
promotiondval2
private double promotiondval2
promotiondval3
private double promotiondval3
promotiondval4
private double promotiondval4
promotiondval5
private double promotiondval5
printbeforeitem
private boolean printbeforeitem
validtimes
private java.lang.String validtimes
validdays
private java.lang.String validdays
promotionstring
private java.lang.String promotionstring
promotionclass
private java.lang.String promotionclass
scratch
private static java.lang.StringBuffer scratch
| Constructor Detail |
Promotion
public Promotion()
| Method Detail |
promotionID
public int promotionID()
promotionNo
public int promotionNo()
promotionType
public int promotionType()
promotionVal1
public int promotionVal1()
promotionVal2
public int promotionVal2()
promotionVal3
public int promotionVal3()
promotionVal4
public int promotionVal4()
promotionVal5
public int promotionVal5()
promotionDVal1
public double promotionDVal1()
promotionDVal2
public double promotionDVal2()
promotionDVal3
public double promotionDVal3()
promotionDVal4
public double promotionDVal4()
promotionDVal5
public double promotionDVal5()
printBeforeItem
public boolean printBeforeItem()
validTimes
public java.lang.String validTimes()
validDays
public java.lang.String validDays()
promotionString
public java.lang.String promotionString()
promotionClass
public java.lang.String promotionClass()
setPromotionID
public void setPromotionID(int value)
setPromotionNo
public void setPromotionNo(int value)
setPromotionType
public void setPromotionType(int value)
setPromotionVal1
public void setPromotionVal1(int value)
setPromotionVal2
public void setPromotionVal2(int value)
setPromotionVal3
public void setPromotionVal3(int value)
setPromotionVal4
public void setPromotionVal4(int value)
setPromotionVal5
public void setPromotionVal5(int value)
setPromotionDVal1
public void setPromotionDVal1(double value)
setPromotionDVal2
public void setPromotionDVal2(double value)
setPromotionDVal3
public void setPromotionDVal3(double value)
setPromotionDVal4
public void setPromotionDVal4(double value)
setPromotionDVal5
public void setPromotionDVal5(double value)
setPrintBeforeItem
public void setPrintBeforeItem(boolean value)
setValidTimes
public void setValidTimes(java.lang.String value)
setValidDays
public void setValidDays(java.lang.String value)
setPromotionString
public void setPromotionString(java.lang.String value)
setPromotionClass
public void setPromotionClass(java.lang.String value)
getByID
public static java.lang.String getByID(int id)
getByNo
public static java.lang.String getByNo(int no)
copy
public DBRecord copy()
- Description copied from class:
DBRecord - Copies the record, used to create a new record
during population.
populate
public void populate(java.sql.ResultSet rset)
- Description copied from class:
DBRecord - Called by fetch method in DBContext to move entity
data from the result set to the record
save
public boolean save()
update
public boolean update()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
relations
public void relations()
- Description copied from class:
DBRecord - Called by fetch method in DBContext to service
any entity relationships (child records).
toXML
public java.lang.String toXML()
columnObjects
public java.util.Vector columnObjects()
- Description copied from class:
DBRecord - Temporary base class implementations for
xml import/export. Some of these will
eventually become abstract.
- Overrides:
columnObjectsin classDBRecord
|
|||||||||
| Home >> All >> com >> globalretailtech >> [ data overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC