Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.globalretailtech.data
Class TransPromotion  view TransPromotion download TransPromotion.java

java.lang.Object
  extended bycom.globalretailtech.data.DBRecord
      extended bycom.globalretailtech.data.TransPromotion

public class TransPromotion
extends DBRecord

Hold transation item promotion, modifies price, etc...


Field Summary
private static int[] col_types
           
private static java.lang.String[] columns
           
private  double promotionamount
           
private  java.lang.String promotiondata
           
private  java.lang.String promotiondesc
           
private  int promotionno
           
private  int promotionquantity
           
private  int promotiontype
           
private  int reasoncode
           
private  int seqno
           
private static java.lang.String table
           
private  int transid
           
 
Fields inherited from class com.globalretailtech.data.DBRecord
BOOLEAN, BYTE, DATA, DATE, DOUBLE, INT, STRING
 
Constructor Summary
TransPromotion()
           
 
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)
           
 void populate(java.sql.ResultSet rset)
          Called by fetch method in DBContext to move entity data from the result set to the record
 double promotionAmount()
           
 java.lang.String promotionData()
           
 java.lang.String promotionDesc()
           
 int promotionNo()
           
 int promotionQuantity()
           
 int promotionType()
           
 int reasonCode()
           
 void relations()
          Called by fetch method in DBContext to service any entity relationships (child records).
 boolean save()
          Entity save.
 boolean save(DBContext db)
           
 int seqNo()
           
 void setPromotionAmount(double value)
           
 void setPromotionData(java.lang.String value)
           
 void setPromotionDesc(java.lang.String value)
           
 void setPromotionNo(int value)
           
 void setPromotionQuantity(int value)
           
 void setPromotionType(int value)
           
 void setReasonCode(int value)
           
 void setSeqNo(int value)
           
 void setTransID(int value)
           
 java.lang.String toXML()
          Abstract implementation of toXML ()
 int transID()
           
 boolean update()
          Entity update.
 
Methods inherited from class com.globalretailtech.data.DBRecord
getUpdateString, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

transid

private int transid

seqno

private int seqno

promotionno

private int promotionno

promotiontype

private int promotiontype

promotionamount

private double promotionamount

promotionquantity

private int promotionquantity

reasoncode

private int reasoncode

promotiondata

private java.lang.String promotiondata

promotiondesc

private java.lang.String promotiondesc
Constructor Detail

TransPromotion

public TransPromotion()
Method Detail

transID

public int transID()

seqNo

public int seqNo()

promotionNo

public int promotionNo()

promotionType

public int promotionType()

promotionAmount

public double promotionAmount()

promotionQuantity

public int promotionQuantity()

reasonCode

public int reasonCode()

promotionData

public java.lang.String promotionData()

promotionDesc

public java.lang.String promotionDesc()

setTransID

public void setTransID(int value)

setSeqNo

public void setSeqNo(int value)

setPromotionType

public void setPromotionType(int value)

setPromotionNo

public void setPromotionNo(int value)

setPromotionAmount

public void setPromotionAmount(double value)

setPromotionQuantity

public void setPromotionQuantity(int value)

setReasonCode

public void setReasonCode(int value)

setPromotionData

public void setPromotionData(java.lang.String value)

setPromotionDesc

public void setPromotionDesc(java.lang.String value)

getByID

public static java.lang.String getByID(int id)

copy

public DBRecord copy()
Description copied from class: DBRecord
Copies the record, used to create a new record during population.

Specified by:
copy in class DBRecord

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

Specified by:
populate in class DBRecord

save

public boolean save()
Description copied from class: DBRecord
Entity save.

Specified by:
save in class DBRecord

save

public boolean save(DBContext db)

update

public boolean update()
Description copied from class: DBRecord
Entity update.

Specified by:
update in class DBRecord

relations

public void relations()
Description copied from class: DBRecord
Called by fetch method in DBContext to service any entity relationships (child records).

Specified by:
relations in class DBRecord

toXML

public java.lang.String toXML()
Abstract implementation of toXML ()

Specified by:
toXML in class DBRecord

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:
columnObjects in class DBRecord