|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.moneydance.apps.md.model.AbstractTxn
com.moneydance.apps.md.model.ParentTxn
public final class ParentTxn
Concrete class that represents the "source" side of a transaction. Valid transactions of this type are associated with one or more destination (or split) transactions. The value of transactions of this type are the sum of the values of all of the associated splits.
Field Summary |
---|
Constructor Summary | |
---|---|
ParentTxn(int date,
int taxDate,
long dateEntered,
java.lang.String checkNumber,
Account account,
java.lang.String description,
java.lang.String memo,
long id,
byte status)
Constructor as of build 350. |
|
ParentTxn(long date,
long taxDate,
long dateEntered,
java.lang.String checkNumber,
Account account,
java.lang.String description,
java.lang.String memo,
long id,
byte status)
Deprecated. Please use the constructor with int date parameters. |
Method Summary | |
---|---|
void |
addSplit(SplitTxn newSplit)
Add a "split" to this transaction. |
void |
clearTags()
Remove all the tags associated with this transaction, and any of its splits. |
ParentTxn |
createNew()
Create a new transaction with all of the same fields as this transaction. |
ParentTxn |
duplicate()
Clone this transaction and all of its splits. |
AddressBook.AddressEntry |
getAddress()
Returns the address book entry (if any) that is associated with this transaction. |
java.lang.String |
getCheckNumber()
Get the check number associated with this transaction. |
long |
getDate()
Deprecated. use getDateInt() instead |
long |
getDateEntered()
Get the date that this transaction was entered. |
int |
getDateInt()
Return the date encoded as an integer with decimal form YYYYMMDD |
java.lang.String |
getMemo()
Get the memo associated with this transaction. |
AbstractTxn |
getOtherTxn(int i)
Return the "other transaction" at the specified index. |
int |
getOtherTxnCount()
Return the number of "other transactions". |
ParentTxn |
getParentTxn()
Get the ParentTxn of this transfer. |
SplitTxn |
getSplit(int i)
Return the split for this transaction at the given index. |
SplitTxn |
getSplitByID(long id)
Get the SplitTxn with the given ID or return null if none of the SplitTxns have the given ID. |
int |
getSplitCount()
Return the number of splits for this transaction. |
long |
getTaxDate()
Deprecated. use getTaxDateInt() instead |
int |
getTaxDateInt()
Return the tax date encoded as an integer with decimal form YYYYMMDD |
java.lang.String |
getTransferType()
Get the type of transfer. |
long |
getValue()
Get the value of this transaction in the currency assigned to the account that is associated with this transaction. |
int |
indexOfSplit(SplitTxn sTxn)
Get the index of the specified split, or -1 if the split is not associated with this transaction. |
boolean |
isTransferTo(Account acct)
Check whether or not this transaction includes a transfer to the given account. |
boolean |
removeSplit(int sTxnIdx)
Remove the split at the specified index. |
boolean |
removeSplit(SplitTxn sTxn)
Remove the specified split. |
void |
setAddress(AddressBook.AddressEntry newAddress)
This method is only to receive addresses already added to the address book. |
void |
setCheckNumber(java.lang.String newCheckNumber)
Set the check number associated with this transaction. |
void |
setDate(long newDate)
Deprecated. use setDateInt(int) instead |
void |
setDateEntered(long newDateEntered)
Set the date that this transaction was entered. |
void |
setDateInt(int newDate)
Set the date (encoded as an int with decimal form YYYYMMDD) associated with this transaction. |
void |
setMemo(java.lang.String newMemo)
Set the memo associated with this transaction. |
void |
setTaxDate(long newDate)
Deprecated. use setTaxDateInt(int) instead |
void |
setTaxDateInt(int newDate)
Set the tax date (encoded as an int with decimal form YYYYMMDD) associated with this transaction. |
void |
setTransferType(java.lang.String type)
Set the type of transfer. |
void |
takeValuesFrom(ParentTxn otherTxn)
Copy all of the values from the given transaction into this transaction |
java.lang.String |
toMultilineString()
|
java.lang.String |
toString()
|
Methods inherited from class com.moneydance.apps.md.model.AbstractTxn |
---|
getAccount, getCheckNumAsInt, getDescription, getFIID, getFiTxnId, getStatus, getStatusChar, getTag, getTag, getTags, getTxnId, isDirty, isNew, needsToBePrinted, removeTag, resetDirty, setAccount, setDescription, setDirty, setFIID, setFiTxnId, setIsNew, setStatus, setTag, setTags, wasDownloaded |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParentTxn(long date, long taxDate, long dateEntered, java.lang.String checkNumber, Account account, java.lang.String description, java.lang.String memo, long id, byte status)
public ParentTxn(int date, int taxDate, long dateEntered, java.lang.String checkNumber, Account account, java.lang.String description, java.lang.String memo, long id, byte status)
Method Detail |
---|
public final long getDate()
getDate
in class AbstractTxn
public final int getDateInt()
getDateInt
in interface Txn
getDateInt
in class AbstractTxn
public final void setDate(long newDate)
public final void setDateInt(int newDate)
public final long getTaxDate()
getTaxDate
in class AbstractTxn
public final int getTaxDateInt()
getTaxDateInt
in interface Txn
getTaxDateInt
in class AbstractTxn
public final void setTaxDate(long newDate)
public final void setTaxDateInt(int newDate)
public final void clearTags()
public AddressBook.AddressEntry getAddress()
public void setAddress(AddressBook.AddressEntry newAddress)
public final long getDateEntered()
getDateEntered
in interface Txn
getDateEntered
in class AbstractTxn
public final void setDateEntered(long newDateEntered)
public final int getOtherTxnCount()
getOtherTxnCount
in interface Txn
getOtherTxnCount
in class AbstractTxn
public final ParentTxn getParentTxn()
getParentTxn
in interface Txn
getParentTxn
in class AbstractTxn
public final AbstractTxn getOtherTxn(int i)
getOtherTxn
in interface Txn
getOtherTxn
in class AbstractTxn
public final boolean isTransferTo(Account acct)
isTransferTo
in interface Txn
isTransferTo
in class AbstractTxn
public final long getValue()
getValue
in interface Txn
getValue
in class AbstractTxn
public final java.lang.String getCheckNumber()
getCheckNumber
in interface Txn
getCheckNumber
in class AbstractTxn
public final void setCheckNumber(java.lang.String newCheckNumber)
public final java.lang.String getMemo()
public final void setMemo(java.lang.String newMemo)
public final java.lang.String getTransferType()
getTransferType
in interface Txn
getTransferType
in class AbstractTxn
public final void setTransferType(java.lang.String type)
public final void addSplit(SplitTxn newSplit)
public final SplitTxn getSplit(int i)
public final int getSplitCount()
public final boolean removeSplit(int sTxnIdx)
public final boolean removeSplit(SplitTxn sTxn)
public final int indexOfSplit(SplitTxn sTxn)
public final SplitTxn getSplitByID(long id)
public final ParentTxn duplicate()
public final void takeValuesFrom(ParentTxn otherTxn)
public final ParentTxn createNew()
public java.lang.String toMultilineString()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |