fr.ifremer.allegro.referential.buyer.generic.service
Class RemoteBuyerFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.referential.buyer.generic.service.RemoteBuyerFullServiceBase
All Implemented Interfaces:
RemoteBuyerFullService
Direct Known Subclasses:
RemoteBuyerFullServiceImpl

public abstract class RemoteBuyerFullServiceBase
extends java.lang.Object
implements RemoteBuyerFullService

Spring Service base class for fr.ifremer.allegro.referential.buyer.generic.service.RemoteBuyerFullService, provides access to all services and entities referenced by this service.

See Also:
RemoteBuyerFullService

Constructor Summary
RemoteBuyerFullServiceBase()
           
 
Method Summary
 RemoteBuyerFullVO addBuyer(RemoteBuyerFullVO buyer)
           
 ClusterBuyer addOrUpdateClusterBuyer(ClusterBuyer clusterBuyer)
           
 RemoteBuyerFullVO[] getAllBuyer()
           
 ClusterBuyer[] getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteBuyerFullVO getBuyerById(java.lang.Integer id)
           
 RemoteBuyerFullVO[] getBuyerByIds(java.lang.Integer[] id)
           
 RemoteBuyerFullVO getBuyerByNaturalId(RemoteBuyerNaturalId buyerNaturalId)
           
 RemoteBuyerFullVO[] getBuyerByStatusCode(java.lang.String code)
           
protected  BuyerDao getBuyerDao()
          Gets the reference to buyer's DAO.
 RemoteBuyerNaturalId getBuyerNaturalIdById(java.lang.Integer id)
           
 RemoteBuyerNaturalId[] getBuyerNaturalIds()
           
 ClusterBuyer getClusterBuyerByIdentifiers(java.lang.Integer id)
           
protected  java.lang.String getMessage(java.lang.String key)
          Gets the message having the given key in the underlying message bundle.
protected  java.lang.String getMessage(java.lang.String key, java.lang.Object[] arguments)
          Gets the message having the given key and arguments in the underlying message bundle.
protected  java.lang.String getMessage(java.lang.String key, java.lang.Object[] arguments, java.util.Locale locale)
          Gets the message having the given key using the given arguments for the given locale.
protected  org.springframework.context.MessageSource getMessages()
          Gets the message source available to this service.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  StatusDao getStatusDao()
          Gets the reference to status's DAO.
protected abstract  RemoteBuyerFullVO handleAddBuyer(RemoteBuyerFullVO buyer)
          Performs the core logic for addBuyer(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)
protected abstract  ClusterBuyer handleAddOrUpdateClusterBuyer(ClusterBuyer clusterBuyer)
          Performs the core logic for addOrUpdateClusterBuyer(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)
protected abstract  RemoteBuyerFullVO[] handleGetAllBuyer()
          Performs the core logic for getAllBuyer()
protected abstract  ClusterBuyer[] handleGetAllClusterBuyerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteBuyerFullVO handleGetBuyerById(java.lang.Integer id)
          Performs the core logic for getBuyerById(java.lang.Integer)
protected abstract  RemoteBuyerFullVO[] handleGetBuyerByIds(java.lang.Integer[] id)
          Performs the core logic for getBuyerByIds(java.lang.Integer[])
protected abstract  RemoteBuyerFullVO handleGetBuyerByNaturalId(RemoteBuyerNaturalId buyerNaturalId)
          Performs the core logic for getBuyerByNaturalId(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerNaturalId)
protected abstract  RemoteBuyerFullVO[] handleGetBuyerByStatusCode(java.lang.String code)
          Performs the core logic for getBuyerByStatusCode(java.lang.String)
protected abstract  RemoteBuyerNaturalId handleGetBuyerNaturalIdById(java.lang.Integer id)
          Performs the core logic for getBuyerNaturalIdById(java.lang.Integer)
protected abstract  RemoteBuyerNaturalId[] handleGetBuyerNaturalIds()
          Performs the core logic for getBuyerNaturalIds()
protected abstract  ClusterBuyer handleGetClusterBuyerByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterBuyerByIdentifiers(java.lang.Integer)
protected abstract  boolean handleRemoteBuyerFullVOsAreEqual(RemoteBuyerFullVO remoteBuyerFullVOFirst, RemoteBuyerFullVO remoteBuyerFullVOSecond)
          Performs the core logic for remoteBuyerFullVOsAreEqual(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO, fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)
protected abstract  boolean handleRemoteBuyerFullVOsAreEqualOnIdentifiers(RemoteBuyerFullVO remoteBuyerFullVOFirst, RemoteBuyerFullVO remoteBuyerFullVOSecond)
          Performs the core logic for remoteBuyerFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO, fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)
protected abstract  void handleRemoveBuyer(RemoteBuyerFullVO buyer)
          Performs the core logic for removeBuyer(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)
protected abstract  void handleUpdateBuyer(RemoteBuyerFullVO buyer)
          Performs the core logic for updateBuyer(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)
 boolean remoteBuyerFullVOsAreEqual(RemoteBuyerFullVO remoteBuyerFullVOFirst, RemoteBuyerFullVO remoteBuyerFullVOSecond)
           
 boolean remoteBuyerFullVOsAreEqualOnIdentifiers(RemoteBuyerFullVO remoteBuyerFullVOFirst, RemoteBuyerFullVO remoteBuyerFullVOSecond)
           
 void removeBuyer(RemoteBuyerFullVO buyer)
           
 void setBuyerDao(BuyerDao buyerDao)
          Sets the reference to buyer's DAO.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void updateBuyer(RemoteBuyerFullVO buyer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteBuyerFullServiceBase

public RemoteBuyerFullServiceBase()
Method Detail

setBuyerDao

public void setBuyerDao(BuyerDao buyerDao)
Sets the reference to buyer's DAO.


getBuyerDao

protected BuyerDao getBuyerDao()
Gets the reference to buyer's DAO.


setStatusDao

public void setStatusDao(StatusDao statusDao)
Sets the reference to status's DAO.


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to status's DAO.


addBuyer

public RemoteBuyerFullVO addBuyer(RemoteBuyerFullVO buyer)
Specified by:
addBuyer in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.addBuyer(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

handleAddBuyer

protected abstract RemoteBuyerFullVO handleAddBuyer(RemoteBuyerFullVO buyer)
                                             throws java.lang.Exception
Performs the core logic for addBuyer(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

Throws:
java.lang.Exception

updateBuyer

public void updateBuyer(RemoteBuyerFullVO buyer)
Specified by:
updateBuyer in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.updateBuyer(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

handleUpdateBuyer

protected abstract void handleUpdateBuyer(RemoteBuyerFullVO buyer)
                                   throws java.lang.Exception
Performs the core logic for updateBuyer(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

Throws:
java.lang.Exception

removeBuyer

public void removeBuyer(RemoteBuyerFullVO buyer)
Specified by:
removeBuyer in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.removeBuyer(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

handleRemoveBuyer

protected abstract void handleRemoveBuyer(RemoteBuyerFullVO buyer)
                                   throws java.lang.Exception
Performs the core logic for removeBuyer(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

Throws:
java.lang.Exception

getAllBuyer

public RemoteBuyerFullVO[] getAllBuyer()
Specified by:
getAllBuyer in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.getAllBuyer()

handleGetAllBuyer

protected abstract RemoteBuyerFullVO[] handleGetAllBuyer()
                                                  throws java.lang.Exception
Performs the core logic for getAllBuyer()

Throws:
java.lang.Exception

getBuyerById

public RemoteBuyerFullVO getBuyerById(java.lang.Integer id)
Specified by:
getBuyerById in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.getBuyerById(java.lang.Integer)

handleGetBuyerById

protected abstract RemoteBuyerFullVO handleGetBuyerById(java.lang.Integer id)
                                                 throws java.lang.Exception
Performs the core logic for getBuyerById(java.lang.Integer)

Throws:
java.lang.Exception

getBuyerByIds

public RemoteBuyerFullVO[] getBuyerByIds(java.lang.Integer[] id)
Specified by:
getBuyerByIds in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.getBuyerByIds(java.lang.Integer[])

handleGetBuyerByIds

protected abstract RemoteBuyerFullVO[] handleGetBuyerByIds(java.lang.Integer[] id)
                                                    throws java.lang.Exception
Performs the core logic for getBuyerByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getBuyerByStatusCode

public RemoteBuyerFullVO[] getBuyerByStatusCode(java.lang.String code)
Specified by:
getBuyerByStatusCode in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.getBuyerByStatusCode(java.lang.String)

handleGetBuyerByStatusCode

protected abstract RemoteBuyerFullVO[] handleGetBuyerByStatusCode(java.lang.String code)
                                                           throws java.lang.Exception
Performs the core logic for getBuyerByStatusCode(java.lang.String)

Throws:
java.lang.Exception

remoteBuyerFullVOsAreEqualOnIdentifiers

public boolean remoteBuyerFullVOsAreEqualOnIdentifiers(RemoteBuyerFullVO remoteBuyerFullVOFirst,
                                                       RemoteBuyerFullVO remoteBuyerFullVOSecond)
Specified by:
remoteBuyerFullVOsAreEqualOnIdentifiers in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.remoteBuyerFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO, fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

handleRemoteBuyerFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteBuyerFullVOsAreEqualOnIdentifiers(RemoteBuyerFullVO remoteBuyerFullVOFirst,
                                                                         RemoteBuyerFullVO remoteBuyerFullVOSecond)
                                                                  throws java.lang.Exception
Performs the core logic for remoteBuyerFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO, fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

Throws:
java.lang.Exception

remoteBuyerFullVOsAreEqual

public boolean remoteBuyerFullVOsAreEqual(RemoteBuyerFullVO remoteBuyerFullVOFirst,
                                          RemoteBuyerFullVO remoteBuyerFullVOSecond)
Specified by:
remoteBuyerFullVOsAreEqual in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.remoteBuyerFullVOsAreEqual(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO, fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

handleRemoteBuyerFullVOsAreEqual

protected abstract boolean handleRemoteBuyerFullVOsAreEqual(RemoteBuyerFullVO remoteBuyerFullVOFirst,
                                                            RemoteBuyerFullVO remoteBuyerFullVOSecond)
                                                     throws java.lang.Exception
Performs the core logic for remoteBuyerFullVOsAreEqual(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO, fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

Throws:
java.lang.Exception

getBuyerNaturalIds

public RemoteBuyerNaturalId[] getBuyerNaturalIds()
Specified by:
getBuyerNaturalIds in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.getBuyerNaturalIds()

handleGetBuyerNaturalIds

protected abstract RemoteBuyerNaturalId[] handleGetBuyerNaturalIds()
                                                            throws java.lang.Exception
Performs the core logic for getBuyerNaturalIds()

Throws:
java.lang.Exception

getBuyerByNaturalId

public RemoteBuyerFullVO getBuyerByNaturalId(RemoteBuyerNaturalId buyerNaturalId)
Specified by:
getBuyerByNaturalId in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.getBuyerByNaturalId(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerNaturalId)

handleGetBuyerByNaturalId

protected abstract RemoteBuyerFullVO handleGetBuyerByNaturalId(RemoteBuyerNaturalId buyerNaturalId)
                                                        throws java.lang.Exception
Performs the core logic for getBuyerByNaturalId(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerNaturalId)

Throws:
java.lang.Exception

getBuyerNaturalIdById

public RemoteBuyerNaturalId getBuyerNaturalIdById(java.lang.Integer id)
Specified by:
getBuyerNaturalIdById in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.getBuyerNaturalIdById(java.lang.Integer)

handleGetBuyerNaturalIdById

protected abstract RemoteBuyerNaturalId handleGetBuyerNaturalIdById(java.lang.Integer id)
                                                             throws java.lang.Exception
Performs the core logic for getBuyerNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterBuyer

public ClusterBuyer addOrUpdateClusterBuyer(ClusterBuyer clusterBuyer)
Specified by:
addOrUpdateClusterBuyer in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.addOrUpdateClusterBuyer(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)

handleAddOrUpdateClusterBuyer

protected abstract ClusterBuyer handleAddOrUpdateClusterBuyer(ClusterBuyer clusterBuyer)
                                                       throws java.lang.Exception
Performs the core logic for addOrUpdateClusterBuyer(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)

Throws:
java.lang.Exception

getAllClusterBuyerSinceDateSynchro

public ClusterBuyer[] getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                         java.lang.Integer userId,
                                                         java.lang.Integer[] registrationLocationIds,
                                                         java.lang.Integer pageNumber,
                                                         java.lang.Integer pageSize)
Specified by:
getAllClusterBuyerSinceDateSynchro in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterBuyerSinceDateSynchro

protected abstract ClusterBuyer[] handleGetAllClusterBuyerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                           java.lang.Integer userId,
                                                                           java.lang.Integer[] registrationLocationIds,
                                                                           java.lang.Integer pageNumber,
                                                                           java.lang.Integer pageSize)
                                                                    throws java.lang.Exception
Performs the core logic for getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterBuyerByIdentifiers

public ClusterBuyer getClusterBuyerByIdentifiers(java.lang.Integer id)
Specified by:
getClusterBuyerByIdentifiers in interface RemoteBuyerFullService
See Also:
RemoteBuyerFullService.getClusterBuyerByIdentifiers(java.lang.Integer)

handleGetClusterBuyerByIdentifiers

protected abstract ClusterBuyer handleGetClusterBuyerByIdentifiers(java.lang.Integer id)
                                                            throws java.lang.Exception
Performs the core logic for getClusterBuyerByIdentifiers(java.lang.Integer)

Throws:
java.lang.Exception

getPrincipal

protected java.security.Principal getPrincipal()
Gets the current principal if one has been set, otherwise returns null.

Returns:
the current principal

getMessages

protected org.springframework.context.MessageSource getMessages()
Gets the message source available to this service.


getMessage

protected java.lang.String getMessage(java.lang.String key)
Gets the message having the given key in the underlying message bundle.

Parameters:
key - the key of the message in the messages.properties message bundle.

getMessage

protected java.lang.String getMessage(java.lang.String key,
                                      java.lang.Object[] arguments)
Gets the message having the given key and arguments in the underlying message bundle.

Parameters:
key - the key of the message in the messages.properties message bundle.
arguments - any arguments to substitute when resolving the message.

getMessage

protected java.lang.String getMessage(java.lang.String key,
                                      java.lang.Object[] arguments,
                                      java.util.Locale locale)
Gets the message having the given key using the given arguments for the given locale.

Parameters:
key - the key of the message in the messages.properties message bundle.
arguments - any arguments to substitute when resolving the message.
locale - the locale of the messages to retrieve.


Copyright © 2008-2010 IFREMER. All Rights Reserved.