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

Quick Search    Search Deep

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

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

public class Total
extends DBRecord

Total holds a single type of total. These are grouped by PosTotal.


Field Summary
static int ALT_CURRENCY_BASE
           
static int CASH
           
static int CASH_IN_DRAWER
           
static int CHECK
           
static int CHECK_IN_DRAWER
           
private static int[] col_types
           
private static java.lang.String[] columns
           
static int COUPON
           
static int CREDIT_CARD_BASE
           
static int DAILY_BASE
           
static int DEBIT
           
static int DEPARTMENT_BASE
           
static int GIFT_CERTIFICATE
           
static int LOAN
           
static int MONTHLY_BASE
           
static int NON_TAXABLE
           
static int PAID_IN
           
static int PAID_OUT
           
static int PICK_UP
           
private  PosProfile posProfile
           
private  int postotalid
           
static int RCVD_ON_ACCT
           
static int RETURN
           
private static java.lang.String table
           
static int TAXABLE
           
private  double totalamount
           
private  int totalcount
           
private  int totalid
           
private  int totaltype
           
static int VOID
           
static int WEEKLY_BASE
           
static int YEARLY_BASE
           
 
Fields inherited from class com.globalretailtech.data.DBRecord
BOOLEAN, BYTE, DATA, DATE, DOUBLE, INT, STRING
 
Constructor Summary
Total()
           
 
Method Summary
static boolean addToTotal(int siteid, int posno, int totaltype, double amount)
           
static boolean addToTotalAndCount(int siteid, int posno, int totaltype, double amount, int count)
           
 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.
 void delete()
           
static java.lang.String getByID(int id)
           
static java.lang.String getByPosTotalID(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
 PosProfile posProfile()
           
 int posTotalID()
           
 void relations()
          Called by fetch method in DBContext to service any entity relationships (child records).
 boolean save()
          Entity save.
 void setPosTotalID(int value)
           
 void setTotalAmount(double value)
           
 void setTotalCount(int value)
           
 void setTotalID(int value)
           
 void setTotalTypeID(int value)
           
 double totalAmount()
           
 int totalCount()
           
 int totalID()
           
 int totalType()
           
 java.lang.String toXML()
          Abstract implementation of toXML ()
 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

CASH

public static final int CASH
See Also:
Constant Field Values

CHECK

public static final int CHECK
See Also:
Constant Field Values

TAXABLE

public static final int TAXABLE
See Also:
Constant Field Values

NON_TAXABLE

public static final int NON_TAXABLE
See Also:
Constant Field Values

VOID

public static final int VOID
See Also:
Constant Field Values

RETURN

public static final int RETURN
See Also:
Constant Field Values

COUPON

public static final int COUPON
See Also:
Constant Field Values

RCVD_ON_ACCT

public static final int RCVD_ON_ACCT
See Also:
Constant Field Values

PAID_IN

public static final int PAID_IN
See Also:
Constant Field Values

PAID_OUT

public static final int PAID_OUT
See Also:
Constant Field Values

LOAN

public static final int LOAN
See Also:
Constant Field Values

PICK_UP

public static final int PICK_UP
See Also:
Constant Field Values

CASH_IN_DRAWER

public static final int CASH_IN_DRAWER
See Also:
Constant Field Values

CHECK_IN_DRAWER

public static final int CHECK_IN_DRAWER
See Also:
Constant Field Values

DEBIT

public static final int DEBIT
See Also:
Constant Field Values

GIFT_CERTIFICATE

public static final int GIFT_CERTIFICATE
See Also:
Constant Field Values

CREDIT_CARD_BASE

public static final int CREDIT_CARD_BASE
See Also:
Constant Field Values

DEPARTMENT_BASE

public static final int DEPARTMENT_BASE
See Also:
Constant Field Values

ALT_CURRENCY_BASE

public static final int ALT_CURRENCY_BASE
See Also:
Constant Field Values

DAILY_BASE

public static final int DAILY_BASE
See Also:
Constant Field Values

WEEKLY_BASE

public static final int WEEKLY_BASE
See Also:
Constant Field Values

MONTHLY_BASE

public static final int MONTHLY_BASE
See Also:
Constant Field Values

YEARLY_BASE

public static final int YEARLY_BASE
See Also:
Constant Field Values

table

private static java.lang.String table

columns

private static java.lang.String[] columns

col_types

private static int[] col_types

totalid

private int totalid

postotalid

private int postotalid

totaltype

private int totaltype

totalcount

private int totalcount

totalamount

private double totalamount

posProfile

private PosProfile posProfile
Constructor Detail

Total

public Total()
Method Detail

totalID

public int totalID()

posTotalID

public int posTotalID()

totalType

public int totalType()

totalCount

public int totalCount()

totalAmount

public double totalAmount()

setTotalID

public void setTotalID(int value)

setPosTotalID

public void setPosTotalID(int value)

setTotalTypeID

public void setTotalTypeID(int value)

setTotalCount

public void setTotalCount(int value)

setTotalAmount

public void setTotalAmount(double value)

getByID

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

getByPosTotalID

public static java.lang.String getByPosTotalID(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

addToTotal

public static boolean addToTotal(int siteid,
                                 int posno,
                                 int totaltype,
                                 double amount)

addToTotalAndCount

public static boolean addToTotalAndCount(int siteid,
                                         int posno,
                                         int totaltype,
                                         double amount,
                                         int count)

delete

public void delete()

update

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

Specified by:
update in class DBRecord

posProfile

public PosProfile posProfile()

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