fr.ifremer.allegro.referential.gear.generic.service
Class RemoteGearFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.referential.gear.generic.service.RemoteGearFullServiceBase
All Implemented Interfaces:
RemoteGearFullService
Direct Known Subclasses:
RemoteGearFullServiceImpl

public abstract class RemoteGearFullServiceBase
extends java.lang.Object
implements RemoteGearFullService

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

See Also:
RemoteGearFullService

Constructor Summary
RemoteGearFullServiceBase()
           
 
Method Summary
 RemoteGearFullVO addGear(RemoteGearFullVO gear)
           
 ClusterGear addOrUpdateClusterGear(ClusterGear clusterGear)
           
 ClusterGear[] getAllClusterGearSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteGearFullVO[] getAllGear()
           
 ClusterGear getClusterGearByIdentifiers(java.lang.Integer id)
           
 RemoteGearFullVO[] getGearByGearClassificationId(java.lang.Integer id)
           
 RemoteGearFullVO getGearById(java.lang.Integer id)
           
 RemoteGearFullVO[] getGearByIds(java.lang.Integer[] id)
           
 RemoteGearFullVO getGearByNaturalId(RemoteGearNaturalId gearNaturalId)
           
 RemoteGearFullVO[] getGearByParentGearId(java.lang.Integer id)
           
 RemoteGearFullVO[] getGearByStatusCode(java.lang.String code)
           
protected  GearClassificationDao getGearClassificationDao()
          Gets the reference to gearClassification's DAO.
protected  GearDao getGearDao()
          Gets the reference to gear's DAO.
 RemoteGearNaturalId getGearNaturalIdById(java.lang.Integer id)
           
 RemoteGearNaturalId[] getGearNaturalIds()
           
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  RemoteGearFullVO handleAddGear(RemoteGearFullVO gear)
          Performs the core logic for addGear(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)
protected abstract  ClusterGear handleAddOrUpdateClusterGear(ClusterGear clusterGear)
          Performs the core logic for addOrUpdateClusterGear(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGear)
protected abstract  ClusterGear[] handleGetAllClusterGearSinceDateSynchro(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 getAllClusterGearSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteGearFullVO[] handleGetAllGear()
          Performs the core logic for getAllGear()
protected abstract  ClusterGear handleGetClusterGearByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterGearByIdentifiers(java.lang.Integer)
protected abstract  RemoteGearFullVO[] handleGetGearByGearClassificationId(java.lang.Integer id)
          Performs the core logic for getGearByGearClassificationId(java.lang.Integer)
protected abstract  RemoteGearFullVO handleGetGearById(java.lang.Integer id)
          Performs the core logic for getGearById(java.lang.Integer)
protected abstract  RemoteGearFullVO[] handleGetGearByIds(java.lang.Integer[] id)
          Performs the core logic for getGearByIds(java.lang.Integer[])
protected abstract  RemoteGearFullVO handleGetGearByNaturalId(RemoteGearNaturalId gearNaturalId)
          Performs the core logic for getGearByNaturalId(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearNaturalId)
protected abstract  RemoteGearFullVO[] handleGetGearByParentGearId(java.lang.Integer id)
          Performs the core logic for getGearByParentGearId(java.lang.Integer)
protected abstract  RemoteGearFullVO[] handleGetGearByStatusCode(java.lang.String code)
          Performs the core logic for getGearByStatusCode(java.lang.String)
protected abstract  RemoteGearNaturalId handleGetGearNaturalIdById(java.lang.Integer id)
          Performs the core logic for getGearNaturalIdById(java.lang.Integer)
protected abstract  RemoteGearNaturalId[] handleGetGearNaturalIds()
          Performs the core logic for getGearNaturalIds()
protected abstract  boolean handleRemoteGearFullVOsAreEqual(RemoteGearFullVO remoteGearFullVOFirst, RemoteGearFullVO remoteGearFullVOSecond)
          Performs the core logic for remoteGearFullVOsAreEqual(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO, fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)
protected abstract  boolean handleRemoteGearFullVOsAreEqualOnIdentifiers(RemoteGearFullVO remoteGearFullVOFirst, RemoteGearFullVO remoteGearFullVOSecond)
          Performs the core logic for remoteGearFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO, fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)
protected abstract  void handleRemoveGear(RemoteGearFullVO gear)
          Performs the core logic for removeGear(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)
protected abstract  void handleUpdateGear(RemoteGearFullVO gear)
          Performs the core logic for updateGear(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)
 boolean remoteGearFullVOsAreEqual(RemoteGearFullVO remoteGearFullVOFirst, RemoteGearFullVO remoteGearFullVOSecond)
           
 boolean remoteGearFullVOsAreEqualOnIdentifiers(RemoteGearFullVO remoteGearFullVOFirst, RemoteGearFullVO remoteGearFullVOSecond)
           
 void removeGear(RemoteGearFullVO gear)
           
 void setGearClassificationDao(GearClassificationDao gearClassificationDao)
          Sets the reference to gearClassification's DAO.
 void setGearDao(GearDao gearDao)
          Sets the reference to gear's DAO.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void updateGear(RemoteGearFullVO gear)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteGearFullServiceBase

public RemoteGearFullServiceBase()
Method Detail

setGearDao

public void setGearDao(GearDao gearDao)
Sets the reference to gear's DAO.


getGearDao

protected GearDao getGearDao()
Gets the reference to gear's DAO.


setGearClassificationDao

public void setGearClassificationDao(GearClassificationDao gearClassificationDao)
Sets the reference to gearClassification's DAO.


getGearClassificationDao

protected GearClassificationDao getGearClassificationDao()
Gets the reference to gearClassification'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.


addGear

public RemoteGearFullVO addGear(RemoteGearFullVO gear)
Specified by:
addGear in interface RemoteGearFullService
See Also:
RemoteGearFullService.addGear(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

handleAddGear

protected abstract RemoteGearFullVO handleAddGear(RemoteGearFullVO gear)
                                           throws java.lang.Exception
Performs the core logic for addGear(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

Throws:
java.lang.Exception

updateGear

public void updateGear(RemoteGearFullVO gear)
Specified by:
updateGear in interface RemoteGearFullService
See Also:
RemoteGearFullService.updateGear(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

handleUpdateGear

protected abstract void handleUpdateGear(RemoteGearFullVO gear)
                                  throws java.lang.Exception
Performs the core logic for updateGear(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

Throws:
java.lang.Exception

removeGear

public void removeGear(RemoteGearFullVO gear)
Specified by:
removeGear in interface RemoteGearFullService
See Also:
RemoteGearFullService.removeGear(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

handleRemoveGear

protected abstract void handleRemoveGear(RemoteGearFullVO gear)
                                  throws java.lang.Exception
Performs the core logic for removeGear(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

Throws:
java.lang.Exception

getAllGear

public RemoteGearFullVO[] getAllGear()
Specified by:
getAllGear in interface RemoteGearFullService
See Also:
RemoteGearFullService.getAllGear()

handleGetAllGear

protected abstract RemoteGearFullVO[] handleGetAllGear()
                                                throws java.lang.Exception
Performs the core logic for getAllGear()

Throws:
java.lang.Exception

getGearById

public RemoteGearFullVO getGearById(java.lang.Integer id)
Specified by:
getGearById in interface RemoteGearFullService
See Also:
RemoteGearFullService.getGearById(java.lang.Integer)

handleGetGearById

protected abstract RemoteGearFullVO handleGetGearById(java.lang.Integer id)
                                               throws java.lang.Exception
Performs the core logic for getGearById(java.lang.Integer)

Throws:
java.lang.Exception

getGearByIds

public RemoteGearFullVO[] getGearByIds(java.lang.Integer[] id)
Specified by:
getGearByIds in interface RemoteGearFullService
See Also:
RemoteGearFullService.getGearByIds(java.lang.Integer[])

handleGetGearByIds

protected abstract RemoteGearFullVO[] handleGetGearByIds(java.lang.Integer[] id)
                                                  throws java.lang.Exception
Performs the core logic for getGearByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getGearByParentGearId

public RemoteGearFullVO[] getGearByParentGearId(java.lang.Integer id)
Specified by:
getGearByParentGearId in interface RemoteGearFullService
See Also:
RemoteGearFullService.getGearByParentGearId(java.lang.Integer)

handleGetGearByParentGearId

protected abstract RemoteGearFullVO[] handleGetGearByParentGearId(java.lang.Integer id)
                                                           throws java.lang.Exception
Performs the core logic for getGearByParentGearId(java.lang.Integer)

Throws:
java.lang.Exception

getGearByGearClassificationId

public RemoteGearFullVO[] getGearByGearClassificationId(java.lang.Integer id)
Specified by:
getGearByGearClassificationId in interface RemoteGearFullService
See Also:
RemoteGearFullService.getGearByGearClassificationId(java.lang.Integer)

handleGetGearByGearClassificationId

protected abstract RemoteGearFullVO[] handleGetGearByGearClassificationId(java.lang.Integer id)
                                                                   throws java.lang.Exception
Performs the core logic for getGearByGearClassificationId(java.lang.Integer)

Throws:
java.lang.Exception

getGearByStatusCode

public RemoteGearFullVO[] getGearByStatusCode(java.lang.String code)
Specified by:
getGearByStatusCode in interface RemoteGearFullService
See Also:
RemoteGearFullService.getGearByStatusCode(java.lang.String)

handleGetGearByStatusCode

protected abstract RemoteGearFullVO[] handleGetGearByStatusCode(java.lang.String code)
                                                         throws java.lang.Exception
Performs the core logic for getGearByStatusCode(java.lang.String)

Throws:
java.lang.Exception

remoteGearFullVOsAreEqualOnIdentifiers

public boolean remoteGearFullVOsAreEqualOnIdentifiers(RemoteGearFullVO remoteGearFullVOFirst,
                                                      RemoteGearFullVO remoteGearFullVOSecond)
Specified by:
remoteGearFullVOsAreEqualOnIdentifiers in interface RemoteGearFullService
See Also:
RemoteGearFullService.remoteGearFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO, fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

handleRemoteGearFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteGearFullVOsAreEqualOnIdentifiers(RemoteGearFullVO remoteGearFullVOFirst,
                                                                        RemoteGearFullVO remoteGearFullVOSecond)
                                                                 throws java.lang.Exception
Performs the core logic for remoteGearFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO, fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

Throws:
java.lang.Exception

remoteGearFullVOsAreEqual

public boolean remoteGearFullVOsAreEqual(RemoteGearFullVO remoteGearFullVOFirst,
                                         RemoteGearFullVO remoteGearFullVOSecond)
Specified by:
remoteGearFullVOsAreEqual in interface RemoteGearFullService
See Also:
RemoteGearFullService.remoteGearFullVOsAreEqual(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO, fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

handleRemoteGearFullVOsAreEqual

protected abstract boolean handleRemoteGearFullVOsAreEqual(RemoteGearFullVO remoteGearFullVOFirst,
                                                           RemoteGearFullVO remoteGearFullVOSecond)
                                                    throws java.lang.Exception
Performs the core logic for remoteGearFullVOsAreEqual(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO, fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO)

Throws:
java.lang.Exception

getGearNaturalIds

public RemoteGearNaturalId[] getGearNaturalIds()
Specified by:
getGearNaturalIds in interface RemoteGearFullService
See Also:
RemoteGearFullService.getGearNaturalIds()

handleGetGearNaturalIds

protected abstract RemoteGearNaturalId[] handleGetGearNaturalIds()
                                                          throws java.lang.Exception
Performs the core logic for getGearNaturalIds()

Throws:
java.lang.Exception

getGearByNaturalId

public RemoteGearFullVO getGearByNaturalId(RemoteGearNaturalId gearNaturalId)
Specified by:
getGearByNaturalId in interface RemoteGearFullService
See Also:
RemoteGearFullService.getGearByNaturalId(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearNaturalId)

handleGetGearByNaturalId

protected abstract RemoteGearFullVO handleGetGearByNaturalId(RemoteGearNaturalId gearNaturalId)
                                                      throws java.lang.Exception
Performs the core logic for getGearByNaturalId(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearNaturalId)

Throws:
java.lang.Exception

getGearNaturalIdById

public RemoteGearNaturalId getGearNaturalIdById(java.lang.Integer id)
Specified by:
getGearNaturalIdById in interface RemoteGearFullService
See Also:
RemoteGearFullService.getGearNaturalIdById(java.lang.Integer)

handleGetGearNaturalIdById

protected abstract RemoteGearNaturalId handleGetGearNaturalIdById(java.lang.Integer id)
                                                           throws java.lang.Exception
Performs the core logic for getGearNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

getAllClusterGearSinceDateSynchro

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

handleGetAllClusterGearSinceDateSynchro

protected abstract ClusterGear[] handleGetAllClusterGearSinceDateSynchro(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 getAllClusterGearSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterGearByIdentifiers

public ClusterGear getClusterGearByIdentifiers(java.lang.Integer id)
Specified by:
getClusterGearByIdentifiers in interface RemoteGearFullService
See Also:
RemoteGearFullService.getClusterGearByIdentifiers(java.lang.Integer)

handleGetClusterGearByIdentifiers

protected abstract ClusterGear handleGetClusterGearByIdentifiers(java.lang.Integer id)
                                                          throws java.lang.Exception
Performs the core logic for getClusterGearByIdentifiers(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterGear

public ClusterGear addOrUpdateClusterGear(ClusterGear clusterGear)
Specified by:
addOrUpdateClusterGear in interface RemoteGearFullService
See Also:
RemoteGearFullService.addOrUpdateClusterGear(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGear)

handleAddOrUpdateClusterGear

protected abstract ClusterGear handleAddOrUpdateClusterGear(ClusterGear clusterGear)
                                                     throws java.lang.Exception
Performs the core logic for addOrUpdateClusterGear(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGear)

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.