org.geebis.books.model.partner
Class Partner

java.lang.Object
  extended by org.geebis.books.model.partner.Partner
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Customer, Employee, Vendor

@Name(value="partner")
public abstract class Partner
extends java.lang.Object
implements java.io.Serializable

Partner is an abstract class representing all business partners This includes:

See Also:
Serialized Form

Constructor Summary
protected Partner()
           
protected Partner(java.lang.String name)
           
 
Method Summary
 Account getAccountsPayableAccount()
          Gets the partner's AP liability account
 Account getAccountsReceivableAccount()
          Gets the partner's AR liability account
 java.lang.String getCompanyName()
          Gets the company name of this partner
 java.lang.String getContact()
          Gets this partner's contact
 ContactInformation getContactInformation()
          Gets this partner's contact information
 Terms getDefaultTerms()
          Gets the default terms to use for this partner
 java.lang.String getFirstName()
          Gets this partner's first name
 java.lang.String getGenderTitle()
          Gets this partner's gender title (Mr, Mrs...)
 java.lang.Long getId()
           
 java.util.List<Label> getLabels()
          Gets the labels that are attached to this partner
 java.lang.String getLastName()
          Gets this partner's last name
 java.lang.String getMiddleInitial()
          Gets this partner's middle initial
 java.lang.String getName()
          This is the name of the business partner.
 java.lang.Integer getVersion()
           
 void setAccountsPayableAccount(AccountsPayableAccount accountsPayableAccount)
          Sets the partner's AP liability account
 void setAccountsReceivableAccount(AccountsReceivableAccount accountsReceivableAccount)
          Sets the partner's AR liability account
 void setCompanyName(java.lang.String companyName)
          Sets the company name of this partner
 void setContact(java.lang.String contact)
          Sets this partner's contact
 void setContactInformation(ContactInformation contactInformation)
          Sets this partner's contact information
 void setDefaultTerms(Terms defaultTerms)
          Sets the default terms to use with this partner
 void setFirstName(java.lang.String firstName)
          Sets this partner's first name
 void setGenderTitle(java.lang.String genderTitle)
          Sets this partner's gender title
 void setId(java.lang.Long id)
           
 void setLabels(java.util.List<Label> labels)
          Sets the labels for this partner
 void setLastName(java.lang.String lastName)
          Sets this partner's last name
 void setMiddleInitial(java.lang.String middleInitial)
          Sets this partner's middle initial
 void setName(java.lang.String name)
          Sets the name of the business partner.
 void setVersion(java.lang.Integer version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Partner

protected Partner()

Partner

protected Partner(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
This is the name of the business partner. This value is used to display and look up the Partner from everywhere in the system.

Returns:
the name of the Partner

setName

public void setName(java.lang.String name)
Sets the name of the business partner. This value cannot be null.

Parameters:
name - The name to use for this business partner.

getCompanyName

public java.lang.String getCompanyName()
Gets the company name of this partner

Returns:
the company name of this partner

setCompanyName

public void setCompanyName(java.lang.String companyName)
Sets the company name of this partner

Parameters:
companyName - the new company name for thsi partner

getGenderTitle

public java.lang.String getGenderTitle()
Gets this partner's gender title (Mr, Mrs...)

Returns:
this partner's gender title

setGenderTitle

public void setGenderTitle(java.lang.String genderTitle)
Sets this partner's gender title

Parameters:
genderTitle - the new gender title for this partner
See Also:
getGenderTitle()

getFirstName

public java.lang.String getFirstName()
Gets this partner's first name

Returns:
this partner's first name

setFirstName

public void setFirstName(java.lang.String firstName)
Sets this partner's first name

Parameters:
firstName - the new first name for this partner

getMiddleInitial

public java.lang.String getMiddleInitial()
Gets this partner's middle initial

Returns:
this partner's middle initial

setMiddleInitial

public void setMiddleInitial(java.lang.String middleInitial)
Sets this partner's middle initial

Parameters:
middleInitial - the new middle initial for this partner

getLastName

public java.lang.String getLastName()
Gets this partner's last name

Returns:
the partner's last name

setLastName

public void setLastName(java.lang.String lastName)
Sets this partner's last name

Parameters:
lastName - the new last name for this partner

getContact

public java.lang.String getContact()
Gets this partner's contact

Returns:
this partner's contact

setContact

public void setContact(java.lang.String contact)
Sets this partner's contact

Parameters:
contact - the new contact for this partner

getContactInformation

public ContactInformation getContactInformation()
Gets this partner's contact information

Returns:
this partner's contact information

setContactInformation

public void setContactInformation(ContactInformation contactInformation)
Sets this partner's contact information

Parameters:
contactInformation - the new contact information for this partner

getAccountsReceivableAccount

public Account getAccountsReceivableAccount()
Gets the partner's AR liability account

Returns:
the new AR liability account for this partner

setAccountsReceivableAccount

public void setAccountsReceivableAccount(AccountsReceivableAccount accountsReceivableAccount)
Sets the partner's AR liability account

Parameters:
accountsReceivableAccount - the new AR liability account to use for this partner

getAccountsPayableAccount

public Account getAccountsPayableAccount()
Gets the partner's AP liability account

Returns:
the partner's AP liability account

setAccountsPayableAccount

public void setAccountsPayableAccount(AccountsPayableAccount accountsPayableAccount)
Sets the partner's AP liability account

Parameters:
accountsPayableAccount - the new AP liability account for this partners

getLabels

public java.util.List<Label> getLabels()
Gets the labels that are attached to this partner

Returns:
the labels that are attached to this partner

setLabels

public void setLabels(java.util.List<Label> labels)
Sets the labels for this partner

Parameters:
labels - the labels that are attached to this partner

getDefaultTerms

public Terms getDefaultTerms()
Gets the default terms to use for this partner

Returns:
the default terms to use with this partner

setDefaultTerms

public void setDefaultTerms(Terms defaultTerms)
Sets the default terms to use with this partner

Parameters:
defaultTerms - the new default terms to use with this partner

getVersion

public java.lang.Integer getVersion()

setVersion

public void setVersion(java.lang.Integer version)

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)