org.kuali.kfs.module.purap.businessobject
Class PurApAccountingLineBase

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.kfs.sys.businessobject.AccountingLineBase
              extended by org.kuali.kfs.sys.businessobject.SourceAccountingLine
                  extended by org.kuali.kfs.module.purap.businessobject.PurApAccountingLineBase
All Implemented Interfaces:
Serializable, Comparable, org.apache.ojb.broker.PersistenceBrokerAware, PurApAccountingLine, AccountingLine, GeneralLedgerPendingEntrySourceDetail, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.PersistableBusinessObject
Direct Known Subclasses:
CreditMemoAccount, PaymentRequestAccount, PurchaseOrderAccount, RequisitionAccount

public abstract class PurApAccountingLineBase
extends SourceAccountingLine
implements PurApAccountingLine, Comparable

Purap Accounting Line Base Business Object.

See Also:
Serialized Form

Field Summary
protected  Integer accountIdentifier
           
 
Fields inherited from class org.kuali.kfs.sys.businessobject.AccountingLineBase
financialDocumentLineDescription, financialDocumentLineTypeCode, salesTaxRequired
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
PurApAccountingLineBase()
           
 
Method Summary
 boolean accountStringsAreEqual(PurApAccountingLine accountingLine)
          Compares the current accounting line values with a purap accounting line to see if both accounting lines are equal.
 boolean accountStringsAreEqual(SourceAccountingLine accountingLine)
          Compares the current accounting line values with a source accounting line to see if both accounting lines are equal.
 int compareTo(Object arg0)
           
protected  void copyFrom(PurApAccountingLine other)
           
 PurApAccountingLine createBlankAmountsCopy()
          Creates a copy of the current purap accounting line and sets the percentage and the amount to zero.
 SourceAccountingLine generateSourceAccountingLine()
          Creates a source accounting line from the current purap accounting line.
 Integer getAccountIdentifier()
           
 BigDecimal getAccountLinePercent()
           
 org.kuali.rice.kns.util.KualiDecimal getAlternateAmountForGLEntryCreation()
           
 Integer getItemIdentifier()
           
 String getPostingPeriodCode()
           
<T extends PurApItem>
T
getPurapItem()
           
 Integer getSequenceNumber()
           
 String getString()
           
 Map getValuesMap()
          Overridden to use purap doc identifier, rather than document number
 boolean isEmpty()
          Determines if the current purap accounting line is in an empty state.
 void refreshNonUpdateableReferences()
           
 void setAccountIdentifier(Integer requisitionAccountIdentifier)
           
 void setAccountLinePercent(BigDecimal accountLinePercent)
           
 void setAlternateAmountForGLEntryCreation(org.kuali.rice.kns.util.KualiDecimal alternateAmount)
           
 void setItemIdentifier(Integer requisitionItemIdentifier)
           
 void setPostingPeriodCode(String postingPeriodCode)
           
 void setPurapItem(PurApItem item)
          Deprecated.  
protected  LinkedHashMap toStringMapper()
           
 
Methods inherited from class org.kuali.kfs.sys.businessobject.AccountingLineBase
copyFrom, equals, getAccount, getAccountExpiredOverride, getAccountExpiredOverrideNeeded, getAccountKey, getAccountNumber, getAmount, getBalanceTyp, getBalanceTypeCode, getChart, getChartOfAccountsCode, getDebitCreditCode, getDocumentNumber, getEncumbranceUpdateCode, getFinancialDocumentLineDescription, getFinancialDocumentLineTypeCode, getFinancialObjectCode, getFinancialSubObjectCode, getNonFringeAccountOverride, getNonFringeAccountOverrideNeeded, getObjectCode, getObjectType, getObjectTypeCode, getOrganizationReferenceId, getOverrideCode, getPostingYear, getProject, getProjectCode, getReferenceFinancialSystemDocumentTypeCode, getReferenceNumber, getReferenceOrigin, getReferenceOriginCode, getReferenceTypeCode, getSalesTax, getSubAccount, getSubAccountNumber, getSubObjectCode, hashCode, isLike, isObjectBudgetOverride, isObjectBudgetOverrideNeeded, isSalesTaxRequired, isSourceAccountingLine, isTargetAccountingLine, setAccount, setAccountExpiredOverride, setAccountExpiredOverrideNeeded, setAccountNumber, setAmount, setBalanceTyp, setBalanceTypeCode, setChart, setChartOfAccountsCode, setDebitCreditCode, setDocumentNumber, setEncumbranceUpdateCode, setFinancialDocumentLineDescription, setFinancialDocumentLineTypeCode, setFinancialObjectCode, setFinancialSubObjectCode, setNonFringeAccountOverride, setNonFringeAccountOverrideNeeded, setObjectBudgetOverride, setObjectBudgetOverrideNeeded, setObjectCode, setOrganizationReferenceId, setOverrideCode, setPostingYear, setProject, setProjectCode, setReferenceNumber, setReferenceOrigin, setReferenceOriginCode, setReferenceTypeCode, setSalesTax, setSalesTaxRequired, setSequenceNumber, setSubAccount, setSubAccountNumber, setSubObjectCode
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, buildListOfDeletionAwareLists, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refresh, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.kfs.sys.businessobject.AccountingLine
copyFrom, getAccountExpiredOverride, getAccountExpiredOverrideNeeded, getAccountKey, getBalanceTyp, getChart, getDebitCreditCode, getEncumbranceUpdateCode, getFinancialDocumentLineTypeCode, getNonFringeAccountOverride, getNonFringeAccountOverrideNeeded, getObjectType, getObjectTypeCode, getOverrideCode, getProject, getReferenceFinancialSystemDocumentTypeCode, getReferenceOrigin, getSalesTax, getSubAccount, getSubObjectCode, isLike, isObjectBudgetOverride, isObjectBudgetOverrideNeeded, isSalesTaxRequired, isSourceAccountingLine, isTargetAccountingLine, setAccount, setAccountExpiredOverride, setAccountExpiredOverrideNeeded, setAccountNumber, setAmount, setBalanceTyp, setBalanceTypeCode, setChart, setChartOfAccountsCode, setDebitCreditCode, setDocumentNumber, setEncumbranceUpdateCode, setFinancialDocumentLineDescription, setFinancialDocumentLineTypeCode, setFinancialObjectCode, setFinancialSubObjectCode, setNonFringeAccountOverride, setNonFringeAccountOverrideNeeded, setObjectBudgetOverride, setObjectBudgetOverrideNeeded, setObjectCode, setOrganizationReferenceId, setOverrideCode, setPostingYear, setProject, setProjectCode, setReferenceNumber, setReferenceOrigin, setReferenceOriginCode, setReferenceTypeCode, setSalesTax, setSalesTaxRequired, setSequenceNumber, setSubAccount, setSubAccountNumber, setSubObjectCode
 
Methods inherited from interface org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail
getAccount, getAccountNumber, getAmount, getBalanceTypeCode, getChartOfAccountsCode, getDocumentNumber, getFinancialDocumentLineDescription, getFinancialObjectCode, getFinancialSubObjectCode, getObjectCode, getOrganizationReferenceId, getPostingYear, getProjectCode, getReferenceNumber, getReferenceOriginCode, getReferenceTypeCode, getSubAccountNumber
 
Methods inherited from interface org.kuali.rice.kns.bo.PersistableBusinessObject
addNote, buildListOfDeletionAwareLists, deleteNote, getBoNote, getBoNotes, getExtension, getObjectId, getVersionNumber, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refreshReferenceObject, setAutoIncrementSet, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow, refresh
 
Methods inherited from interface org.apache.ojb.broker.PersistenceBrokerAware
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate
 

Field Detail

accountIdentifier

protected Integer accountIdentifier
Constructor Detail

PurApAccountingLineBase

public PurApAccountingLineBase()
Method Detail

getAccountIdentifier

public Integer getAccountIdentifier()
Specified by:
getAccountIdentifier in interface PurApAccountingLine

setAccountIdentifier

public void setAccountIdentifier(Integer requisitionAccountIdentifier)
Specified by:
setAccountIdentifier in interface PurApAccountingLine

getItemIdentifier

public Integer getItemIdentifier()
Specified by:
getItemIdentifier in interface PurApAccountingLine

setItemIdentifier

public void setItemIdentifier(Integer requisitionItemIdentifier)
Specified by:
setItemIdentifier in interface PurApAccountingLine

getAccountLinePercent

public BigDecimal getAccountLinePercent()
Specified by:
getAccountLinePercent in interface PurApAccountingLine

setAccountLinePercent

public void setAccountLinePercent(BigDecimal accountLinePercent)
Specified by:
setAccountLinePercent in interface PurApAccountingLine

isEmpty

public boolean isEmpty()
Description copied from interface: PurApAccountingLine
Determines if the current purap accounting line is in an empty state.

Specified by:
isEmpty in interface PurApAccountingLine
Returns:
boolean - true if empty state
See Also:
PurApAccountingLine.isEmpty()

createBlankAmountsCopy

public PurApAccountingLine createBlankAmountsCopy()
Description copied from interface: PurApAccountingLine
Creates a copy of the current purap accounting line and sets the percentage and the amount to zero.

Specified by:
createBlankAmountsCopy in interface PurApAccountingLine
Returns:
- purap accounting line copy with blank percent and amount
See Also:
PurApAccountingLine.createBlankAmountsCopy()

accountStringsAreEqual

public boolean accountStringsAreEqual(SourceAccountingLine accountingLine)
Description copied from interface: PurApAccountingLine
Compares the current accounting line values with a source accounting line to see if both accounting lines are equal.

Specified by:
accountStringsAreEqual in interface PurApAccountingLine
Parameters:
accountingLine - - accounting line to compare
Returns:
boolean - true if passed in and current accounting line are equal, false otherwise
See Also:
PurApAccountingLine.accountStringsAreEqual(org.kuali.kfs.sys.businessobject.SourceAccountingLine)

accountStringsAreEqual

public boolean accountStringsAreEqual(PurApAccountingLine accountingLine)
Description copied from interface: PurApAccountingLine
Compares the current accounting line values with a purap accounting line to see if both accounting lines are equal.

Specified by:
accountStringsAreEqual in interface PurApAccountingLine
Parameters:
accountingLine - - accounting line to compare
Returns:
boolean - true if passed in and current accounting line are equal, false otherwise

generateSourceAccountingLine

public SourceAccountingLine generateSourceAccountingLine()
Description copied from interface: PurApAccountingLine
Creates a source accounting line from the current purap accounting line.

Specified by:
generateSourceAccountingLine in interface PurApAccountingLine
Returns:
- source accounting line based on current purap accounting line
See Also:
PurApAccountingLine.generateSourceAccountingLine()

toStringMapper

protected LinkedHashMap toStringMapper()
Overrides:
toStringMapper in class AccountingLineBase
See Also:
AccountingLineBase.toStringMapper()

compareTo

public int compareTo(Object arg0)
Specified by:
compareTo in interface Comparable

getString

public String getString()
Specified by:
getString in interface PurApAccountingLine

getAlternateAmountForGLEntryCreation

public org.kuali.rice.kns.util.KualiDecimal getAlternateAmountForGLEntryCreation()
Specified by:
getAlternateAmountForGLEntryCreation in interface PurApAccountingLine

setAlternateAmountForGLEntryCreation

public void setAlternateAmountForGLEntryCreation(org.kuali.rice.kns.util.KualiDecimal alternateAmount)
Specified by:
setAlternateAmountForGLEntryCreation in interface PurApAccountingLine

getSequenceNumber

public Integer getSequenceNumber()
Specified by:
getSequenceNumber in interface AccountingLine
Overrides:
getSequenceNumber in class AccountingLineBase
Returns:
Returns the sequenceNumber.
See Also:
AccountingLineBase.getSequenceNumber()

copyFrom

protected void copyFrom(PurApAccountingLine other)

refreshNonUpdateableReferences

public void refreshNonUpdateableReferences()
Specified by:
refreshNonUpdateableReferences in interface org.kuali.rice.kns.bo.PersistableBusinessObject
Overrides:
refreshNonUpdateableReferences in class org.kuali.rice.kns.bo.PersistableBusinessObjectBase

getPurapItem

public <T extends PurApItem> T getPurapItem()
Specified by:
getPurapItem in interface PurApAccountingLine

setPurapItem

public void setPurapItem(PurApItem item)
Deprecated. 

Sets the requisitionItem attribute.

Specified by:
setPurapItem in interface PurApAccountingLine
Parameters:
item -

getPostingPeriodCode

public String getPostingPeriodCode()
Specified by:
getPostingPeriodCode in interface PurApAccountingLine

setPostingPeriodCode

public void setPostingPeriodCode(String postingPeriodCode)
Specified by:
setPostingPeriodCode in interface PurApAccountingLine

getValuesMap

public Map getValuesMap()
Overridden to use purap doc identifier, rather than document number

Specified by:
getValuesMap in interface AccountingLine
Overrides:
getValuesMap in class AccountingLineBase
Returns:
Map
See Also:
AccountingLineBase.getValuesMap()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.