planetj.iif
Class IIFRecord

java.lang.Object
  |
  +--planetj.iif.IIFRecord
All Implemented Interfaces:
IIIF
Direct Known Subclasses:
IIFDistribution, IIFTransaction

public abstract class IIFRecord
extends Object
implements IIIF

A QuickBooks interchange format record, which starts with a !TRNS: or !ACCNT header, and ends with ENDTRANS.

A record could look like this:

 !TRNS	TRNSID	TRNSTYPE	DATE		ACCNT							NAME					AMOUNT	
 !SPL		SPLID	TRNSTYPE	DATE		ACCNT							NAME					AMOUNT	
 !ENDTRNS											
 TRNS	 			CHECK		7/22/1998	Checking						Tom Ferguson			-36.15	
 SPL	 			CHECK		7/22/1998	Professional Fees:Legal Fees	Favor, Lynn:Sun Room	36.15	
 ENDTRN	
 


Field Summary
static String TYPE_ACCOUNT
          Account
static String TYPE_BUD
          Budget Details
static String TYPE_CLASS
          Classification List
static String TYPE_CUSTOMER
          Customer List
static String TYPE_CUSTOMER_TYPE
          Customer Classifications/Types List
static String TYPE_DISTRIBUTION
          Distribution
static String TYPE_EMPLOYEE
          Employee List
static String TYPE_END_TRANSACTION
          End Transaction
static String TYPE_ITEM_DETAILS
          Details on line items
static String TYPE_MEMO_DETAILS
          Details on messages/memos
static String TYPE_OTHER_NAMES
          Other Names List
static String TYPE_PAYMENT_METHOD
          Payment method list
static String TYPE_SHIPPING_METHOD
          Shipping method list
static String TYPE_TERMS
          Payment Terms
static String TYPE_TIMER_ACTIVITY
          Timer Activity Details
static String TYPE_TIMER_DATA
          Timer Data
static String TYPE_TO_DO
          To Do List
static String TYPE_TRANSACTION
          Transactions
static String TYPE_VENDER
          Vender List
static String TYPE_VENDER_TYPE
          Vender Classifications/Types List
 
Fields inherited from interface planetj.iif.IIIF
ACCOUNT, AMOUNT, CLASS, DATE, MEMO, NAME, TRANSACTION_TYPE
 
Constructor Summary
IIFRecord()
           
 
Method Summary
static StringBuffer encodeDate(Date pDate)
          Returns a StringBuffer with the encoded Date in valid IIF format which is MM/DD/YY Creation date: (2/13/2002 4:07:15 PM)
abstract  StringBuffer toStringBuffer()
          This method saves a String Object creation over toString().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_ACCOUNT

public static final String TYPE_ACCOUNT
Account

See Also:
Constant Field Values

TYPE_CUSTOMER

public static final String TYPE_CUSTOMER
Customer List

See Also:
Constant Field Values

TYPE_VENDER

public static final String TYPE_VENDER
Vender List

See Also:
Constant Field Values

TYPE_EMPLOYEE

public static final String TYPE_EMPLOYEE
Employee List

See Also:
Constant Field Values

TYPE_OTHER_NAMES

public static final String TYPE_OTHER_NAMES
Other Names List

See Also:
Constant Field Values

TYPE_BUD

public static final String TYPE_BUD
Budget Details

See Also:
Constant Field Values

TYPE_CLASS

public static final String TYPE_CLASS
Classification List

See Also:
Constant Field Values

TYPE_CUSTOMER_TYPE

public static final String TYPE_CUSTOMER_TYPE
Customer Classifications/Types List

See Also:
Constant Field Values

TYPE_ITEM_DETAILS

public static final String TYPE_ITEM_DETAILS
Details on line items

See Also:
Constant Field Values

TYPE_MEMO_DETAILS

public static final String TYPE_MEMO_DETAILS
Details on messages/memos

See Also:
Constant Field Values

TYPE_PAYMENT_METHOD

public static final String TYPE_PAYMENT_METHOD
Payment method list

See Also:
Constant Field Values

TYPE_SHIPPING_METHOD

public static final String TYPE_SHIPPING_METHOD
Shipping method list

See Also:
Constant Field Values

TYPE_TERMS

public static final String TYPE_TERMS
Payment Terms

See Also:
Constant Field Values

TYPE_TIMER_ACTIVITY

public static final String TYPE_TIMER_ACTIVITY
Timer Activity Details

See Also:
Constant Field Values

TYPE_TIMER_DATA

public static final String TYPE_TIMER_DATA
Timer Data

See Also:
Constant Field Values

TYPE_TO_DO

public static final String TYPE_TO_DO
To Do List

See Also:
Constant Field Values

TYPE_TRANSACTION

public static final String TYPE_TRANSACTION
Transactions

See Also:
Constant Field Values

TYPE_END_TRANSACTION

public static final String TYPE_END_TRANSACTION
End Transaction

See Also:
Constant Field Values

TYPE_VENDER_TYPE

public static final String TYPE_VENDER_TYPE
Vender Classifications/Types List

See Also:
Constant Field Values

TYPE_DISTRIBUTION

public static final String TYPE_DISTRIBUTION
Distribution

See Also:
Constant Field Values
Constructor Detail

IIFRecord

public IIFRecord()
Method Detail

encodeDate

public static StringBuffer encodeDate(Date pDate)
Returns a StringBuffer with the encoded Date in valid IIF format which is MM/DD/YY Creation date: (2/13/2002 4:07:15 PM)


toStringBuffer

public abstract StringBuffer toStringBuffer()
This method saves a String Object creation over toString(). Please use this method if possible Returns a StringBuffer in IIF format Creation date: (2/11/2002 6:10:09 PM)

Returns:
java.lang.StringBuffer