planetj.qif
Class QIFBankTransaction

java.lang.Object
  |
  +--planetj.qif.QIFRecord
        |
        +--planetj.qif.QIFBankTransaction

public class QIFBankTransaction
extends QIFRecord

Bank account transaction. Does not support splits yet.


Field Summary
static String FIELD_ACCOUNT_FOR_TRANSFER
           
static String FIELD_ACTION
           
static String FIELD_ADDRESS
           
static String FIELD_AMOUNT_OF_SPLIT
           
static String FIELD_AMOUNT_TRANSFERRED
           
static String FIELD_CATEGORY
           
static String FIELD_CLEARED_STATUS
           
static String FIELD_COMMISSION
           
static String FIELD_DATE
           
static String FIELD_END_OF_ENTRY
           
static String FIELD_MEMO
           
static String FIELD_MEMO_IN_SPLIT
           
static String FIELD_NUMBER
           
static String FIELD_PAYEE
           
static String FIELD_PRICE
           
static String FIELD_QUANTITY
           
static String FIELD_REIMBURSABLE_BUSINESS_EXPENSE
           
static String FIELD_SECURITY
           
static String FIELD_TOTAL
           
static String FIELD_TRANSACTION_AMOUNT
           
 
Fields inherited from class planetj.qif.QIFRecord
CLEAR_AUTOSWITCH, OPTION_ALL_TRANSFER, OPTION_AUTOSWITCH, RECORD_ACCOUNT, RECORD_CLEAR, RECORD_END, RECORD_OPTION, RECORD_TYPE, TYPE_ASSET, TYPE_BANK, TYPE_BILL, TYPE_BUDGET, TYPE_CASH, TYPE_CATEGORY_LIST, TYPE_CLASS_LIST, TYPE_CREDIT_CARD, TYPE_INVESTMENT, TYPE_INVOICE, TYPE_INVOICE_ITEM, TYPE_LIABILITY, TYPE_MEMORIZED, TYPE_PRICES, TYPE_SECURITY, TYPE_TAX, TYPE_TEMPLATE
 
Constructor Summary
QIFBankTransaction()
          Constructs a blank TransactionRecord.
 
Method Summary
 String getAccount()
          Returns the account from which the amount of the transaction was taken from.
 String getCategory()
           
 Date getDate()
          Returns the date of the transaction.
 String getMemo()
          Returns the transaction's memo, or null if none was set.
 String getNumber()
          Returns the transaction's number, which is usually a check number or some other identifying number for the transaction.
 String getPayee()
          Returns who's involved in the transaction, such as the name of a store where expenses took place.
 boolean isCleared()
          Returns whether the transaction is "cleared" or not.
 boolean isReconciled()
          Returns whether the transaction is "reconciled" or not.
 void setAccount(String account)
          Sets the account from which the amount of the transaction was taken from.
 void setCategory(String category)
          Sets the category from which the amount of the transaction was taken from.
 void setCleared(boolean cleared)
          Sets the "cleared" status.
 void setDate(Date date)
          Sets the date of the transaction.
 void setMemo(String memo)
          Give the transaction a memo.
 void setNumber(String number)
          Sets the transaction's number, which is usually a check number or some other identifying number for the transaction.
 void setPayee(String payee)
          Sets who's involved in the transaction, such as the name of a store where expenses took place.
 void setReconciled(boolean reconciled)
          Sets the "reconciled" flag.
 void setTotal(float total)
          Sets the total amount of the transaction.
 String toString()
          Returns the complete QIF record corresponding to the AccountRecord.
 StringBuffer toStringBuffer()
          Returns the complete QIF record corresponding to the AccountRecord.
 
Methods inherited from class planetj.qif.QIFRecord
encodeDate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIELD_DATE

public static final String FIELD_DATE
See Also:
Constant Field Values

FIELD_TOTAL

public static final String FIELD_TOTAL
See Also:
Constant Field Values

FIELD_CLEARED_STATUS

public static final String FIELD_CLEARED_STATUS
See Also:
Constant Field Values

FIELD_NUMBER

public static final String FIELD_NUMBER
See Also:
Constant Field Values

FIELD_PAYEE

public static final String FIELD_PAYEE
See Also:
Constant Field Values

FIELD_MEMO

public static final String FIELD_MEMO
See Also:
Constant Field Values

FIELD_ADDRESS

public static final String FIELD_ADDRESS
See Also:
Constant Field Values

FIELD_CATEGORY

public static final String FIELD_CATEGORY
See Also:
Constant Field Values

FIELD_MEMO_IN_SPLIT

public static final String FIELD_MEMO_IN_SPLIT
See Also:
Constant Field Values

FIELD_AMOUNT_OF_SPLIT

public static final String FIELD_AMOUNT_OF_SPLIT
See Also:
Constant Field Values

FIELD_END_OF_ENTRY

public static final String FIELD_END_OF_ENTRY
See Also:
Constant Field Values

FIELD_REIMBURSABLE_BUSINESS_EXPENSE

public static final String FIELD_REIMBURSABLE_BUSINESS_EXPENSE
See Also:
Constant Field Values

FIELD_ACTION

public static final String FIELD_ACTION
See Also:
Constant Field Values

FIELD_SECURITY

public static final String FIELD_SECURITY
See Also:
Constant Field Values

FIELD_PRICE

public static final String FIELD_PRICE
See Also:
Constant Field Values

FIELD_QUANTITY

public static final String FIELD_QUANTITY
See Also:
Constant Field Values

FIELD_TRANSACTION_AMOUNT

public static final String FIELD_TRANSACTION_AMOUNT
See Also:
Constant Field Values

FIELD_COMMISSION

public static final String FIELD_COMMISSION
See Also:
Constant Field Values

FIELD_ACCOUNT_FOR_TRANSFER

public static final String FIELD_ACCOUNT_FOR_TRANSFER
See Also:
Constant Field Values

FIELD_AMOUNT_TRANSFERRED

public static final String FIELD_AMOUNT_TRANSFERRED
See Also:
Constant Field Values
Constructor Detail

QIFBankTransaction

public QIFBankTransaction()
Constructs a blank TransactionRecord.

Method Detail

getAccount

public String getAccount()
Returns the account from which the amount of the transaction was taken from.


getCategory

public String getCategory()

getDate

public Date getDate()
Returns the date of the transaction.


getMemo

public String getMemo()
Returns the transaction's memo, or null if none was set.


getNumber

public String getNumber()
Returns the transaction's number, which is usually a check number or some other identifying number for the transaction.


getPayee

public String getPayee()
Returns who's involved in the transaction, such as the name of a store where expenses took place.


isCleared

public boolean isCleared()
Returns whether the transaction is "cleared" or not.


isReconciled

public boolean isReconciled()
Returns whether the transaction is "reconciled" or not.


setAccount

public void setAccount(String account)
Sets the account from which the amount of the transaction was taken from.


setCategory

public void setCategory(String category)
Sets the category from which the amount of the transaction was taken from.


setCleared

public void setCleared(boolean cleared)
Sets the "cleared" status.


setDate

public void setDate(Date date)
Sets the date of the transaction.


setMemo

public void setMemo(String memo)
Give the transaction a memo.


setNumber

public void setNumber(String number)
Sets the transaction's number, which is usually a check number or some other identifying number for the transaction.


setPayee

public void setPayee(String payee)
Sets who's involved in the transaction, such as the name of a store where expenses took place.


setReconciled

public void setReconciled(boolean reconciled)
Sets the "reconciled" flag.


setTotal

public void setTotal(float total)
Sets the total amount of the transaction.


toString

public String toString()
Returns the complete QIF record corresponding to the AccountRecord. Values that were not explicitely set are not included in the result. Please use toStringBuffer() if possible Creation date: (2/8/2002 7:36:52 PM)

Overrides:
toString in class Object

toStringBuffer

public StringBuffer toStringBuffer()
Returns the complete QIF record corresponding to the AccountRecord. Values that were not explicitely set are not included in the result.

This method saves a String Object creation over toString(). Please use this method if possible Creation date: (2/8/2002 7:36:52 PM)

Specified by:
toStringBuffer in class QIFRecord
Returns:
java.lang.StringBuffer