fr.ifremer.allegro.referential.spatial.generic.service
Class RemoteSpatialItemFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.referential.spatial.generic.service.RemoteSpatialItemFullServiceBase
All Implemented Interfaces:
RemoteSpatialItemFullService
Direct Known Subclasses:
RemoteSpatialItemFullServiceImpl

public abstract class RemoteSpatialItemFullServiceBase
extends java.lang.Object
implements RemoteSpatialItemFullService

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

See Also:
RemoteSpatialItemFullService

Constructor Summary
RemoteSpatialItemFullServiceBase()
           
 
Method Summary
 ClusterSpatialItem addOrUpdateClusterSpatialItem(ClusterSpatialItem clusterSpatialItem)
           
 RemoteSpatialItemFullVO addSpatialItem(RemoteSpatialItemFullVO spatialItem)
           
 ClusterSpatialItem[] getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteSpatialItemFullVO[] getAllSpatialItem()
           
 ClusterSpatialItem getClusterSpatialItemByIdentifiers(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  SpatialItemAreaDao getSpatialItemAreaDao()
          Gets the reference to spatialItemArea's DAO.
 RemoteSpatialItemFullVO getSpatialItemById(java.lang.Integer id)
           
 RemoteSpatialItemFullVO[] getSpatialItemByIds(java.lang.Integer[] id)
           
 RemoteSpatialItemFullVO getSpatialItemByNaturalId(RemoteSpatialItemNaturalId spatialItemNaturalId)
           
 RemoteSpatialItemFullVO[] getSpatialItemBySpatialItemTypeId(java.lang.Integer id)
           
protected  SpatialItemDao getSpatialItemDao()
          Gets the reference to spatialItem's DAO.
protected  SpatialItemLineDao getSpatialItemLineDao()
          Gets the reference to spatialItemLine's DAO.
 RemoteSpatialItemNaturalId getSpatialItemNaturalIdById(java.lang.Integer id)
           
 RemoteSpatialItemNaturalId[] getSpatialItemNaturalIds()
           
protected  SpatialItemPointDao getSpatialItemPointDao()
          Gets the reference to spatialItemPoint's DAO.
protected  SpatialItemTypeDao getSpatialItemTypeDao()
          Gets the reference to spatialItemType's DAO.
protected abstract  ClusterSpatialItem handleAddOrUpdateClusterSpatialItem(ClusterSpatialItem clusterSpatialItem)
          Performs the core logic for addOrUpdateClusterSpatialItem(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem)
protected abstract  RemoteSpatialItemFullVO handleAddSpatialItem(RemoteSpatialItemFullVO spatialItem)
          Performs the core logic for addSpatialItem(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)
protected abstract  ClusterSpatialItem[] handleGetAllClusterSpatialItemSinceDateSynchro(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 getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteSpatialItemFullVO[] handleGetAllSpatialItem()
          Performs the core logic for getAllSpatialItem()
protected abstract  ClusterSpatialItem handleGetClusterSpatialItemByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterSpatialItemByIdentifiers(java.lang.Integer)
protected abstract  RemoteSpatialItemFullVO handleGetSpatialItemById(java.lang.Integer id)
          Performs the core logic for getSpatialItemById(java.lang.Integer)
protected abstract  RemoteSpatialItemFullVO[] handleGetSpatialItemByIds(java.lang.Integer[] id)
          Performs the core logic for getSpatialItemByIds(java.lang.Integer[])
protected abstract  RemoteSpatialItemFullVO handleGetSpatialItemByNaturalId(RemoteSpatialItemNaturalId spatialItemNaturalId)
          Performs the core logic for getSpatialItemByNaturalId(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemNaturalId)
protected abstract  RemoteSpatialItemFullVO[] handleGetSpatialItemBySpatialItemTypeId(java.lang.Integer id)
          Performs the core logic for getSpatialItemBySpatialItemTypeId(java.lang.Integer)
protected abstract  RemoteSpatialItemNaturalId handleGetSpatialItemNaturalIdById(java.lang.Integer id)
          Performs the core logic for getSpatialItemNaturalIdById(java.lang.Integer)
protected abstract  RemoteSpatialItemNaturalId[] handleGetSpatialItemNaturalIds()
          Performs the core logic for getSpatialItemNaturalIds()
protected abstract  boolean handleRemoteSpatialItemFullVOsAreEqual(RemoteSpatialItemFullVO remoteSpatialItemFullVOFirst, RemoteSpatialItemFullVO remoteSpatialItemFullVOSecond)
          Performs the core logic for remoteSpatialItemFullVOsAreEqual(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)
protected abstract  boolean handleRemoteSpatialItemFullVOsAreEqualOnIdentifiers(RemoteSpatialItemFullVO remoteSpatialItemFullVOFirst, RemoteSpatialItemFullVO remoteSpatialItemFullVOSecond)
          Performs the core logic for remoteSpatialItemFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)
protected abstract  void handleRemoveSpatialItem(RemoteSpatialItemFullVO spatialItem)
          Performs the core logic for removeSpatialItem(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)
protected abstract  void handleUpdateSpatialItem(RemoteSpatialItemFullVO spatialItem)
          Performs the core logic for updateSpatialItem(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)
 boolean remoteSpatialItemFullVOsAreEqual(RemoteSpatialItemFullVO remoteSpatialItemFullVOFirst, RemoteSpatialItemFullVO remoteSpatialItemFullVOSecond)
           
 boolean remoteSpatialItemFullVOsAreEqualOnIdentifiers(RemoteSpatialItemFullVO remoteSpatialItemFullVOFirst, RemoteSpatialItemFullVO remoteSpatialItemFullVOSecond)
           
 void removeSpatialItem(RemoteSpatialItemFullVO spatialItem)
           
 void setSpatialItemAreaDao(SpatialItemAreaDao spatialItemAreaDao)
          Sets the reference to spatialItemArea's DAO.
 void setSpatialItemDao(SpatialItemDao spatialItemDao)
          Sets the reference to spatialItem's DAO.
 void setSpatialItemLineDao(SpatialItemLineDao spatialItemLineDao)
          Sets the reference to spatialItemLine's DAO.
 void setSpatialItemPointDao(SpatialItemPointDao spatialItemPointDao)
          Sets the reference to spatialItemPoint's DAO.
 void setSpatialItemTypeDao(SpatialItemTypeDao spatialItemTypeDao)
          Sets the reference to spatialItemType's DAO.
 void updateSpatialItem(RemoteSpatialItemFullVO spatialItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteSpatialItemFullServiceBase

public RemoteSpatialItemFullServiceBase()
Method Detail

setSpatialItemDao

public void setSpatialItemDao(SpatialItemDao spatialItemDao)
Sets the reference to spatialItem's DAO.


getSpatialItemDao

protected SpatialItemDao getSpatialItemDao()
Gets the reference to spatialItem's DAO.


setSpatialItemTypeDao

public void setSpatialItemTypeDao(SpatialItemTypeDao spatialItemTypeDao)
Sets the reference to spatialItemType's DAO.


getSpatialItemTypeDao

protected SpatialItemTypeDao getSpatialItemTypeDao()
Gets the reference to spatialItemType's DAO.


setSpatialItemAreaDao

public void setSpatialItemAreaDao(SpatialItemAreaDao spatialItemAreaDao)
Sets the reference to spatialItemArea's DAO.


getSpatialItemAreaDao

protected SpatialItemAreaDao getSpatialItemAreaDao()
Gets the reference to spatialItemArea's DAO.


setSpatialItemLineDao

public void setSpatialItemLineDao(SpatialItemLineDao spatialItemLineDao)
Sets the reference to spatialItemLine's DAO.


getSpatialItemLineDao

protected SpatialItemLineDao getSpatialItemLineDao()
Gets the reference to spatialItemLine's DAO.


setSpatialItemPointDao

public void setSpatialItemPointDao(SpatialItemPointDao spatialItemPointDao)
Sets the reference to spatialItemPoint's DAO.


getSpatialItemPointDao

protected SpatialItemPointDao getSpatialItemPointDao()
Gets the reference to spatialItemPoint's DAO.


addSpatialItem

public RemoteSpatialItemFullVO addSpatialItem(RemoteSpatialItemFullVO spatialItem)
Specified by:
addSpatialItem in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.addSpatialItem(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

handleAddSpatialItem

protected abstract RemoteSpatialItemFullVO handleAddSpatialItem(RemoteSpatialItemFullVO spatialItem)
                                                         throws java.lang.Exception
Performs the core logic for addSpatialItem(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

Throws:
java.lang.Exception

updateSpatialItem

public void updateSpatialItem(RemoteSpatialItemFullVO spatialItem)
Specified by:
updateSpatialItem in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.updateSpatialItem(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

handleUpdateSpatialItem

protected abstract void handleUpdateSpatialItem(RemoteSpatialItemFullVO spatialItem)
                                         throws java.lang.Exception
Performs the core logic for updateSpatialItem(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

Throws:
java.lang.Exception

removeSpatialItem

public void removeSpatialItem(RemoteSpatialItemFullVO spatialItem)
Specified by:
removeSpatialItem in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.removeSpatialItem(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

handleRemoveSpatialItem

protected abstract void handleRemoveSpatialItem(RemoteSpatialItemFullVO spatialItem)
                                         throws java.lang.Exception
Performs the core logic for removeSpatialItem(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

Throws:
java.lang.Exception

getAllSpatialItem

public RemoteSpatialItemFullVO[] getAllSpatialItem()
Specified by:
getAllSpatialItem in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.getAllSpatialItem()

handleGetAllSpatialItem

protected abstract RemoteSpatialItemFullVO[] handleGetAllSpatialItem()
                                                              throws java.lang.Exception
Performs the core logic for getAllSpatialItem()

Throws:
java.lang.Exception

getSpatialItemById

public RemoteSpatialItemFullVO getSpatialItemById(java.lang.Integer id)
Specified by:
getSpatialItemById in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.getSpatialItemById(java.lang.Integer)

handleGetSpatialItemById

protected abstract RemoteSpatialItemFullVO handleGetSpatialItemById(java.lang.Integer id)
                                                             throws java.lang.Exception
Performs the core logic for getSpatialItemById(java.lang.Integer)

Throws:
java.lang.Exception

getSpatialItemByIds

public RemoteSpatialItemFullVO[] getSpatialItemByIds(java.lang.Integer[] id)
Specified by:
getSpatialItemByIds in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.getSpatialItemByIds(java.lang.Integer[])

handleGetSpatialItemByIds

protected abstract RemoteSpatialItemFullVO[] handleGetSpatialItemByIds(java.lang.Integer[] id)
                                                                throws java.lang.Exception
Performs the core logic for getSpatialItemByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getSpatialItemBySpatialItemTypeId

public RemoteSpatialItemFullVO[] getSpatialItemBySpatialItemTypeId(java.lang.Integer id)
Specified by:
getSpatialItemBySpatialItemTypeId in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.getSpatialItemBySpatialItemTypeId(java.lang.Integer)

handleGetSpatialItemBySpatialItemTypeId

protected abstract RemoteSpatialItemFullVO[] handleGetSpatialItemBySpatialItemTypeId(java.lang.Integer id)
                                                                              throws java.lang.Exception
Performs the core logic for getSpatialItemBySpatialItemTypeId(java.lang.Integer)

Throws:
java.lang.Exception

remoteSpatialItemFullVOsAreEqualOnIdentifiers

public boolean remoteSpatialItemFullVOsAreEqualOnIdentifiers(RemoteSpatialItemFullVO remoteSpatialItemFullVOFirst,
                                                             RemoteSpatialItemFullVO remoteSpatialItemFullVOSecond)
Specified by:
remoteSpatialItemFullVOsAreEqualOnIdentifiers in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.remoteSpatialItemFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

handleRemoteSpatialItemFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteSpatialItemFullVOsAreEqualOnIdentifiers(RemoteSpatialItemFullVO remoteSpatialItemFullVOFirst,
                                                                               RemoteSpatialItemFullVO remoteSpatialItemFullVOSecond)
                                                                        throws java.lang.Exception
Performs the core logic for remoteSpatialItemFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

Throws:
java.lang.Exception

remoteSpatialItemFullVOsAreEqual

public boolean remoteSpatialItemFullVOsAreEqual(RemoteSpatialItemFullVO remoteSpatialItemFullVOFirst,
                                                RemoteSpatialItemFullVO remoteSpatialItemFullVOSecond)
Specified by:
remoteSpatialItemFullVOsAreEqual in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.remoteSpatialItemFullVOsAreEqual(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

handleRemoteSpatialItemFullVOsAreEqual

protected abstract boolean handleRemoteSpatialItemFullVOsAreEqual(RemoteSpatialItemFullVO remoteSpatialItemFullVOFirst,
                                                                  RemoteSpatialItemFullVO remoteSpatialItemFullVOSecond)
                                                           throws java.lang.Exception
Performs the core logic for remoteSpatialItemFullVOsAreEqual(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

Throws:
java.lang.Exception

getSpatialItemNaturalIds

public RemoteSpatialItemNaturalId[] getSpatialItemNaturalIds()
Specified by:
getSpatialItemNaturalIds in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.getSpatialItemNaturalIds()

handleGetSpatialItemNaturalIds

protected abstract RemoteSpatialItemNaturalId[] handleGetSpatialItemNaturalIds()
                                                                        throws java.lang.Exception
Performs the core logic for getSpatialItemNaturalIds()

Throws:
java.lang.Exception

getSpatialItemByNaturalId

public RemoteSpatialItemFullVO getSpatialItemByNaturalId(RemoteSpatialItemNaturalId spatialItemNaturalId)
Specified by:
getSpatialItemByNaturalId in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.getSpatialItemByNaturalId(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemNaturalId)

handleGetSpatialItemByNaturalId

protected abstract RemoteSpatialItemFullVO handleGetSpatialItemByNaturalId(RemoteSpatialItemNaturalId spatialItemNaturalId)
                                                                    throws java.lang.Exception
Performs the core logic for getSpatialItemByNaturalId(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemNaturalId)

Throws:
java.lang.Exception

getSpatialItemNaturalIdById

public RemoteSpatialItemNaturalId getSpatialItemNaturalIdById(java.lang.Integer id)
Specified by:
getSpatialItemNaturalIdById in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.getSpatialItemNaturalIdById(java.lang.Integer)

handleGetSpatialItemNaturalIdById

protected abstract RemoteSpatialItemNaturalId handleGetSpatialItemNaturalIdById(java.lang.Integer id)
                                                                         throws java.lang.Exception
Performs the core logic for getSpatialItemNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterSpatialItem

public ClusterSpatialItem addOrUpdateClusterSpatialItem(ClusterSpatialItem clusterSpatialItem)
Specified by:
addOrUpdateClusterSpatialItem in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.addOrUpdateClusterSpatialItem(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem)

handleAddOrUpdateClusterSpatialItem

protected abstract ClusterSpatialItem handleAddOrUpdateClusterSpatialItem(ClusterSpatialItem clusterSpatialItem)
                                                                   throws java.lang.Exception
Performs the core logic for addOrUpdateClusterSpatialItem(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem)

Throws:
java.lang.Exception

getAllClusterSpatialItemSinceDateSynchro

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

handleGetAllClusterSpatialItemSinceDateSynchro

protected abstract ClusterSpatialItem[] handleGetAllClusterSpatialItemSinceDateSynchro(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 getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterSpatialItemByIdentifiers

public ClusterSpatialItem getClusterSpatialItemByIdentifiers(java.lang.Integer id)
Specified by:
getClusterSpatialItemByIdentifiers in interface RemoteSpatialItemFullService
See Also:
RemoteSpatialItemFullService.getClusterSpatialItemByIdentifiers(java.lang.Integer)

handleGetClusterSpatialItemByIdentifiers

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