java.lang.Object
com.globalretailtech.data.DBRecord
com.globalretailtech.data.Total
- public class Total
- extends DBRecord
Total holds a single type of total. These
are grouped by PosTotal.
|
Constructor Summary |
Total()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Total
public Total()
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