planetj.iif
Class IIFTransaction

java.lang.Object
  |
  +--planetj.iif.IIFRecord
        |
        +--planetj.iif.IIFTransaction
All Implemented Interfaces:
IIIF

public class IIFTransaction
extends IIFRecord

This is the Main Transaction that will be used to generate an IIF file. This holds a list of IIFDistribution Objects.

An IIF file has a header line that explains to QuickBooks what information it is going to be seeing next. All header lines begin with an exclamation point. This file contains the header lines needed to import to the chart of accounts, vendor list, and a Bill Payment Credit Card transaction. Some columns may not have anything in them and that is fine, however, the headers and columns need to be there for QuickBooks to be able to import it correctly. Just leave them blank if you do not have anything that goes in that field.

Creation date: (2/13/2002 1:44:05 AM)


Field Summary
static String ADDRESS1
           
static String ADDRESS2
           
static String CITY_STATE_ZIP
           
static String TO_PRINT
           
static String TRANSACTION_END
           
static String TRANSACTION_ID
           
static String TRANSACTION_START
           
static String TRANSACTION_TYPE_CHECK
           
 
Fields inherited from class planetj.iif.IIFRecord
TYPE_ACCOUNT, TYPE_BUD, TYPE_CLASS, TYPE_CUSTOMER, TYPE_CUSTOMER_TYPE, TYPE_DISTRIBUTION, TYPE_EMPLOYEE, TYPE_END_TRANSACTION, TYPE_ITEM_DETAILS, TYPE_MEMO_DETAILS, TYPE_OTHER_NAMES, TYPE_PAYMENT_METHOD, TYPE_SHIPPING_METHOD, TYPE_TERMS, TYPE_TIMER_ACTIVITY, TYPE_TIMER_DATA, TYPE_TO_DO, TYPE_TRANSACTION, TYPE_VENDER, TYPE_VENDER_TYPE
 
Fields inherited from interface planetj.iif.IIIF
ACCOUNT, AMOUNT, CLASS, DATE, MEMO, NAME, TRANSACTION_TYPE
 
Constructor Summary
IIFTransaction(String pTransactionType, String pAccount, double pAmount)
          Constructor for IIFTransaction Creation date: (2/13/2002 2:39:41 AM)
IIFTransaction(String pTransactionType, String pAccount, double pAmount, int pTransactionId)
          Constructor for IIFTransaction Creation date: (2/19/2002 1:01:22 PM)
 
Method Summary
 void addDistribution(IIFDistribution pDistribution)
          Adds a Distribution to the List of distributions for this Transaction Creation date: (2/13/2002 4:29:02 PM)
 String getAccount()
          Returns the account from which the amount of the transaction was taken from.
 String getAddress1()
          Address1 is usually street address Creation date: (2/13/2002 2:37:51 AM)
 String getAddress2()
          Address1 is usually apt# Creation date: (2/13/2002 2:37:51 AM)
 double getAmount()
          Returns the amount of the transaction
 String getCategory()
          Returns the category/class from which the amount of the transaction was taken from.
 String getCityStateZip()
          City, State Zip San Diego, CA 92029 Creation date: (2/13/2002 2:37:51 AM)
 Date getDate()
          Returns the date of the transaction.
 List getDistributions()
          List of distributions for this Transaction Creation date: (2/13/2002 4:29:02 PM)
 String getMemo()
          Returns the transaction's memo, or null if none was set.
 String getName()
          Returns who's involved in the transaction, such as the name of a store where expenses took place or customer, vendor, payee, or employee
static StringBuffer getTransactionHeader()
          Returns the Transaction Header info.
 int getTransactionId()
          Returns a unique id for this transaction.
 String getTransactionType()
          Must be a valid Transaction Type according to iff format Creation date: (2/13/2002 2:37:51 AM)
 boolean isToPrint()
          Is this check going to be printed Creation date: (2/13/2002 2:37:51 AM)
 void setAddress1(String newAddress1)
          Address1 is usually street address Creation date: (2/13/2002 2:37:51 AM)
 void setAddress2(String newAddress2)
          Address1 is usually apt# Creation date: (2/13/2002 2:37:51 AM)
 void setCategory(String pCategory)
          Sets the category/class from which the amount of the transaction was taken from.
 void setCityStateZip(String newCityStateZip)
          City, State Zip San Diego, CA 92029 Creation date: (2/13/2002 2:37:51 AM)
 void setDate(Date date)
          Sets the date of the transaction.
 void setDistributions(List newDistributions)
          List of distributions for this Transaction Creation date: (2/13/2002 4:29:02 PM)
 void setMemo(String memo)
          Give the transaction a memo.
 void setName(String pName)
          Sets who's involved in the transaction, such as the name of a store where expenses took place or the payee, vender, employee, or customer
 void setToPrint(boolean newToPrint)
          Is this check going to be printed Creation date: (2/13/2002 2:37:51 AM)
 String toString()
          Returns the complete IIF record corresponding to the Transaction.
 StringBuffer toStringBuffer()
          Returns the complete IIF record corresponding to the Transaction.
 
Methods inherited from class planetj.iif.IIFRecord
encodeDate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TO_PRINT

public static final String TO_PRINT
See Also:
Constant Field Values

ADDRESS1

public static final String ADDRESS1
See Also:
Constant Field Values

ADDRESS2

public static final String ADDRESS2
See Also:
Constant Field Values

CITY_STATE_ZIP

public static final String CITY_STATE_ZIP
See Also:
Constant Field Values

TRANSACTION_START

public static final String TRANSACTION_START
See Also:
Constant Field Values

TRANSACTION_END

public static final String TRANSACTION_END
See Also:
Constant Field Values

TRANSACTION_ID

public static final String TRANSACTION_ID
See Also:
Constant Field Values

TRANSACTION_TYPE_CHECK

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

IIFTransaction

public IIFTransaction(String pTransactionType,
                      String pAccount,
                      double pAmount)
Constructor for IIFTransaction Creation date: (2/13/2002 2:39:41 AM)


IIFTransaction

public IIFTransaction(String pTransactionType,
                      String pAccount,
                      double pAmount,
                      int pTransactionId)
Constructor for IIFTransaction Creation date: (2/19/2002 1:01:22 PM)

Method Detail

addDistribution

public void addDistribution(IIFDistribution pDistribution)
Adds a Distribution to the List of distributions for this Transaction Creation date: (2/13/2002 4:29:02 PM)


getAccount

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


getAddress1

public String getAddress1()
Address1 is usually street address Creation date: (2/13/2002 2:37:51 AM)

Returns:
java.lang.String

getAddress2

public String getAddress2()
Address1 is usually apt# Creation date: (2/13/2002 2:37:51 AM)

Returns:
java.lang.String

getAmount

public double getAmount()
Returns the amount of the transaction


getCategory

public String getCategory()
Returns the category/class from which the amount of the transaction was taken from.


getCityStateZip

public String getCityStateZip()
City, State Zip San Diego, CA 92029 Creation date: (2/13/2002 2:37:51 AM)

Returns:
java.lang.String

getDate

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


getDistributions

public List getDistributions()
List of distributions for this Transaction Creation date: (2/13/2002 4:29:02 PM)

Returns:
java.util.List

getMemo

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


getName

public String getName()
Returns who's involved in the transaction, such as the name of a store where expenses took place or customer, vendor, payee, or employee


getTransactionHeader

public static StringBuffer getTransactionHeader()
Returns the Transaction Header info. This will be the first line in the .iif file Creation date: (2/13/2002 5:49:00 PM)


getTransactionId

public int getTransactionId()
Returns a unique id for this transaction. Creation date: (2/19/2002 12:48:20 PM)

Returns:
int

getTransactionType

public String getTransactionType()
Must be a valid Transaction Type according to iff format Creation date: (2/13/2002 2:37:51 AM)

Returns:
java.lang.String

isToPrint

public boolean isToPrint()
Is this check going to be printed Creation date: (2/13/2002 2:37:51 AM)

Returns:
boolean

setAddress1

public void setAddress1(String newAddress1)
Address1 is usually street address Creation date: (2/13/2002 2:37:51 AM)

Parameters:
newAddress1 - java.lang.String

setAddress2

public void setAddress2(String newAddress2)
Address1 is usually apt# Creation date: (2/13/2002 2:37:51 AM)

Parameters:
newAddress2 - java.lang.String

setCategory

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


setCityStateZip

public void setCityStateZip(String newCityStateZip)
City, State Zip San Diego, CA 92029 Creation date: (2/13/2002 2:37:51 AM)

Parameters:
newCityStateZip - java.lang.String

setDate

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


setDistributions

public void setDistributions(List newDistributions)
List of distributions for this Transaction Creation date: (2/13/2002 4:29:02 PM)

Parameters:
newDistributions - java.util.List

setMemo

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


setName

public void setName(String pName)
Sets who's involved in the transaction, such as the name of a store where expenses took place or the payee, vender, employee, or customer


setToPrint

public void setToPrint(boolean newToPrint)
Is this check going to be printed Creation date: (2/13/2002 2:37:51 AM)

Parameters:
newToPrint - boolean

toString

public String toString()
Returns the complete IIF record corresponding to the Transaction. Values that were not explicitely set are not included in the result. Please use toStringBuffer() if possible Creation date: (2/13/2002 3:12:25 PM)

Overrides:
toString in class Object

toStringBuffer

public StringBuffer toStringBuffer()
Returns the complete IIF record corresponding to the Transaction. 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/13/2002 3:12:53 PM)

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