com.konakart.app
Class TaxRate

java.lang.Object
  extended by com.konakart.app.TaxRate
All Implemented Interfaces:
TaxRateIf

public class TaxRate
extends java.lang.Object
implements TaxRateIf

Tax Rate


Constructor Summary
TaxRate()
          Constructor
TaxRate(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Tax object from a Record object
 
Method Summary
 java.lang.String getDescription()
          The description of the tax rate.
 int getId()
           
 int getPriority()
          There may be more than one tax rate.
 java.math.BigDecimal getRate()
           
 void setDescription(java.lang.String description)
          The description of the tax rate.
 void setId(int id)
           
 void setPriority(int priority)
          There may be more than one tax rate.
 void setRate(java.math.BigDecimal rate)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaxRate

public TaxRate()
Constructor


TaxRate

public TaxRate(com.workingdogs.village.Record vr,
               org.apache.torque.util.Criteria c)
        throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Tax object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the TaxRate object.

getDescription

public java.lang.String getDescription()
Description copied from interface: TaxRateIf
The description of the tax rate. e.g. FL TAX 7.0%

Specified by:
getDescription in interface TaxRateIf
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Description copied from interface: TaxRateIf
The description of the tax rate. e.g. FL TAX 7.0%

Specified by:
setDescription in interface TaxRateIf
Parameters:
description - The description to set.

getId

public int getId()
Specified by:
getId in interface TaxRateIf
Returns:
Returns the id.

setId

public void setId(int id)
Specified by:
setId in interface TaxRateIf
Parameters:
id - The id to set.

getPriority

public int getPriority()
Description copied from interface: TaxRateIf
There may be more than one tax rate. If this is the case the rates have to be applied starting from the first rate and then compounded. If there are multiple rates with the same priority, then these are added together and can be applied in a single calculation. If there are multiple rates with different priorities, then they are compounded.

Specified by:
getPriority in interface TaxRateIf
Returns:
Returns the priority.

setPriority

public void setPriority(int priority)
Description copied from interface: TaxRateIf
There may be more than one tax rate. If this is the case the rates have to be applied starting from the first rate and then compounded. If there are multiple rates with the same priority, then these are added together and can be applied in a single calculation. If there are multiple rates with different priorities, then they are compounded.

Specified by:
setPriority in interface TaxRateIf
Parameters:
priority - The priority to set.

getRate

public java.math.BigDecimal getRate()
Specified by:
getRate in interface TaxRateIf
Returns:
Returns the rate.

setRate

public void setRate(java.math.BigDecimal rate)
Specified by:
setRate in interface TaxRateIf
Parameters:
rate - The rate to set.


Copyright © 2011 DS Data Systems UK Ltd.