org.kuali.kfs.vnd.businessobject
Class VendorDefaultAddress

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.kfs.vnd.businessobject.VendorDefaultAddress
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, VendorRoutingComparable, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.Inactivateable, org.kuali.rice.kns.bo.PersistableBusinessObject

public class VendorDefaultAddress
extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase
implements VendorRoutingComparable, org.kuali.rice.kns.bo.Inactivateable

An association between a Campus and a VendorAddress to indicate that the Address is the default one for this Campus among the various Addresses available for this Vendor.

See Also:
Campus, VendorAddress, Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
VendorDefaultAddress()
          Default constructor.
 
Method Summary
 VendorAddress getVendorAddress()
           
 Integer getVendorAddressGeneratedIdentifier()
           
 CampusParameter getVendorCampus()
           
 String getVendorCampusCode()
           
 Integer getVendorDefaultAddressGeneratedIdentifier()
           
 boolean isActive()
           
 boolean isEqualForRouting(Object toCompare)
          A predicate to test equality of all the persisted attributes of an instance of this class, not including member collections.
 void setActive(boolean active)
           
 void setVendorAddress(VendorAddress vendorAddress)
          Deprecated.  
 void setVendorAddressGeneratedIdentifier(Integer vendorAddressGeneratedIdentifier)
           
 void setVendorCampus(CampusParameter vendorCampus)
          Deprecated.  
 void setVendorCampusCode(String vendorCampusCode)
           
 void setVendorDefaultAddressGeneratedIdentifier(Integer vendorDefaultAddressGeneratedIdentifier)
           
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

VendorDefaultAddress

public VendorDefaultAddress()
Default constructor.

Method Detail

getVendorCampusCode

public String getVendorCampusCode()

setVendorCampusCode

public void setVendorCampusCode(String vendorCampusCode)

getVendorAddressGeneratedIdentifier

public Integer getVendorAddressGeneratedIdentifier()

setVendorAddressGeneratedIdentifier

public void setVendorAddressGeneratedIdentifier(Integer vendorAddressGeneratedIdentifier)

isActive

public boolean isActive()
Specified by:
isActive in interface org.kuali.rice.kns.bo.Inactivateable

setActive

public void setActive(boolean active)
Specified by:
setActive in interface org.kuali.rice.kns.bo.Inactivateable

getVendorAddress

public VendorAddress getVendorAddress()

setVendorAddress

public void setVendorAddress(VendorAddress vendorAddress)
Deprecated. 

Sets the vendorAddress attribute.

Parameters:
vendorAddress - The vendorAddress to set.

getVendorCampus

public CampusParameter getVendorCampus()

setVendorCampus

public void setVendorCampus(CampusParameter vendorCampus)
Deprecated. 

Sets the vendorCampus attribute.

Parameters:
vendorCampus - The vendorCampus to set.

getVendorDefaultAddressGeneratedIdentifier

public Integer getVendorDefaultAddressGeneratedIdentifier()

setVendorDefaultAddressGeneratedIdentifier

public void setVendorDefaultAddressGeneratedIdentifier(Integer vendorDefaultAddressGeneratedIdentifier)

isEqualForRouting

public boolean isEqualForRouting(Object toCompare)
Description copied from interface: VendorRoutingComparable
A predicate to test equality of all the persisted attributes of an instance of this class, not including member collections. This is used to help determine whether to route.

Specified by:
isEqualForRouting in interface VendorRoutingComparable
Parameters:
toCompare - An Object, which should be of this class if the comparison is to be meaningful.
Returns:
True if all non-derived attributes of the given object other than collections are equal to this one's. False if the given object is null or of a different class.
See Also:
org.kuali.kfs.vnd.document.routing.VendorRoutingComparable#isEqualForRouting(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.