fr.ifremer.allegro.referential.location.generic.service
Class RemoteLocationFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.referential.location.generic.service.RemoteLocationFullServiceBase
All Implemented Interfaces:
RemoteLocationFullService
Direct Known Subclasses:
RemoteLocationFullServiceImpl

public abstract class RemoteLocationFullServiceBase
extends java.lang.Object
implements RemoteLocationFullService

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

See Also:
RemoteLocationFullService

Constructor Summary
RemoteLocationFullServiceBase()
           
 
Method Summary
 RemoteLocationFullVO addLocation(RemoteLocationFullVO location)
           
 ClusterLocation addOrUpdateClusterLocation(ClusterLocation clusterLocation)
           
 ClusterLocation[] getAllClusterLocationSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteLocationFullVO[] getAllLocation()
           
 ClusterLocation getClusterLocationByIdentifiers(java.lang.Integer id)
           
protected  LocationAreaDao getLocationAreaDao()
          Gets the reference to locationArea's DAO.
 RemoteLocationFullVO getLocationById(java.lang.Integer id)
           
 RemoteLocationFullVO[] getLocationByIds(java.lang.Integer[] id)
           
 RemoteLocationFullVO[] getLocationByLocationClassificationId(java.lang.Integer id)
           
 RemoteLocationFullVO[] getLocationByLocationLevelId(java.lang.Integer id)
           
 RemoteLocationFullVO getLocationByNaturalId(RemoteLocationNaturalId locationNaturalId)
           
 RemoteLocationFullVO[] getLocationByStatusCode(java.lang.String code)
           
protected  LocationClassificationDao getLocationClassificationDao()
          Gets the reference to locationClassification's DAO.
protected  LocationDao getLocationDao()
          Gets the reference to location's DAO.
protected  LocationLevelDao getLocationLevelDao()
          Gets the reference to locationLevel's DAO.
protected  LocationLineDao getLocationLineDao()
          Gets the reference to locationLine's DAO.
 RemoteLocationNaturalId getLocationNaturalIdById(java.lang.Integer id)
           
 RemoteLocationNaturalId[] getLocationNaturalIds()
           
protected  LocationPointDao getLocationPointDao()
          Gets the reference to locationPoint's DAO.
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  RemoteLocationFullVO handleAddLocation(RemoteLocationFullVO location)
          Performs the core logic for addLocation(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)
protected abstract  ClusterLocation handleAddOrUpdateClusterLocation(ClusterLocation clusterLocation)
          Performs the core logic for addOrUpdateClusterLocation(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)
protected abstract  ClusterLocation[] handleGetAllClusterLocationSinceDateSynchro(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 getAllClusterLocationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteLocationFullVO[] handleGetAllLocation()
          Performs the core logic for getAllLocation()
protected abstract  ClusterLocation handleGetClusterLocationByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterLocationByIdentifiers(java.lang.Integer)
protected abstract  RemoteLocationFullVO handleGetLocationById(java.lang.Integer id)
          Performs the core logic for getLocationById(java.lang.Integer)
protected abstract  RemoteLocationFullVO[] handleGetLocationByIds(java.lang.Integer[] id)
          Performs the core logic for getLocationByIds(java.lang.Integer[])
protected abstract  RemoteLocationFullVO[] handleGetLocationByLocationClassificationId(java.lang.Integer id)
          Performs the core logic for getLocationByLocationClassificationId(java.lang.Integer)
protected abstract  RemoteLocationFullVO[] handleGetLocationByLocationLevelId(java.lang.Integer id)
          Performs the core logic for getLocationByLocationLevelId(java.lang.Integer)
protected abstract  RemoteLocationFullVO handleGetLocationByNaturalId(RemoteLocationNaturalId locationNaturalId)
          Performs the core logic for getLocationByNaturalId(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationNaturalId)
protected abstract  RemoteLocationFullVO[] handleGetLocationByStatusCode(java.lang.String code)
          Performs the core logic for getLocationByStatusCode(java.lang.String)
protected abstract  RemoteLocationNaturalId handleGetLocationNaturalIdById(java.lang.Integer id)
          Performs the core logic for getLocationNaturalIdById(java.lang.Integer)
protected abstract  RemoteLocationNaturalId[] handleGetLocationNaturalIds()
          Performs the core logic for getLocationNaturalIds()
protected abstract  boolean handleRemoteLocationFullVOsAreEqual(RemoteLocationFullVO remoteLocationFullVOFirst, RemoteLocationFullVO remoteLocationFullVOSecond)
          Performs the core logic for remoteLocationFullVOsAreEqual(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)
protected abstract  boolean handleRemoteLocationFullVOsAreEqualOnIdentifiers(RemoteLocationFullVO remoteLocationFullVOFirst, RemoteLocationFullVO remoteLocationFullVOSecond)
          Performs the core logic for remoteLocationFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)
protected abstract  void handleRemoveLocation(RemoteLocationFullVO location)
          Performs the core logic for removeLocation(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)
protected abstract  void handleUpdateLocation(RemoteLocationFullVO location)
          Performs the core logic for updateLocation(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)
 boolean remoteLocationFullVOsAreEqual(RemoteLocationFullVO remoteLocationFullVOFirst, RemoteLocationFullVO remoteLocationFullVOSecond)
           
 boolean remoteLocationFullVOsAreEqualOnIdentifiers(RemoteLocationFullVO remoteLocationFullVOFirst, RemoteLocationFullVO remoteLocationFullVOSecond)
           
 void removeLocation(RemoteLocationFullVO location)
           
 void setLocationAreaDao(LocationAreaDao locationAreaDao)
          Sets the reference to locationArea's DAO.
 void setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
          Sets the reference to locationClassification's DAO.
 void setLocationDao(LocationDao locationDao)
          Sets the reference to location's DAO.
 void setLocationLevelDao(LocationLevelDao locationLevelDao)
          Sets the reference to locationLevel's DAO.
 void setLocationLineDao(LocationLineDao locationLineDao)
          Sets the reference to locationLine's DAO.
 void setLocationPointDao(LocationPointDao locationPointDao)
          Sets the reference to locationPoint's DAO.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void updateLocation(RemoteLocationFullVO location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteLocationFullServiceBase

public RemoteLocationFullServiceBase()
Method Detail

setLocationDao

public void setLocationDao(LocationDao locationDao)
Sets the reference to location's DAO.


getLocationDao

protected LocationDao getLocationDao()
Gets the reference to location'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.


setLocationClassificationDao

public void setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
Sets the reference to locationClassification's DAO.


getLocationClassificationDao

protected LocationClassificationDao getLocationClassificationDao()
Gets the reference to locationClassification's DAO.


setLocationLevelDao

public void setLocationLevelDao(LocationLevelDao locationLevelDao)
Sets the reference to locationLevel's DAO.


getLocationLevelDao

protected LocationLevelDao getLocationLevelDao()
Gets the reference to locationLevel's DAO.


setLocationAreaDao

public void setLocationAreaDao(LocationAreaDao locationAreaDao)
Sets the reference to locationArea's DAO.


getLocationAreaDao

protected LocationAreaDao getLocationAreaDao()
Gets the reference to locationArea's DAO.


setLocationLineDao

public void setLocationLineDao(LocationLineDao locationLineDao)
Sets the reference to locationLine's DAO.


getLocationLineDao

protected LocationLineDao getLocationLineDao()
Gets the reference to locationLine's DAO.


setLocationPointDao

public void setLocationPointDao(LocationPointDao locationPointDao)
Sets the reference to locationPoint's DAO.


getLocationPointDao

protected LocationPointDao getLocationPointDao()
Gets the reference to locationPoint's DAO.


addLocation

public RemoteLocationFullVO addLocation(RemoteLocationFullVO location)
Specified by:
addLocation in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.addLocation(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

handleAddLocation

protected abstract RemoteLocationFullVO handleAddLocation(RemoteLocationFullVO location)
                                                   throws java.lang.Exception
Performs the core logic for addLocation(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

Throws:
java.lang.Exception

updateLocation

public void updateLocation(RemoteLocationFullVO location)
Specified by:
updateLocation in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.updateLocation(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

handleUpdateLocation

protected abstract void handleUpdateLocation(RemoteLocationFullVO location)
                                      throws java.lang.Exception
Performs the core logic for updateLocation(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

Throws:
java.lang.Exception

removeLocation

public void removeLocation(RemoteLocationFullVO location)
Specified by:
removeLocation in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.removeLocation(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

handleRemoveLocation

protected abstract void handleRemoveLocation(RemoteLocationFullVO location)
                                      throws java.lang.Exception
Performs the core logic for removeLocation(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

Throws:
java.lang.Exception

getAllLocation

public RemoteLocationFullVO[] getAllLocation()
Specified by:
getAllLocation in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getAllLocation()

handleGetAllLocation

protected abstract RemoteLocationFullVO[] handleGetAllLocation()
                                                        throws java.lang.Exception
Performs the core logic for getAllLocation()

Throws:
java.lang.Exception

getLocationById

public RemoteLocationFullVO getLocationById(java.lang.Integer id)
Specified by:
getLocationById in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getLocationById(java.lang.Integer)

handleGetLocationById

protected abstract RemoteLocationFullVO handleGetLocationById(java.lang.Integer id)
                                                       throws java.lang.Exception
Performs the core logic for getLocationById(java.lang.Integer)

Throws:
java.lang.Exception

getLocationByIds

public RemoteLocationFullVO[] getLocationByIds(java.lang.Integer[] id)
Specified by:
getLocationByIds in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getLocationByIds(java.lang.Integer[])

handleGetLocationByIds

protected abstract RemoteLocationFullVO[] handleGetLocationByIds(java.lang.Integer[] id)
                                                          throws java.lang.Exception
Performs the core logic for getLocationByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getLocationByStatusCode

public RemoteLocationFullVO[] getLocationByStatusCode(java.lang.String code)
Specified by:
getLocationByStatusCode in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getLocationByStatusCode(java.lang.String)

handleGetLocationByStatusCode

protected abstract RemoteLocationFullVO[] handleGetLocationByStatusCode(java.lang.String code)
                                                                 throws java.lang.Exception
Performs the core logic for getLocationByStatusCode(java.lang.String)

Throws:
java.lang.Exception

getLocationByLocationClassificationId

public RemoteLocationFullVO[] getLocationByLocationClassificationId(java.lang.Integer id)
Specified by:
getLocationByLocationClassificationId in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getLocationByLocationClassificationId(java.lang.Integer)

handleGetLocationByLocationClassificationId

protected abstract RemoteLocationFullVO[] handleGetLocationByLocationClassificationId(java.lang.Integer id)
                                                                               throws java.lang.Exception
Performs the core logic for getLocationByLocationClassificationId(java.lang.Integer)

Throws:
java.lang.Exception

getLocationByLocationLevelId

public RemoteLocationFullVO[] getLocationByLocationLevelId(java.lang.Integer id)
Specified by:
getLocationByLocationLevelId in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getLocationByLocationLevelId(java.lang.Integer)

handleGetLocationByLocationLevelId

protected abstract RemoteLocationFullVO[] handleGetLocationByLocationLevelId(java.lang.Integer id)
                                                                      throws java.lang.Exception
Performs the core logic for getLocationByLocationLevelId(java.lang.Integer)

Throws:
java.lang.Exception

remoteLocationFullVOsAreEqualOnIdentifiers

public boolean remoteLocationFullVOsAreEqualOnIdentifiers(RemoteLocationFullVO remoteLocationFullVOFirst,
                                                          RemoteLocationFullVO remoteLocationFullVOSecond)
Specified by:
remoteLocationFullVOsAreEqualOnIdentifiers in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.remoteLocationFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

handleRemoteLocationFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteLocationFullVOsAreEqualOnIdentifiers(RemoteLocationFullVO remoteLocationFullVOFirst,
                                                                            RemoteLocationFullVO remoteLocationFullVOSecond)
                                                                     throws java.lang.Exception
Performs the core logic for remoteLocationFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

Throws:
java.lang.Exception

remoteLocationFullVOsAreEqual

public boolean remoteLocationFullVOsAreEqual(RemoteLocationFullVO remoteLocationFullVOFirst,
                                             RemoteLocationFullVO remoteLocationFullVOSecond)
Specified by:
remoteLocationFullVOsAreEqual in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.remoteLocationFullVOsAreEqual(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

handleRemoteLocationFullVOsAreEqual

protected abstract boolean handleRemoteLocationFullVOsAreEqual(RemoteLocationFullVO remoteLocationFullVOFirst,
                                                               RemoteLocationFullVO remoteLocationFullVOSecond)
                                                        throws java.lang.Exception
Performs the core logic for remoteLocationFullVOsAreEqual(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

Throws:
java.lang.Exception

getLocationNaturalIds

public RemoteLocationNaturalId[] getLocationNaturalIds()
Specified by:
getLocationNaturalIds in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getLocationNaturalIds()

handleGetLocationNaturalIds

protected abstract RemoteLocationNaturalId[] handleGetLocationNaturalIds()
                                                                  throws java.lang.Exception
Performs the core logic for getLocationNaturalIds()

Throws:
java.lang.Exception

getLocationByNaturalId

public RemoteLocationFullVO getLocationByNaturalId(RemoteLocationNaturalId locationNaturalId)
Specified by:
getLocationByNaturalId in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getLocationByNaturalId(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationNaturalId)

handleGetLocationByNaturalId

protected abstract RemoteLocationFullVO handleGetLocationByNaturalId(RemoteLocationNaturalId locationNaturalId)
                                                              throws java.lang.Exception
Performs the core logic for getLocationByNaturalId(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationNaturalId)

Throws:
java.lang.Exception

getLocationNaturalIdById

public RemoteLocationNaturalId getLocationNaturalIdById(java.lang.Integer id)
Specified by:
getLocationNaturalIdById in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getLocationNaturalIdById(java.lang.Integer)

handleGetLocationNaturalIdById

protected abstract RemoteLocationNaturalId handleGetLocationNaturalIdById(java.lang.Integer id)
                                                                   throws java.lang.Exception
Performs the core logic for getLocationNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterLocation

public ClusterLocation addOrUpdateClusterLocation(ClusterLocation clusterLocation)
Specified by:
addOrUpdateClusterLocation in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.addOrUpdateClusterLocation(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)

handleAddOrUpdateClusterLocation

protected abstract ClusterLocation handleAddOrUpdateClusterLocation(ClusterLocation clusterLocation)
                                                             throws java.lang.Exception
Performs the core logic for addOrUpdateClusterLocation(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)

Throws:
java.lang.Exception

getAllClusterLocationSinceDateSynchro

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

handleGetAllClusterLocationSinceDateSynchro

protected abstract ClusterLocation[] handleGetAllClusterLocationSinceDateSynchro(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 getAllClusterLocationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterLocationByIdentifiers

public ClusterLocation getClusterLocationByIdentifiers(java.lang.Integer id)
Specified by:
getClusterLocationByIdentifiers in interface RemoteLocationFullService
See Also:
RemoteLocationFullService.getClusterLocationByIdentifiers(java.lang.Integer)

handleGetClusterLocationByIdentifiers

protected abstract ClusterLocation handleGetClusterLocationByIdentifiers(java.lang.Integer id)
                                                                  throws java.lang.Exception
Performs the core logic for getClusterLocationByIdentifiers(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.