net.sf.oness.party.model.facade
Class PartySpringFacadeDelegate

java.lang.Object
  extended bynet.sf.oness.party.model.facade.PartySpringFacadeDelegate
All Implemented Interfaces:
PartyFacadeDelegate

public class PartySpringFacadeDelegate
extends java.lang.Object
implements PartyFacadeDelegate

Facade that uses the Spring framework

Version:
$Revision: 1.14 $
Author:
Carlos Sanchez

Constructor Summary
PartySpringFacadeDelegate()
           
 
Method Summary
 ContactInfo createContactInfo(ContactInfo contactInfo)
          Create a contact info
 Party createParty(Party party)
          Create a party, calls createParty(party, true)
 Party createParty(Party party, boolean ignoreExisting)
          Create a party If ignoreExisting is false and a similar Party already exists then a ExistingInstanceException will be thrown with the similar parties
 void deleteContactInfo(java.lang.Long id)
          Delete a contact info
 void deleteParty(java.lang.Long id)
          Delete a party
 net.sf.oness.common.model.util.PaginatedList findContactInfo(ContactInfo contactInfo, int firstElement, int maxElements)
          Retrieves a list of contact infos, filtering with properties on a contact info object
 ContactInfo findContactInfo(java.lang.Long id)
          View a contact info
 Party findParty(java.lang.Long id)
          Retrieve a party without related entities.
 net.sf.oness.common.model.util.PaginatedList findParty(Party party, int firstElement, int maxElements)
          Retrieves a list of parties, filtering with properties on a party object
 Party findPartyWithDetails(java.lang.Long id)
          Retrieve a party and all related entities by its identifier.
 net.sf.oness.common.model.dao.Dao getContactInfoDao()
           
 CountryDao getCountryDao()
           
 net.sf.oness.common.model.dao.Dao getPartyDao()
           
 void setContactInfoDao(net.sf.oness.common.model.dao.Dao contactInfoDao)
           
 void setCountryDao(CountryDao countryDao)
           
 void setPartyDao(net.sf.oness.common.model.dao.Dao partyDao)
           
 ContactInfo updateContactInfo(ContactInfo contactInfo)
          Update a contact info
 Party updateParty(Party party)
          Update a party
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartySpringFacadeDelegate

public PartySpringFacadeDelegate()
Method Detail

setPartyDao

public void setPartyDao(net.sf.oness.common.model.dao.Dao partyDao)
Parameters:
partyDao - The party DAO to set.

getPartyDao

public net.sf.oness.common.model.dao.Dao getPartyDao()
Returns:
Returns the party DAO.

setContactInfoDao

public void setContactInfoDao(net.sf.oness.common.model.dao.Dao contactInfoDao)
Parameters:
contactInfoDao - The contactInfo DAO to set.

getContactInfoDao

public net.sf.oness.common.model.dao.Dao getContactInfoDao()
Returns:
Returns the contactInfo DAO.

setCountryDao

public void setCountryDao(CountryDao countryDao)
Parameters:
countryDao - The country DAO to set.

getCountryDao

public CountryDao getCountryDao()
Returns:
Returns the contactInfo DAO.

createParty

public Party createParty(Party party)
                  throws net.sf.oness.common.model.exceptions.ExistingInstanceException
Description copied from interface: PartyFacadeDelegate
Create a party, calls createParty(party, true)

Specified by:
createParty in interface PartyFacadeDelegate
Parameters:
party -
Returns:
The party created
Throws:
net.sf.oness.common.model.exceptions.ExistingInstanceException
See Also:
PartyFacadeDelegate.createParty(net.sf.oness.party.model.party.bo.Party)

createParty

public Party createParty(Party party,
                         boolean ignoreExisting)
                  throws net.sf.oness.common.model.exceptions.ExistingInstanceException
Description copied from interface: PartyFacadeDelegate
Create a party If ignoreExisting is false and a similar Party already exists then a ExistingInstanceException will be thrown with the similar parties

Specified by:
createParty in interface PartyFacadeDelegate
Parameters:
party -
ignoreExisting -
Returns:
The party created
Throws:
net.sf.oness.common.model.exceptions.ExistingInstanceException
See Also:
PartyFacadeDelegate.createParty(net.sf.oness.party.model.party.bo.Party, boolean)

updateParty

public Party updateParty(Party party)
Description copied from interface: PartyFacadeDelegate
Update a party

Specified by:
updateParty in interface PartyFacadeDelegate
Parameters:
party -
Returns:
The party updated
See Also:
PartyFacadeDelegate.updateParty(net.sf.oness.party.model.party.bo.Party)

findParty

public net.sf.oness.common.model.util.PaginatedList findParty(Party party,
                                                              int firstElement,
                                                              int maxElements)
Description copied from interface: PartyFacadeDelegate
Retrieves a list of parties, filtering with properties on a party object

Specified by:
findParty in interface PartyFacadeDelegate
Parameters:
party - properties to filter on
firstElement -
maxElements -
Returns:
List of Party objects
See Also:
PartyFacadeDelegate.findParty(Party, int, int)

findParty

public Party findParty(java.lang.Long id)
Description copied from interface: PartyFacadeDelegate
Retrieve a party without related entities.

Specified by:
findParty in interface PartyFacadeDelegate
Parameters:
id - Party identifier
Returns:
The party
See Also:
PartyFacadeDelegate.findParty(java.lang.Long)

findPartyWithDetails

public Party findPartyWithDetails(java.lang.Long id)
Description copied from interface: PartyFacadeDelegate
Retrieve a party and all related entities by its identifier.

Specified by:
findPartyWithDetails in interface PartyFacadeDelegate
Parameters:
id - Party identifier
Returns:
The party
See Also:
PartyFacadeDelegate.findPartyWithDetails(java.lang.Long)

deleteParty

public void deleteParty(java.lang.Long id)
Description copied from interface: PartyFacadeDelegate
Delete a party

Specified by:
deleteParty in interface PartyFacadeDelegate
Parameters:
id - Party identifier
See Also:
PartyFacadeDelegate.deleteParty(java.lang.Long)

createContactInfo

public ContactInfo createContactInfo(ContactInfo contactInfo)
Description copied from interface: PartyFacadeDelegate
Create a contact info

Specified by:
createContactInfo in interface PartyFacadeDelegate
Parameters:
contactInfo -
Returns:
the contact info created
See Also:
PartyFacadeDelegate.createContactInfo(net.sf.oness.party.model.contact.bo.ContactInfo)

updateContactInfo

public ContactInfo updateContactInfo(ContactInfo contactInfo)
Description copied from interface: PartyFacadeDelegate
Update a contact info

Specified by:
updateContactInfo in interface PartyFacadeDelegate
Parameters:
contactInfo -
Returns:
The contact info updated
See Also:
PartyFacadeDelegate.updateContactInfo(net.sf.oness.party.model.contact.bo.ContactInfo)

findContactInfo

public net.sf.oness.common.model.util.PaginatedList findContactInfo(ContactInfo contactInfo,
                                                                    int firstElement,
                                                                    int maxElements)
Description copied from interface: PartyFacadeDelegate
Retrieves a list of contact infos, filtering with properties on a contact info object

Specified by:
findContactInfo in interface PartyFacadeDelegate
Parameters:
contactInfo - properties to filter on
firstElement -
maxElements -
Returns:
List of ContactInfo objects
See Also:
PartyFacadeDelegate.findContactInfo(net.sf.oness.party.model.contact.bo.ContactInfo, int, int)

findContactInfo

public ContactInfo findContactInfo(java.lang.Long id)
Description copied from interface: PartyFacadeDelegate
View a contact info

Specified by:
findContactInfo in interface PartyFacadeDelegate
Parameters:
id - Contact info identifier
Returns:
The contact info
See Also:
PartyFacadeDelegate.findContactInfo(java.lang.Long)

deleteContactInfo

public void deleteContactInfo(java.lang.Long id)
Description copied from interface: PartyFacadeDelegate
Delete a contact info

Specified by:
deleteContactInfo in interface PartyFacadeDelegate
Parameters:
id - Contact info identifier
See Also:
PartyFacadeDelegate.deleteContactInfo(java.lang.Long)


Copyright © 2003-2005 ONess Project. All Rights Reserved.