org.kuali.kfs.gl.businessobject
Class CorrectionChangeGroup

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.kfs.gl.businessobject.CorrectionChangeGroup
All Implemented Interfaces:
Serializable, Comparable, org.apache.ojb.broker.PersistenceBrokerAware, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.PersistableBusinessObject

public class CorrectionChangeGroup
extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase
implements Comparable

This class represents a GLCP correction change group

See Also:
Serialized Form

Nested Class Summary
static class CorrectionChangeGroup.CorrectionGroupLineNumberComparator
          A comparator that compares to GLCP correction change groups based on their group line numbers within the GLCP document
 
Field Summary
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
CorrectionChangeGroup()
           
CorrectionChangeGroup(String documentNumber, Integer correctionChangeGroupLineNumber)
           
 
Method Summary
 void addCorrectionChange(CorrectionChange cc)
          Add correction change to this correction change group
 void addCorrectionCriteria(CorrectionCriteria cc)
          Add correction criteria to this correction change group
 int compareTo(Object o)
          Compares this correction change group to another correction change group object by comparing document number and correction group line number
 List<CorrectionChange> getCorrectionChange()
           
 Integer getCorrectionChangeGroupLineNumber()
           
 CorrectionChange getCorrectionChangeItem(int changeNumber)
          Get correction change item
 Integer getCorrectionChangeNextLineNumber()
           
 List<CorrectionCriteria> getCorrectionCriteria()
           
 CorrectionCriteria getCorrectionCriteriaItem(int criteriaNumber)
          Get correction criteria item
 Integer getCorrectionCriteriaNextLineNumber()
           
 String getDocumentNumber()
           
 void removeCorrectionChangeItem(int changeNumber)
          Remove correction change item
 void removeCorrectionCriteriaItem(int criteriaNumber)
          Remove correction criteria item
 void setCorrectionChange(List<CorrectionChange> correctionChange)
           
 void setCorrectionChangeGroupLineNumber(Integer correctionChangeGroupLineNumber)
           
 void setCorrectionChangeNextLineNumber(Integer correctionChangeNextLineNumber)
           
 void setCorrectionCriteria(List<CorrectionCriteria> correctionCriteria)
           
 void setCorrectionCriteriaNextLineNumber(Integer correctionCriteriaNextLineNumber)
           
 void setDocumentNumber(String documentNumber)
          Set document number for this correction change group.
protected  LinkedHashMap toStringMapper()
           
 
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, refreshNonUpdateableReferences, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow
 

Constructor Detail

CorrectionChangeGroup

public CorrectionChangeGroup(String documentNumber,
                             Integer correctionChangeGroupLineNumber)

CorrectionChangeGroup

public CorrectionChangeGroup()
Method Detail

addCorrectionChange

public void addCorrectionChange(CorrectionChange cc)
Add correction change to this correction change group

Parameters:
cc - correction change to add

addCorrectionCriteria

public void addCorrectionCriteria(CorrectionCriteria cc)
Add correction criteria to this correction change group

Parameters:
cc - correction criteria to add to this correction change group

removeCorrectionChangeItem

public void removeCorrectionChangeItem(int changeNumber)
Remove correction change item

Parameters:
changeNumber - correction change line number used to determine which correction change item to remove

removeCorrectionCriteriaItem

public void removeCorrectionCriteriaItem(int criteriaNumber)
Remove correction criteria item

Parameters:
criteriaNumber - correction criteria line number used to determine which correction change to remove

getCorrectionChangeItem

public CorrectionChange getCorrectionChangeItem(int changeNumber)
Get correction change item

Parameters:
changeNumber - correction change line number of object to return
Returns:
CorrectionChange correction change object with specified line number to return

getCorrectionCriteriaItem

public CorrectionCriteria getCorrectionCriteriaItem(int criteriaNumber)
Get correction criteria item

Parameters:
criteriaNumber - correction change line number of object to return
Returns:
CorrectionChange correction change object with specified line number to return

getDocumentNumber

public String getDocumentNumber()

setDocumentNumber

public void setDocumentNumber(String documentNumber)
Set document number for this correction change group. This also sets the document number for this correction change group's correction criteria and correction change

Parameters:
documentNumber - new document number

getCorrectionChangeGroupLineNumber

public Integer getCorrectionChangeGroupLineNumber()

setCorrectionChangeGroupLineNumber

public void setCorrectionChangeGroupLineNumber(Integer correctionChangeGroupLineNumber)

getCorrectionCriteriaNextLineNumber

public Integer getCorrectionCriteriaNextLineNumber()

setCorrectionCriteriaNextLineNumber

public void setCorrectionCriteriaNextLineNumber(Integer correctionCriteriaNextLineNumber)

getCorrectionChangeNextLineNumber

public Integer getCorrectionChangeNextLineNumber()

setCorrectionChangeNextLineNumber

public void setCorrectionChangeNextLineNumber(Integer correctionChangeNextLineNumber)

getCorrectionCriteria

public List<CorrectionCriteria> getCorrectionCriteria()

setCorrectionCriteria

public void setCorrectionCriteria(List<CorrectionCriteria> correctionCriteria)

getCorrectionChange

public List<CorrectionChange> getCorrectionChange()

setCorrectionChange

public void setCorrectionChange(List<CorrectionChange> correctionChange)

compareTo

public int compareTo(Object o)
Compares this correction change group to another correction change group object by comparing document number and correction group line number

Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)

toStringMapper

protected LinkedHashMap toStringMapper()
Specified by:
toStringMapper in class org.kuali.rice.kns.bo.BusinessObjectBase
See Also:
BusinessObjectBase.toStringMapper()


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